From 1f024e87ac533ee5fd6131cf7f57750d27fbba34 Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Thu, 7 Nov 2019 13:03:37 -0600 Subject: [PATCH] Fix pylint zuul error due to python-libvirt version Nov 6th saw the release of a new version of python-libvirt. tox.ini did not have an upper-constraint set for it, so we picked up that version, which caused zuul to fail in pylint. Adding an upper-constraint to fix the issue. This allows all reviews in stx/utilities to pass zuul and be able to merge. Change-Id: Idcdf37fbfb2f8745aadff9aacba828e8166dbc46 Closes-Bug: 1851707 Signed-off-by: Al Bailey --- tox.ini | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/tox.ini b/tox.ini index 0a5a5b85..c8add65d 100644 --- a/tox.ini +++ b/tox.ini @@ -7,18 +7,21 @@ sitepackages=False stxdir = {toxinidir}/.. [testenv] -install_command = pip install -U {opts} {packages} +install_command = pip install \ + -v -v -v \ + -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt} \ + -U {opts} {packages} setenv = - VIRTUAL_ENV={envdir} - OS_STDOUT_CAPTURE=1 - OS_STDERR_CAPTURE=1 - OS_DEBUG=1 - OS_LOG_CAPTURE=1 + VIRTUAL_ENV={envdir} + OS_STDOUT_CAPTURE=1 + OS_STDERR_CAPTURE=1 + OS_DEBUG=1 + OS_LOG_CAPTURE=1 deps = - -r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt whitelist_externals = - bash + bash [testenv:bashate] # Treat all E* codes as Errors rather than warnings using: -e 'E*'