Reuse the docs deps to benefit from constraints

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

Change-Id: I5ed38a032fe4ac02a03791baf6ff7275688b8b68
This commit is contained in:
likui 2021-06-03 09:52:38 +08:00
parent 3208f7fbca
commit 38aba340a8
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ commands =
coverage report --fail-under=95 --skip-covered
[testenv:docs]
deps = -r{toxinidir}/doc/requirements.txt
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
whitelist_externals = rm
commands =
rm -rf doc/build doc/source/reference/modules