tox: Stop using 'build_sphinx'

Plus some other modern tox niceties.

Change-Id: I7a3ed2c1aa039af9ae59f35d74365a7f1d626037
This commit is contained in:
Stephen Finucane 2019-03-29 11:40:22 +00:00
parent c9e16cb8d0
commit 05641b0346

10
tox.ini
View File

@ -1,5 +1,5 @@
[tox] [tox]
minversion = 2.0 minversion = 3.1.1
envlist = pep8 envlist = pep8
[testenv] [testenv]
@ -10,18 +10,16 @@ deps =
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
[testenv:py27]
basepython = python2.7
[testenv:pep8] [testenv:pep8]
commands = commands =
flake8 oslosphinx flake8 oslosphinx
[testenv:venv] [testenv:venv]
commands = {posargs} commands = {posargs}
[testenv:docs] [testenv:docs]
commands = python setup.py build_sphinx commands =
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
[flake8] [flake8]
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools