Fix openstack-tox jobs for gui repo

The Zuul upper-constraints env variable declaration needed
to be added to tox.ini otherwise an older constraints
was being used which does not work with newer
versions of python.

Adding legacy-resolver to attempt to resolve dependency
issues when importing different stx client modules.

Partial-Bug: #1997255

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I88b779138aa3b19aca57e8f03f3c17ec077e7d58
This commit is contained in:
Al Bailey 2022-11-22 01:04:55 +00:00
parent 1aa1aaf997
commit fd9dfbfd9b
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@ stxdir = {toxinidir}/..
# defaulted here to the path that works in developer environments
[testenv]
install_command = pip install \
-v -v -v \
-c https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt \
-v -v -v --use-deprecated legacy-resolver \
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt} \
{opts} {packages}
setenv = VIRTUAL_ENV={envdir}