
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
25 lines
549 B
INI
25 lines
549 B
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
envlist = pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
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.3
|
|
commands =
|
|
flake8 {posargs:ramdisk_func_test}
|
|
|
|
[flake8]
|
|
ignore = E123,E226,H306
|
|
exclude = .venv,.git,.tox,dist,doc,*egg,build,tools,docs
|
|
show-pep8 = True
|
|
show-source = True
|
|
count = True
|