Skip to content

Commit 37e0365

Browse files
authored
Add Django 4.1, Flask 2.2 (#73)
* Add Django 4.1 to test matrix * Add Flask 2.2 to test matrix, fix Flask 2.1 The Flask 2.1 test was actually testing Flask 2.0
1 parent 9d819b6 commit 37e0365

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def read(*parts):
2929
"Framework :: Django",
3030
"Framework :: Django :: 3.2",
3131
"Framework :: Django :: 4.0",
32+
"Framework :: Django :: 4.1",
3233
"Framework :: Flask",
3334
"Intended Audience :: Developers",
3435
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",

tests/constraints/django-4.1.txt

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

tests/constraints/flask-2.2.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Flask>=2.2,<2.3

tests/django/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,5 @@
6666
},
6767
"loggers": {"request.summary": {"handlers": ["console"], "level": "DEBUG"}},
6868
}
69+
70+
USE_TZ = True # Default False until Django 5.0, when it switches to True

tox.ini

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ envlist =
55
py38-lint
66
py38-docs
77
py{37,38,39,310}-dj32
8-
py{38,39,310}-dj{40}
9-
py{37,38,39,310}-fl{012,10,11,20,21}
8+
py{38,39,310}-dj{40,41}
9+
py{37,38,39,310}-fl{012,10,11,20,21,22}
1010
py{37,38,39}-s20
1111
py{37,38,39,310}-s{21,22}
1212

@@ -25,24 +25,26 @@ setenv =
2525
PYTHONPATH = {toxinidir}
2626
deps =
2727
-rtests/requirements/default.txt
28-
dj{32,40}: -rtests/requirements/django.txt
29-
fl{012,10,11,20,21}: -rtests/requirements/flask.txt
28+
dj{32,40,41}: -rtests/requirements/django.txt
29+
fl{012,10,11,20,21,22}: -rtests/requirements/flask.txt
3030
s20: -rtests/requirements/sanic-20.txt
3131
s{21,22}: -rtests/requirements/sanic.txt
3232
dj32: -ctests/constraints/django-3.2.txt
3333
dj40: -ctests/constraints/django-4.0.txt
34+
dj41: -ctests/constraints/django-4.1.txt
3435
fl012: -ctests/constraints/flask-0.12.txt
3536
fl10: -ctests/constraints/flask-1.0.txt
3637
fl11: -ctests/constraints/flask-1.1.txt
3738
fl20: -ctests/constraints/flask-2.0.txt
38-
fl21: -ctests/constraints/flask-2.0.txt
39+
fl21: -ctests/constraints/flask-2.1.txt
40+
fl22: -ctests/constraints/flask-2.2.txt
3941
s20: -ctests/constraints/sanic-20.txt
4042
s21: -ctests/constraints/sanic-21.txt
4143
s22: -ctests/constraints/sanic-22.txt
4244
commands =
4345
python --version
44-
dj{32,40}: pytest tests/core/ tests/django --nomigrations {posargs:}
45-
fl{012,10,11,20,21}: pytest tests/core/ tests/flask/ {posargs:}
46+
dj{32,40,41}: pytest tests/core/ tests/django --nomigrations {posargs:}
47+
fl{012,10,11,20,21,22}: pytest tests/core/ tests/flask/ {posargs:}
4648
s{20,21,22}: pytest tests/core/ tests/sanic/ {posargs:}
4749

4850
[testenv:py38-docs]

0 commit comments

Comments
 (0)