From d1c4ba581085f4978da82a597b1387d60e79ff0c Mon Sep 17 00:00:00 2001 From: Elod Illes Date: Thu, 12 Dec 2019 11:14:10 +0100 Subject: [PATCH] Use constraints for docs tox target In Stein the docs target started to fail when new release of neutron-lib appeared. This is because tox installs neutron and its requirements without any constraints. To fix this both the upper constraints and neutron requirements needs to be added to dependencies of docs target. Note: patch adjusted to stable/train Closes-Bug: #1856156 Change-Id: Iea61238f37fdf24c0264f96d104ee0b3b6aec8e2 (cherry picked from commit 07be7934359aa121761396ba47128904f19cb2e4) --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 437970933ea..5f702813c4c 100644 --- a/tox.ini +++ b/tox.ini @@ -146,7 +146,10 @@ commands = {posargs} [testenv:docs] basepython = python3 envdir = {toxworkdir}/docs -deps = -r{toxinidir}/doc/requirements.txt +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/train} + -r{toxinidir}/doc/requirements.txt + -r{toxinidir}/requirements.txt commands = sphinx-build -W -b html doc/source doc/build/html [testenv:pdf-docs]