-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
52 lines (47 loc) · 1.02 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
[tox]
env_list =
py{38,39,310,311,312}-pytest{5,6,7}
[testenv]
package = wheel
wheel_build_env = {package_env}
deps =
pytest5: pytest==5.*
pytest6: pytest==6.*
pytest7: pytest==7.*
coverage: pytest-cov
extras = test
set_env =
coverage: __COVERAGE_POSARGS=--cov --cov-report=xml
commands =
pytest {env:__COVERAGE_POSARGS:} {posargs}
[testenv:doc]
deps = doc/requirements.txt
use_develop = true
commands =
sphinx-build {posargs:-E} -b html doc dist/doc
[testenv:doc-checklinks]
deps = doc/requirements.txt
use_develop = true
commands =
sphinx-build -b linkcheck doc dist/doc-checklinks
[testenv:doc-spell]
set_env =
SPELLCHECK=1
use_develop = false
deps =
-r{toxinidir}/doc/requirements.txt
sphinxcontrib-spelling
pyenchant
commands =
sphinx-build -b spelling doc dist/doc
[testenv:create-dist]
description = create the pypi distribution
deps =
twine
build
skip_install = true
allowlist_externals = rm
commands =
rm -rf dist build
python -m build
twine check dist/*