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: Ie0eaeae33065386abb003831feac6ab90cba09bf
This commit is contained in:
zhoulinhui
2020-10-06 22:09:48 +08:00
parent 33dc1129f1
commit e9671342a6

View File

@@ -57,7 +57,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 -W --keep-going -b html doc/source doc/build/html