Skip to content

Commit

Permalink
Added Django 4.2.0 and Python 3.11 compatibility (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennylope authored Jul 25, 2023
1 parent 2b78d9c commit a5fb407
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.8, 3.9, '3.10' ]
python-version: [ 3.8, 3.9, '3.10', '3.11' ]

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.8"
Expand Down
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
[tox]
envlist =
py{38,39,310}-django{32}
py{38,39,310}-django{40,41}
py{38,39,310}-django{40,41,42}
py{311}-django{41,42}
isolated_build = True

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311

[testenv]
allowlist_externals = ./run.sh
deps =
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
djangomain: https://github.com/django/django/archive/main.tar.gz
-r{toxinidir}/requirements.txt
commands =
Expand All @@ -32,7 +35,7 @@ commands =

[testenv:typecheck]
deps =
Django>=3.2,<4.2
Django>=3.2,<4.3
-r{toxinidir}/requirements.txt
commands =
./run.sh typecheck

0 comments on commit a5fb407

Please sign in to comment.