Reuse the docs deps to benefit from constraints

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

Change-Id: If0b3ecffaccff9512ec43b853a8a6eaa8088251e
This commit is contained in:
likui 2020-11-17 19:52:34 +08:00
parent 4c7e759f24
commit 3cb72163aa
1 changed files with 3 additions and 1 deletions

View File

@ -36,7 +36,9 @@ commands =
bash -c "find ceilometer -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null"
[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
[testenv:genconfig]