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: I1b3f3a5cf20c1e7f8f419d07e382a03eea673f76
This commit is contained in:
likui 2020-11-16 15:19:43 +08:00
parent 7b525d8eeb
commit fcb3c61446
1 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,9 @@ commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi'
commands = flake8 commands = flake8
[testenv:docs] [testenv:docs]
deps = -r{toxinidir}/doc/requirements.txt deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands = sphinx-build -W -b html doc/source doc/build/html commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:venv] [testenv:venv]
@ -30,7 +32,9 @@ builtins = _
exclude=.venv,.git,.tox,*lib/python*,private,.eggs exclude=.venv,.git,.tox,*lib/python*,private,.eggs
[testenv:releasenotes] [testenv:releasenotes]
deps = -r{toxinidir}/doc/requirements.txt deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:lower-constraints] [testenv:lower-constraints]