Update TOX_CONSTRAINTS_FILE for stable/2024.1

Update the URL to the upper-constraints file to point to the redirect
rule on releases.openstack.org so that anyone working on this branch
will switch to the correct upper-constraints list automatically when
the requirements repository branches.

Until the requirements repository has as stable/2024.1 branch, tests will
continue to use the upper-constraints list on master.

Change-Id: I98c7fccc1dc3840cdd29dd9890aacc1fdca49906
This commit is contained in:
OpenStack Release Bot 2024-03-19 11:10:03 +00:00
parent 7f9db25a83
commit 5f72b87702

12
tox.ini
View File

@ -6,7 +6,7 @@ envlist = py3,pep8
constrain_package_deps = true constrain_package_deps = true
usedevelop = True usedevelop = True
deps = deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2024.1}
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
commands = commands =
@ -26,7 +26,7 @@ commands = {posargs}
[testenv:api-ref] [testenv:api-ref]
usedevelop = False usedevelop = False
deps = deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2024.1}
-r{toxinidir}/doc/requirements.txt -r{toxinidir}/doc/requirements.txt
allowlist_externals = bash allowlist_externals = bash
commands = commands =
@ -35,7 +35,7 @@ commands =
[testenv:releasenotes] [testenv:releasenotes]
usedevelop = False usedevelop = False
deps = deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2024.1}
-r{toxinidir}/doc/requirements.txt -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
@ -57,7 +57,7 @@ deps =
hacking~=6.1.0 # Apache-2.0 hacking~=6.1.0 # Apache-2.0
pycodestyle>=2.0.0,<3.0.0 # MIT pycodestyle>=2.0.0,<3.0.0 # MIT
doc8>=0.8.1 # Apache-2.0 doc8>=0.8.1 # Apache-2.0
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2024.1}
commands = commands =
flake8 ironic_inspector flake8 ironic_inspector
doc8 -e .rst -e .inc README.rst CONTRIBUTING.rst doc/source api-ref/source doc8 -e .rst -e .inc README.rst CONTRIBUTING.rst doc/source api-ref/source
@ -99,7 +99,7 @@ setenv = PYTHONHASHSEED=0
sitepackages = False sitepackages = False
# NOTE(dtantsur): documentation building process requires importing ironic # NOTE(dtantsur): documentation building process requires importing ironic
deps = deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2024.1}
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt -r{toxinidir}/doc/requirements.txt
commands = commands =
@ -115,7 +115,7 @@ commands =
[testenv:bandit] [testenv:bandit]
usedevelop = False usedevelop = False
deps = deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2024.1}
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
commands = bandit -r ironic_inspector -x test -n 5 -ll -c tools/bandit.yml commands = bandit -r ironic_inspector -x test -n 5 -ll -c tools/bandit.yml