
As of mitaka, the infra team won't have the resources available to reasonably test py26, also the oslo team is dropping py26 support from their libraries. sine we rely on oslo for a lot of our work, and depend on infra for our CI, we should drop py26 support too. Closes-Bug: 1519510 Change-Id: Ie8dc40df5fddce298f31f7a3d5436493b9b090bb
42 lines
1.2 KiB
INI
42 lines
1.2 KiB
INI
[tox]
|
|
envlist = py27,py33,py34,pypy,pep8
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
LANG=en_US.UTF-8
|
|
LANGUAGE=en_US:en
|
|
LC_ALL=C
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py testr --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
distribute = false
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[flake8]
|
|
# E125 continuation line does not distinguish itself from next logical line
|
|
# H302 import only modules
|
|
# H105 Don't use author tags
|
|
# H405 multi line docstring summary not separated with an empty line
|
|
# E265 block comment should start with '# '
|
|
# H238 old style class declaration, use new style (inherit from `object`)
|
|
# E129 visually indented line with same indent as next logical line
|
|
# E113 unexpected indentation
|
|
ignore = E125,H302,H105,H405,E265,H238,E129,E113
|
|
show-source = true
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools
|