From f42d1097e46990e53a63e3fd3259917c574e6d73 Mon Sep 17 00:00:00 2001 From: LincolnPuzey <18750802+LincolnPuzey@users.noreply.github.com> Date: Sun, 10 Dec 2023 20:55:12 +0800 Subject: [PATCH] Test on python 3.12 and django 5.0 (#220) --- .github/workflows/tests.yml | 20 ++++++++++++++++++-- ChangeLog.rst | 2 ++ README.rst | 6 +++++- setup.cfg | 2 ++ tox.ini | 9 ++++++--- 5 files changed, 33 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 543a2aa..8c93441 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,10 +15,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ['3.8', '3.9', '3.10', '3.11'] - django: ['2.2', '3.0', '3.1', '3.2', '4.0', '4.1', '4.2'] + python: ['3.8', '3.9', '3.10', '3.11', '3.12'] + django: ['2.2', '3.0', '3.1', '3.2', '4.0', '4.1', '4.2', '5.0'] database: ['postgres', 'sqlite'] exclude: + - python: '3.8' + django: '5.0' + - python: '3.9' + django: '5.0' - python: '3.10' django: '2.2' - python: '3.10' @@ -39,6 +43,18 @@ jobs: django: '3.2' - python: '3.11' django: '4.0' + - python: '3.12' + django: '2.2' + - python: '3.12' + django: '3.0' + - python: '3.12' + django: '3.1' + - python: '3.12' + django: '3.2' + - python: '3.12' + django: '4.0' + - python: '3.12' + django: '4.1' services: # as far as I can see, no way to make this conditional on the matrix database diff --git a/ChangeLog.rst b/ChangeLog.rst index e563335..03d8dc3 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -7,6 +7,8 @@ unreleased ---------- *New:* + - Confirm support for Python 3.12 + - Confirm support for Django 5.0 - Drop support for Python 3.7 - Drop support for Django 2.0 - Drop support for Django 2.1 diff --git a/README.rst b/README.rst index 10a7f25..614f405 100644 --- a/README.rst +++ b/README.rst @@ -31,7 +31,11 @@ This package is compatible and tested with the following Python & Django version +------------------------+-----------------------------------+ | 3.2, 4.0 | 3.8, 3.9, 3.10 | +------------------------+-----------------------------------+ -| 4.1, 4.2 | 3.8, 3.9, 3.10, 3.11 | +| 4.1 | 3.8, 3.9, 3.10, 3.11 | ++------------------------+-----------------------------------+ +| 4.2 | 3.8, 3.9, 3.10, 3.11, 3.12 | ++------------------------+-----------------------------------+ +| 5.0 | 3.10, 3.11, 3.12 | +------------------------+-----------------------------------+ diff --git a/setup.cfg b/setup.cfg index 88e9f0c..805d8bb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -21,6 +21,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Framework :: Django Framework :: Django :: 2.2 Framework :: Django :: 3.0 @@ -29,6 +30,7 @@ classifiers = Framework :: Django :: 4.0 Framework :: Django :: 4.1 Framework :: Django :: 4.2 + Framework :: Django :: 5.0 license = BSD license_files = LICENSE description = Tracking dirty fields on a Django model instance. diff --git a/tox.ini b/tox.ini index a266e4e..42141fe 100644 --- a/tox.ini +++ b/tox.ini @@ -4,8 +4,10 @@ isolated_build = True envlist = py{38,39}-django{22,30,31}-{postgresql,sqlite} py{38,39,310}-django{32,40}-{postgresql,sqlite} - py{38,39,310,311}-django{41,42}-{postgresql,sqlite} - py{38,39,310,311}-flake8 + py{38,39,310,311}-django{41}-{postgresql,sqlite} + py{38,39,310,311,312}-django{42}-{postgresql,sqlite} + py{310,311,312}-django{50}-{postgresql,sqlite} + py{38,39,310,311,312}-flake8 [testenv] passenv = @@ -21,6 +23,7 @@ deps = django40: Django>=4.0,<4.1 django41: Django>=4.1,<4.2 django42: Django>=4.2,<4.3 + django50: Django>=5.0,<5.1 -rtests-requirements.txt commands = python --version @@ -28,7 +31,7 @@ commands = coverage run -m pytest -v coverage report -[testenv:py{37,38,39,310,311}-flake8] +[testenv:py{38,39,310,311,312}-flake8] skip_install = True deps = flake8 commands =