From bb139587b228616d2e4c838cf13f40059b325e97 Mon Sep 17 00:00:00 2001 From: Yasufumi Ogawa Date: Fri, 25 Aug 2023 15:54:54 +0900 Subject: [PATCH] Use upper-constraint in doc generation Currently doc jobs are broken because the latest sphinx 7.2.0 is not compatible with the latest release of openstackdocstheme. This updates the docs/releasenotes target to use the global upper constraints to avoid that issue. Change-Id: I075240f47e4de34182a0fc68f92ed62ae84a277a Signed-off-by: Yasufumi Ogawa --- tox.ini | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 3ad9c559..9f2694ff 100644 --- a/tox.ini +++ b/tox.ini @@ -32,8 +32,10 @@ commands = {posargs} commands = python setup.py test --coverage --coverage-package-name=translator --testr-args='{posargs}' [testenv:docs] -deps = -r{toxinidir}/doc/requirements.txt -commands = sphinx-build -b html doc/source doc/build/html +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:debug] commands =