Fix OpenStack dependencies

Respect upper-constraints.txt
To prevent pip installing the latest and greatest packages
(which may break Bareon), pin the version to those specified
in the upper-constraints.txt file from the openstack
requirements repo.

Fix hacking module version
Change hacking version in pep8 tox tests to prevent conflict
with other openstack requirements.

Change-Id: I0c13b8f94212cc8e77db2a2d1d1bc63318a14fda
This commit is contained in:
Benjamin Michael Cooper 2017-08-15 11:08:14 +01:00
parent b0c22a2505
commit 546b100b25
1 changed files with 2 additions and 2 deletions

View File

@ -5,14 +5,14 @@ envlist = pep8
[testenv]
usedevelop = True
install_command = pip install --allow-external -U {opts} {packages}
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
[testenv:jenkins]
downloadcache = ~/cache/pip
[testenv:pep8]
deps = hacking==0.10.2
deps = hacking>=0.10.3
commands =
flake8 {posargs:ramdisk_func_test}