From fb354729558d4dce44d160390f645cda378bf238 Mon Sep 17 00:00:00 2001 From: Jamie Matthews Date: Fri, 12 Jan 2024 09:43:31 +0000 Subject: [PATCH 1/2] Add Django 5 to test matrix --- .github/workflows/ci.yml | 6 +++++- CHANGELOG.md | 3 +++ README.md | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d896b5..8f87266 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,12 +14,16 @@ jobs: strategy: matrix: python: ["3.8", "3.9", "3.10", "3.11"] - django: ["3.2", "4.0", "4.1", "4.2"] + django: ["3.2", "4.0", "4.1", "4.2", "5.0"] exclude: - python: "3.11" django: "3.2" - python: "3.11" django: "4.0" + - python: "3.8" + django: "5.0" + - python: "3.9" + django: "5.0" steps: - uses: actions/checkout@v2 diff --git a/CHANGELOG.md b/CHANGELOG.md index e966cd4..7f667dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed +- Add support for Django 5.0 + ## [2.1.2] - 2023-07-17 ### Fixed diff --git a/README.md b/README.md index b531197..44eeeb3 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ django-readers **A lightweight function-oriented toolkit for better organisation of business logic and efficient selection and projection of data in Django projects.** -Tested against Django 3.2, 4.0, 4.1 and 4.2 on Python 3.8, 3.9, 3.10 and 3.11. +Tested against Django 3.2, 4.0, 4.1, 4.2 and 5.0 on Python 3.8, 3.9, 3.10 and 3.11. ![Build Status](https://github.com/dabapps/django-readers/workflows/CI/badge.svg?branch=main) [![pypi release](https://img.shields.io/pypi/v/django-readers.svg)](https://pypi.python.org/pypi/django-readers) From c9b734ed9c74d8dd47d56d6a3523a8dd0f5c0273 Mon Sep 17 00:00:00 2001 From: Jamie Matthews Date: Fri, 12 Jan 2024 09:56:06 +0000 Subject: [PATCH 2/2] Fix incorrect test that was picked up by Django 5 --- tests/test_producers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_producers.py b/tests/test_producers.py index a04897d..44d9592 100644 --- a/tests/test_producers.py +++ b/tests/test_producers.py @@ -84,7 +84,7 @@ def test_nullable(self): self.assertEqual(result, None) def test_nullable_one_to_one(self): - widget = Widget.objects.create(thing=None) + widget = Widget.objects.create() produce = producers.relationship( "thing", projectors.producer_to_projector("name", producers.attr("name")) )