-
Notifications
You must be signed in to change notification settings - Fork 232
Expand file tree
/
Copy pathtox.ini
More file actions
106 lines (96 loc) · 2.78 KB
/
tox.ini
File metadata and controls
106 lines (96 loc) · 2.78 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[testenv:bootstrap]
deps =
jinja2
tox
skip_install = true
commands =
python ci/bootstrap.py --no-env
passenv =
*
; a generative tox configuration, see: https://tox.wiki/en/latest/user_guide.html#generative-environments
[tox]
isolated_build = true
envlist =
clean,
check,
docs,
{py310,py311,py312,py313,py314,pypy310,pypy311}-{pytest90}-{xdist38}-{coverage713},
{py39,pypy39}-{pytest80}-{xdist38}-{coverage710},
report
ignore_basepython_conflict = true
[testenv]
extras = testing
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
# Use env vars for (optional) pinning of deps.
pytest62: _DEP_PYTEST=pytest==6.2.5
pytest80: _DEP_PYTEST=pytest==8.0.2
pytest81: _DEP_PYTEST=pytest==8.1.1
pytest82: _DEP_PYTEST=pytest==8.2.2
pytest83: _DEP_PYTEST=pytest==8.3.5
pytest84: _DEP_PYTEST=pytest==8.4.2
pytest90: _DEP_PYTEST=pytest==9.0.2
xdist32: _DEP_PYTESTXDIST=pytest-xdist==3.2.0
xdist33: _DEP_PYTESTXDIST=pytest-xdist==3.3.1
xdist34: _DEP_PYTESTXDIST=pytest-xdist==3.4.0
xdist35: _DEP_PYTESTXDIST=pytest-xdist==3.5.0
xdist36: _DEP_PYTESTXDIST=pytest-xdist==3.6.1
xdist37: _DEP_PYTESTXDIST=pytest-xdist==3.7.0
xdist38: _DEP_PYTESTXDIST=pytest-xdist==3.8.0
xdistdev: _DEP_PYTESTXDIST=git+https://github.com/pytest-dev/pytest-xdist.git#egg=pytest-xdist
coverage72: _DEP_COVERAGE=coverage==7.2.7
coverage73: _DEP_COVERAGE=coverage==7.3.4
coverage74: _DEP_COVERAGE=coverage==7.4.4
coverage75: _DEP_COVERAGE=coverage==7.5.4
coverage76: _DEP_COVERAGE=coverage==7.6.12
coverage77: _DEP_COVERAGE=coverage==7.7.1
coverage78: _DEP_COVERAGE=coverage==7.8.2
coverage79: _DEP_COVERAGE=coverage==7.9.2
coverage710: _DEP_COVERAGE=coverage==7.10.7
coverage711: _DEP_COVERAGE=coverage==7.11.3
coverage712: _DEP_COVERAGE=coverage==7.12.0
coverage713: _DEP_COVERAGE=coverage==7.13.5
# For testing against a coverage.py working tree.
coveragedev: _DEP_COVERAGE=-e{env:COVERAGE_HOME}
passenv =
*
deps =
{env:_DEP_PYTEST:pytest}
{env:_DEP_PYTESTXDIST:pytest-xdist}
{env:_DEP_COVERAGE:coverage}
celery[redis]
testcontainers[redis]
pip_pre = true
commands =
{posargs:pytest -vv}
[testenv:check]
deps =
docutils
twine
uv
prek
skip_install = true
commands =
uv build --sdist --wheel
twine check --strict dist/*
prek run --all-files --show-diff-on-failure
[testenv:docs]
usedevelop = true
deps =
-r{toxinidir}/docs/requirements.txt
commands =
sphinx-build {posargs:-E} -b html docs dist/docs
sphinx-build -b linkcheck docs dist/docs
[testenv:report]
deps =
coverage
skip_install = true
commands =
coverage report
coverage html
[testenv:clean]
commands = coverage erase
skip_install = true
deps =
coverage