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: I286c0e8d657e78b7c7ddf2a1c2dcab6197cb853e
This commit is contained in:
likui 2020-12-03 17:33:33 +08:00
parent edcd88782b
commit 9b5a3934d1
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,7 @@ commands = {toxinidir}/tools/cover.sh {posargs}
[testenv:docs]
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands =
rm -rf doc/build
@ -62,6 +63,7 @@ whitelist_externals = bash
[testenv:releasenotes]
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands =
rm -rf releasenotes/build