Skip to content

Commit

Permalink
Pin pip to 20.2.3 for tox
Browse files Browse the repository at this point in the history
We need to pin the pip version, as at the time of this writing URL
dependencies are not supported. When they will be supported by a current
release this can be removed again.

See pypa/pip#8253
  • Loading branch information
sebageek committed Apr 21, 2021
1 parent 8918c04 commit 6488d54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
[tox]
envlist = py27,py36
minversion = 1.6
minversion = 3.2
skipsdist = True
requires = virtualenv >= 20

[testenv]
usedevelop = True
install_command = pip install -c {env:UPPER_CONSTRAINTS_FILE:https://raw.githubusercontent.com/sapcc/requirements/stable/ussuri-m3/upper-constraints.txt} -r requirements.txt -r test-requirements.txt -U {opts} {packages}
# pip 20.2.3 is used until constraints as urls are reintroduced in pip
# see https://github.com/pypa/pip/issues/8253 or PR 9673 (currently merged, not released)
setenv = VIRTUAL_ENV={envdir}
VIRTUALENV_PIP=20.2.3
PYTHONWARNINGS=default::DeprecationWarning
deps = -r{toxinidir}/test-requirements.txt
-e{env:NEUTRON_SOURCE:git+https://github.com/sapcc/neutron.git@stable/ussuri-m3#egg=neutron}
whitelist_externals = sh
commands = python setup.py testr --slowest --testr-args='{posargs}'
download = True

[testenv:pep8]
commands =
Expand Down

0 comments on commit 6488d54

Please sign in to comment.