Small cleanups in tox.ini
Enable warnings as errors for docs building, fix building of docs. Use newer TOX_CONSTRAINTS instead of obsolete UPPER_CONSTRAINTS file. Change-Id: Id3ec68ab35727a28e60fa51a343057240fe62b31
This commit is contained in:
parent
bc26de5e53
commit
ddd9807fe1
|
@ -11,3 +11,5 @@ sphinxcontrib-apidoc>=0.2.0 # BSD
|
|||
# For autodoc builds
|
||||
mock>=2.0.0 # BSD
|
||||
oslotest>=3.2.0 # Apache-2.0
|
||||
python-memcached>=1.56 # PSF
|
||||
etcd3gw>=0.2.0 # Apache-2.0
|
||||
|
|
6
tox.ini
6
tox.ini
|
@ -8,7 +8,7 @@ basepython = python3
|
|||
whitelist_externals =
|
||||
find
|
||||
deps =
|
||||
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands =
|
||||
find . -type f -name "*.pyc" -delete
|
||||
|
@ -33,11 +33,11 @@ commands = {posargs}
|
|||
[testenv:docs]
|
||||
whitelist_externals = rm
|
||||
deps =
|
||||
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
|
||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||
-r{toxinidir}/doc/requirements.txt
|
||||
commands =
|
||||
rm -fr doc/build
|
||||
sphinx-build --keep-going -b html doc/source doc/build/html
|
||||
sphinx-build -W --keep-going -b html doc/source doc/build/html
|
||||
|
||||
[testenv:cover]
|
||||
setenv =
|
||||
|
|
Loading…
Reference in New Issue