@@ -7,11 +7,16 @@ ignore_basepython_conflict = True
77[testenv]
88basepython = python3
99usedevelop = True
10- install_command = pip install -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/ constraints/upper/2025.1} -U {opts} {packages}
10+ install_command = {toxinidir}/tools/ pip.sh -- build-constraint ={toxinidir}/build- constraints.txt {opts} {packages}
1111setenv =
1212 VIRTUAL_ENV ={envdir}
13- deps = -r{toxinidir}/requirements.txt
13+ deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2025.1}
14+ -r{toxinidir}/requirements.txt
1415 -r{toxinidir}/test-requirements.txt
16+ pip ==25.3 # Needed for build-constraints.txt
17+ setuptools<82 # Due to deprecation of pkg_resources
18+ allowlist_externals =
19+ {toxinidir}/tools/pip.sh
1520commands =
1621 stestr run --slowest {posargs}
1722
@@ -32,13 +37,16 @@ commands =
3237 coverage xml -o cover/coverage.xml
3338
3439[testenv:docs]
35- deps = -r{toxinidir}/doc/requirements.txt
40+ deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2025.1}
41+ -r{toxinidir}/doc/requirements.txt
42+ setuptools<82 # Due to deprecation of pkg_resources
3643commands = sphinx-build -W --keep-going -b html doc/source doc/build/html
3744
3845[testenv:pdf-docs]
3946deps = {[testenv:docs]deps}
4047allowlist_externals =
4148 make
49+ {toxinidir}/tools/pip.sh
4250commands =
4351 sphinx-build -W --keep-going -b latex doc/source doc/build/pdf
4452 make -C doc/build/pdf
@@ -55,6 +63,6 @@ builtins = _
5563exclude =.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,.ropeproject,releasenotes
5664
5765[testenv:releasenotes]
58- deps = -r{toxinidir}/doc/requirements.txt
66+ deps = {[testenv:docs]deps}
5967commands =
6068 sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
0 commit comments