Fix tox failures from new resolver in pip
New pip was released on Dec 3, 2020 which breaks downloads from pypi for some URLs. New virtualenv was released Dec 7 which includes the new pip. The new pip uses a different resolver which fails with many of the components installed by pip. These components may need to be fixed by later commits, since the legacy resolver is being removed completely in early 2021. Change-Id: Ifcbd8965e2ef0b53dae0c878c2a0f2bd91b572c2 Closes-Bug: 1907125 Signed-off-by: albailey <Al.Bailey@windriver.com>
This commit is contained in:
parent
164e8be8dd
commit
9f0c5426cc
@ -18,7 +18,7 @@ cgtsclient_src_dir = ../../config/sysinv/cgts-client/cgts-client
|
||||
cgcs_patch_src_dir = ../../update/cgcs-patch/cgcs-patch
|
||||
|
||||
[testenv]
|
||||
install_command = pip install \
|
||||
install_command = pip install --use-deprecated legacy-resolver -v -v -v \
|
||||
-c ./upper-constraints.txt \
|
||||
-c https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt \
|
||||
{opts} {packages}
|
||||
@ -40,6 +40,10 @@ whitelist_externals =
|
||||
|
||||
[testenv:py27]
|
||||
basepython = python2.7
|
||||
install_command = pip install -v -v -v \
|
||||
-c ./upper-constraints.txt \
|
||||
-c https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt \
|
||||
{opts} {packages}
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
-r{toxinidir}/requirements.txt
|
||||
keyring
|
||||
|
@ -1,4 +1,3 @@
|
||||
PyYAML>=3.1.0
|
||||
yamllint>=0.5.2
|
||||
mock>=2.0 # BSD
|
||||
bandit!=1.6.0,>=1.1.0,<2.0.0
|
||||
|
3
tox.ini
3
tox.ini
@ -4,7 +4,7 @@ minversion = 2.3
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
install_command = pip install \
|
||||
install_command = pip install --use-deprecated legacy-resolver -v -v -v \
|
||||
-c https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt \
|
||||
{opts} {packages}
|
||||
setenv =
|
||||
@ -87,4 +87,5 @@ whitelist_externals = rm
|
||||
basepython = python3
|
||||
description = Bandit code scan for *.py files under config folder
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
bandit
|
||||
commands = bandit -r {toxinidir}/ -x '**/.tox/**,**/.eggs/**' -lll
|
||||
|
Loading…
Reference in New Issue
Block a user