Skip to content

Commit

Permalink
Support Python 3.12 and Django 5.0 (#499)
Browse files Browse the repository at this point in the history
* Support Python 3.12

* Support Django 5.0
  • Loading branch information
johnthagen authored Jan 14, 2024
1 parent 8f32a28 commit feade1f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def get_test_requirements():
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
Expand All @@ -64,6 +65,7 @@ def get_test_requirements():
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Database",
"Topic :: System :: Archiving",
"Topic :: System :: Archiving :: Backup",
Expand Down
8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{37,38,39}-django22,py{37,38,39,310,311}-django{32,40,41,42,master},lint,docs,functional
envlist = py{37,38,39}-django22,py{37,38,39,310,311,312}-django{32,40,41,42,50,master},lint,docs,functional

[testenv]
passenv = *
Expand All @@ -12,6 +12,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
djangomaster: https://github.com/django/django/archive/master.zip
commands = {posargs:coverage run runtests.py}

Expand All @@ -21,8 +22,9 @@ python =
3.7: py37-django{22,32},functional
3.8: py38-django{22,32,40,41,42},functional
3.9: py39-django{22,32,40,41,42},functional
3.10: py310-django{22,32,40,41,42},functional
3.11: py311-django{40,41,42},functional
3.10: py310-django{22,32,40,41,42,50},functional
3.11: py311-django{40,41,42,50},functional
3.12: py312-django{42,50},functional

[testenv:lint]
basepython = python
Expand Down

0 comments on commit feade1f

Please sign in to comment.