1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
# 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}`
# run in parallel using `tox -p`
[tox]
envlist = py{36,37,38}-sphinx{2,3,4},docs
[testenv:py{36,37,38}-sphinx{2,3,4}]
extras = testing
deps =
sphinx2: sphinx>=2,<3
sphinx3: sphinx>=3,<4
sphinx4: sphinx>=4,<5
recreate = false
commands = pytest {posargs}
[testenv:docs]
whitelist_externals = rm
recreate = false
commands =
rm -rf docs/_build
sphinx-build -nW --keep-going -b html docs/ docs/_build/html
|