From bb78c199ec8554835f4cb65d55c4755cea17a6ac Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 16 Apr 2025 18:41:16 +0900 Subject: [PATCH] Apply upper constraints to build documentation ... to avoid problems caused by the latest libraries. Change-Id: I78b17bbfab6ca75a728c1438a942897c877ff469 --- tox.ini | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tox.ini b/tox.ini index 86a8bda33..eeaf8c9f9 100644 --- a/tox.ini +++ b/tox.ini @@ -10,9 +10,9 @@ setenv = OS_STDOUT_NOCAPTURE=False OS_STDERR_NOCAPTURE=False deps = - -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} - -r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2025.1} + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt commands = find . -type f -name "*.pyc" -delete stestr run --slowest {posargs} allowlist_externals = find @@ -66,8 +66,9 @@ exclude = .venv,.tox,dist,doc,*egg,build [testenv:docs] commands = sphinx-build -W -b html doc/source doc/build/html deps = - -r{toxinidir}/doc/requirements.txt - -r{toxinidir}/requirements.txt + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2025.1} + -r{toxinidir}/doc/requirements.txt + -r{toxinidir}/requirements.txt [testenv:pdf-docs] deps = {[testenv:docs]deps} @@ -81,7 +82,9 @@ commands = [testenv:releasenotes] commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html -deps = -r{toxinidir}/doc/requirements.txt +deps = + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2025.1} + -r{toxinidir}/doc/requirements.txt [hacking] import_exceptions =