Reuse the docs deps to benefit from constraints

Tox trying to install latest versions for building docs,
which may not be supported by stable and lower branches,
so should be restricted by respective version's upper-constraints.txt

Change-Id: Ic2a8a264e95ecd70902329fc5de3839625845129
This commit is contained in:
likui 2020-11-18 09:59:35 +08:00
parent 6728160ae2
commit 4ce61af741
1 changed files with 3 additions and 1 deletions

View File

@ -81,7 +81,9 @@ import_exceptions = ironic_inspector.common.i18n
[testenv:docs]
setenv = PYTHONHASHSEED=0
sitepackages = False
deps = -r{toxinidir}/test-requirements.txt
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
commands =
sphinx-build -W -b html doc/source doc/build/html