-
Notifications
You must be signed in to change notification settings - Fork 84
/
tox.ini
46 lines (38 loc) · 1.23 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
# To use tox, see https://tox.readthedocs.io
# Simply pip or conda install tox
# If you use conda, you may also want to install tox-conda
# then run `tox` or `tox -- {pytest args}`
# To run in parallel using `tox -p` (this does not appear to work for this repo)
# To rebuild the tox environment, for example when dependencies change, use
# `tox -r`
# Note: if the following error is encountered: `ImportError while loading conftest`
# then then deleting compiled files has been found to fix it: `find . -name \*.pyc -delete`
[tox]
envlist = py311-sphinx7
[testenv]
usedevelop = true
[testenv:py{39,310,311,312,313}-sphinx{5,6,7,8}]
extras = testing
deps =
sphinx5: sphinx>=5,<6
sphinx6: sphinx>=6,<7
sphinx7: sphinx>=7,<8
sphinx8: sphinx>=8,<9
commands = pytest {posargs}
[testenv:docs-{update,clean}]
extras = rtd
deps =
ipython
setenv =
BUILDER = {env:BUILDER:html}
allowlist_externals =
echo
rm
commands =
pip freeze
clean: rm -rf docs/_build
sphinx-build {posargs} -nW --keep-going -b {env:BUILDER} docs/ docs/_build/{env:BUILDER}
commands_post = echo "open file://{toxinidir}/docs/_build/{env:BUILDER}/index.html"
[pytest]
markers =
sphinx_params: Specify parameters to pass to the sphinx_run fixture