From 07be7934359aa121761396ba47128904f19cb2e4 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. Closes-Bug: #1856156 Change-Id: Iea61238f37fdf24c0264f96d104ee0b3b6aec8e2 --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index da5820d49c9..dda77f17a07 100644 --- a/tox.ini +++ b/tox.ini @@ -123,7 +123,10 @@ commands = {posargs} [testenv:docs] envdir = {toxworkdir}/docs -deps = -r{toxinidir}/doc/requirements.txt +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -r{toxinidir}/doc/requirements.txt + -r{toxinidir}/requirements.txt commands = sphinx-build -W -b html doc/source doc/build/html [testenv:pdf-docs]