Skip to content

Commit 2d2051c

Browse files
add support for django 5.0 (#91)
* Add Django 5.0 to the list of supported Django versions fixes #90
1 parent 886ac45 commit 2d2051c

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

tests/constraints/django-5.0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Django>=5.0,<5.1

tox.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ envlist =
66
py311-docs
77
py{37,38,39,310}-dj32
88
py{38,39,310,311}-dj{40,41,42}
9+
py{310,311}-dj{50}
910
py{37,38,39,310,311}-fl{20,21,22}
1011
py{37,38,39,310,311}-s{21,22}
1112

@@ -25,21 +26,22 @@ setenv =
2526
PYTHONPATH = {toxinidir}
2627
deps =
2728
-rtests/requirements/default.txt
28-
dj{32,40,41,42}: -rtests/requirements/django.txt
29+
dj{32,40,41,42,50}: -rtests/requirements/django.txt
2930
fl{20,21,22}: -rtests/requirements/flask.txt
3031
s{21,22}: -rtests/requirements/sanic.txt
3132
dj32: -ctests/constraints/django-3.2.txt
3233
dj40: -ctests/constraints/django-4.0.txt
3334
dj41: -ctests/constraints/django-4.1.txt
3435
dj42: -ctests/constraints/django-4.2.txt
36+
dj50: -ctests/constraints/django-5.0.txt
3537
fl20: -ctests/constraints/flask-2.0.txt
3638
fl21: -ctests/constraints/flask-2.1.txt
3739
fl22: -ctests/constraints/flask-2.2.txt
3840
s21: -ctests/constraints/sanic-21.txt
3941
s22: -ctests/constraints/sanic-22.txt
4042
commands =
4143
python --version
42-
dj{32,40,41,42}: pytest --no-migrations -o DJANGO_SETTINGS_MODULE=tests.django.settings -o django_find_project=false {posargs:tests/core/ tests/django}
44+
dj{32,40,41,42,50}: pytest --no-migrations -o DJANGO_SETTINGS_MODULE=tests.django.settings -o django_find_project=false {posargs:tests/core/ tests/django}
4345
fl{20,21,22}: pytest {posargs:tests/core/ tests/flask/}
4446
s{21,22}: pytest {posargs:tests/core/ tests/sanic/}
4547

0 commit comments

Comments
 (0)