Dep's should be restricted by upper-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: I8c715b7e0c964fcf0bc506e1ae546a05e18166b8
This commit is contained in:
zhoulinhui 2020-10-06 22:24:30 +08:00
parent 75bb786669
commit 1747780644
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ commands =
[testenv:docs]
whitelist_externals =
rm
deps = -r{toxinidir}/doc/requirements.txt
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands =
rm -rf doc/build
sphinx-build --keep-going -b html -d doc/build/doctrees doc/source doc/build/html