Skip to content

Commit

Permalink
Test on python 3.12 and django 5.0 (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
LincolnPuzey committed Dec 10, 2023
1 parent bbca06f commit f42d109
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 6 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/tests.yml
Expand Up @@ -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'
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions ChangeLog.rst
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion README.rst
Expand Up @@ -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 |
+------------------------+-----------------------------------+


Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Expand Up @@ -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
Expand All @@ -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.
Expand Down
9 changes: 6 additions & 3 deletions tox.ini
Expand Up @@ -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 =
Expand All @@ -21,14 +23,15 @@ 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
pip list
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 =
Expand Down

0 comments on commit f42d109

Please sign in to comment.