From 4ce61af741a2636984c6d94a050c128d53c0ec29 Mon Sep 17 00:00:00 2001 From: likui Date: Wed, 18 Nov 2020 09:59:35 +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: Ic2a8a264e95ecd70902329fc5de3839625845129 --- tox.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 54804b044..5c8711c80 100644 --- a/tox.ini +++ b/tox.ini @@ -81,7 +81,9 @@ import_exceptions = ironic_inspector.common.i18n [testenv:docs] setenv = PYTHONHASHSEED=0 sitepackages = False -deps = -r{toxinidir}/test-requirements.txt +deps = + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -r{toxinidir}/test-requirements.txt commands = sphinx-build -W -b html doc/source doc/build/html