From 671e3221e9dc1c2ad8020cd7225a099bc1aff524 Mon Sep 17 00:00:00 2001 From: "wu.shiming" Date: Thu, 19 Nov 2020 17:27:03 +0800 Subject: [PATCH] Update TOX_CONSTRAINTS_FILE UPPER_CONSTRAINTS_FILE is old name and deprecated -https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file This allows to use lower-constraints file as more readable way instead of UPPER_CONSTRAINTS_FILE=. Change-Id: I07c39901744580a45f26f19ce60a54510c10d701 --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index ac156b01..f4c8e6e5 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ commands = stestr slowest sitepackages = True deps = - -c {env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} + -c {env:TOX_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} -r {toxinidir}/requirements.txt -r {toxinidir}/test-requirements.txt whitelist_externals = bash @@ -65,6 +65,7 @@ commands = python setup.py test --coverage --testr-args='{posargs}' [testenv:docs] deps = + -c {env:TOX_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} -r {toxinidir}/test-requirements.txt -r {toxinidir}/doc/requirements.txt commands=