summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwu.shiming <wushiming@yovole.com>2020-11-20 14:33:23 +0800
committerwu.shiming <wushiming@yovole.com>2020-11-20 14:36:46 +0800
commit1a1ee061e8d6d3a9c825819ed426e4f1b2eba80e (patch)
treed08de49823fcb93d93ea98b0655c6fa4c360ec0f
parent49c8577d8bd1a1a11c8062708478ac69bdcab388 (diff)
downloadpython-neutronclient-1a1ee061e8d6d3a9c825819ed426e4f1b2eba80e.tar.gz
Dep's should be restricted by tox-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 tox-constraints.txt Change-Id: Iecd29788d1c94fd727072aa5dd7fe5d828dbf174
-rw-r--r--tox.ini8
1 files changed, 6 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 7c11bfd..a5d8ab1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -51,7 +51,9 @@ commands =
coverage report
[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
[testenv:pdf-docs]
@@ -64,7 +66,9 @@ commands =
make -C doc/build/pdf
[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 -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[flake8]