From 60900d4f22b72c6b12f884ede8b569fd989533e7 Mon Sep 17 00:00:00 2001 From: likui Date: Wed, 18 Nov 2020 10:20:23 +0800 Subject: [PATCH] Reuse the docs deps to benefit from 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: I1e134bb72b6fef3fba8f20d3b3d65520c66bbbf1 --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index ef75d18c4..ba9e2db0e 100644 --- a/tox.ini +++ b/tox.ini @@ -63,6 +63,7 @@ commands = oslo_debug_helper -t ironic_python_agent/tests/unit {posargs} setenv = PYTHONHASHSEED=0 sitepackages = False deps = + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/doc/requirements.txt commands = sphinx-build -b html doc/source doc/build/html @@ -72,6 +73,7 @@ whitelist_externals = make setenv = PYTHONHASHSEED=0 sitepackages = False deps = + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/doc/requirements.txt commands = sphinx-build -b latex doc/source doc/build/pdf