Use TOX_CONSTRAINTS_FILE

UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: Ice493f64ecabdeb7a66c14e1fd864c605c5384e5
This commit is contained in:
zhangboye 2020-12-24 15:30:27 +08:00
parent 4c3bf26454
commit 7e72bbf01b
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ setenv =
BRANCH_NAME=master
CLIENT_NAME=oslo.service
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
@ -54,7 +54,7 @@ commands = oslo_debug_helper -t oslo_service/tests {posargs}
[testenv:bandit]
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = bandit -r oslo_service -n5 -x tests {posargs}