To avoid accumulating deleted cruft in generated documentation,
remove the build directory prior to running sphinx-build.
commands = python setup.py test --slowest --testr-args='{posargs}'
[testenv:docs]
-deps =
- -r{toxinidir}/requirements.txt
- -r{toxinidir}/doc/requirements.txt
+whitelist_externals = rm
+deps = -r{toxinidir}/doc/requirements.txt
commands =
+ rm -fr doc/build
sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
[testenv:flake8]