summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorwu.shiming <wushiming@yovole.com>2020-11-11 18:30:27 +0800
committerwu.shiming <wushiming@yovole.com>2020-11-11 18:30:27 +0800
commitee641dffc9b2ac835530efade91b1b72cee12e89 (patch)
tree263e553b860d9bdd3f0606447235ba918617989b /tox.ini
parent90c737e3550a3fee1c7581c3050ea64f2a9255cd (diff)
downloadswift-ee641dffc9b2ac835530efade91b1b72cee12e89.tar.gz
Dep's should be restricted by upper-constraints
Tox trying to install latest versions for building docs which may not be supported by stable and lower branches, so should be restricted by respective version's upper-constraints.txt Change-Id: I599d4ea430cc1e65bb50d0481617b005febf6de2
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini8
1 files changed, 6 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 8274c6a73..ab6b971f4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -88,7 +88,9 @@ commands = {posargs}
[testenv:docs]
basepython = python3
-deps = -r{toxinidir}/doc/requirements.txt
+deps =
+ -c{env:UPPER_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
[testenv:api-ref]
@@ -137,7 +139,9 @@ commands = bindep test doc
[testenv:releasenotes]
basepython = python3
-deps = -r{toxinidir}/doc/requirements.txt
+deps =
+ -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
+ -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:lower-constraints]