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: I44b66529c9efa611abb55a9130d9d23bb6b7f046
This commit is contained in:
Benjamin Michael Cooper 2017-08-15 11:01:06 +01:00
parent 9cacc64c59
commit a8fb6aa0f4

View File

@ -5,7 +5,7 @@ envlist = py27,py34,func,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}
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
deps = -r{toxinidir}/requirements.txt
@ -14,7 +14,7 @@ commands =
py.test -vv {posargs:bareon/tests}
[testenv:pep8]
deps = hacking==0.10.2
deps = hacking>=0.10.3
commands =
flake8 {posargs:bareon}
flake8 {posargs:contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap}