Replace the old UPPER_CONSTRAINTS_FILE env

... by the new TOX_CONSTRAINTS_FILE env, according to the changes made
in the OpenStack projects.

This also adds the constraints to the doc target, to avoid issues
caused by too new versions being pulled.

Change-Id: I3e99c1c24032cc3f4bc85ab07c28f830122beed4
This commit is contained in:
Takashi Kajinami 2024-02-01 13:06:11 +09:00
parent 07cae6e8c7
commit 0a3f8987e1
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@ skipsdist = True
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = stestr run --slowest {posargs}
@ -31,6 +31,7 @@ commands = {posargs}
[testenv:docs]
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
-egit+https://github.com/openstack/cloudbase-init\#egg=cloudbase-init
commands =