-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathtox.ini
More file actions
61 lines (58 loc) · 1.93 KB
/
tox.ini
File metadata and controls
61 lines (58 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[tox]
usedevelop = True
minversion = 1.8
envlist =
py39-lint
py311-docs
py{39,310,311,312}-dj42
py{310,311,312,313}-dj52
py{312,313}-dj60
py{39,310,311,312,313}-fa100
py{39,310,311}-fl{20,21,22}
py{39,310,311,312}-fl{23,30}
py{39,310,311}-s{21,22}
py{39,310,311,312,313}-s23
[testenv]
usedevelop = true
pip_pre = true
setenv =
DJANGO_SETTINGS_MODULE = tests.django.settings
PYTHONPATH = {toxinidir}
deps =
-rtests/requirements/default.txt
dj{42,52,60}: -rtests/requirements/django.txt
fa100: -rtests/requirements/fastapi.txt
fl{20,21,22,23,30}: -rtests/requirements/flask.txt
s{21,22,23}: -rtests/requirements/sanic.txt
dj42: -ctests/constraints/django-4.2.txt
dj52: -ctests/constraints/django-5.2.txt
dj60: -ctests/constraints/django-6.0.txt
fa100: -ctests/constraints/fastapi-0.100.txt
fl20: -ctests/constraints/flask-2.0.txt
fl21: -ctests/constraints/flask-2.1.txt
fl22: -ctests/constraints/flask-2.2.txt
fl23: -ctests/constraints/flask-2.3.txt
fl30: -ctests/constraints/flask-3.0.txt
s21: -ctests/constraints/sanic-21.txt
s22: -ctests/constraints/sanic-22.txt
s23: -ctests/constraints/sanic-23.txt
commands =
python --version
dj{42,52,60}: pytest --no-migrations -o DJANGO_SETTINGS_MODULE=tests.django.settings -o django_find_project=false {posargs:tests/core/ tests/django}
fa{100}: pytest {posargs: tests/core/ tests/fastapi/}
fl{20,21,22,23,30}: pytest {posargs:tests/core/ tests/flask/}
s{21,22,23}: pytest {posargs:tests/core/ tests/sanic/}
[testenv:py311-docs]
basepython = python3.11
deps = -rdocs/requirements.txt
commands = sphinx-build -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
pip_pre = false
[testenv:py39-lint]
basepython = python3.9
deps = -rtests/requirements/lint.txt
commands =
ruff check src/ tests/
ruff format src/ tests/
check-manifest -v
python setup.py sdist
twine check dist/*