summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlikui <likui@yovole.com>2020-11-17 19:52:34 +0800
committerlikui <likui@yovole.com>2020-11-17 19:57:27 +0800
commit3cb72163aa6f303e0f3875912b0ddb34733f3e6d (patch)
treed291046fbcd2d98a089f0fe9189078eb7b220057
parent4c7e759f24f6a73fef4dce84f716ad61f54e2e95 (diff)
downloadceilometer-3cb72163aa6f303e0f3875912b0ddb34733f3e6d.tar.gz
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
-rw-r--r--tox.ini4
1 files changed, 3 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 1552ec77..945b0622 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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]