-
Notifications
You must be signed in to change notification settings - Fork 21
/
tox.ini
61 lines (58 loc) · 1.99 KB
/
tox.ini
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 =
py38-lint
py311-docs
py{38,39,310}-dj32
py{38,39,310,311}-dj{40,41,42}
py{310,311,312}-dj{50}
py{38,39,310,311,312}-fa100
py{38,39,310,311}-fl{20,21,22,23,30}
py{38,39,310,311}-s{21,22,23}
[testenv]
usedevelop = true
pip_pre = true
setenv =
DJANGO_SETTINGS_MODULE = tests.django.settings
PYTHONPATH = {toxinidir}
deps =
-rtests/requirements/default.txt
dj{32,40,41,42,50}: -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
dj32: -ctests/constraints/django-3.2.txt
dj40: -ctests/constraints/django-4.0.txt
dj41: -ctests/constraints/django-4.1.txt
dj42: -ctests/constraints/django-4.2.txt
dj50: -ctests/constraints/django-5.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{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}
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:py38-lint]
basepython = python3.8
deps = -rtests/requirements/lint.txt
commands =
ruff check src/ tests/
ruff format src/ tests/
check-manifest -v
python setup.py sdist
twine check dist/*