From fd9dfbfd9b34d6467f18b5487e06a1c4c78b09f4 Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Tue, 22 Nov 2022 01:04:55 +0000 Subject: [PATCH] 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 Change-Id: I88b779138aa3b19aca57e8f03f3c17ec077e7d58 --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 239f123b..326b9b42 100644 --- a/tox.ini +++ b/tox.ini @@ -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}