Ensure that tox uses global pins
The tox implementation currently does not make use of the global pins as requirements or as constraints. This may cause an inconsistent pip, setuptools and wheel package set being installed when executing tests. This patch ensures that the pinned versions are installed when setting up the tox venv, and ensures that the pins are used as constraints in any subsequent package installations. Closes-Bug: #1658773 Change-Id: Id4176f39eeefe3323c35e5f05bca6b208b615088
This commit is contained in:
parent
d8847875e8
commit
e3c8c246e6
3
tox.ini
3
tox.ini
@ -8,8 +8,9 @@ envlist = linters,docs,releasenotes
|
|||||||
usedevelop = True
|
usedevelop = True
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
install_command =
|
install_command =
|
||||||
pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
pip install -c{toxinidir}/global-requirement-pins.txt -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||||||
deps =
|
deps =
|
||||||
|
-r{toxinidir}/global-requirement-pins.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
passenv =
|
passenv =
|
||||||
HOME
|
HOME
|
||||||
|
Loading…
Reference in New Issue
Block a user