Files
charms.openstack/tox.ini
Alex Kavanagh 747b5e1d87 Remove py2.7 support
The underlying library (charms.reactive) no longer support py27, and
reactive charms are only py35 and later supported.  Thus, there is no
reason to support py27 in charms.openstack.

Note: the zuul gate still has a py27 test so that is left in the tox.ini
but it simply evaluates to true.

Change-Id: I9a4e18038b706286f60e64fcf67f3e63a90feda9
2017-05-12 16:50:58 +01:00

38 lines
924 B
INI

[tox]
envlist = pep8,py27,py34,py35
skipsdist = True
skip_missing_interpreters = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
install_command =
pip install --allow-unverified python-apt {opts} {packages}
commands = ostestr {posargs}
[testenv:py27]
basepython = python2.7
deps = -r{toxinidir}/test-requirements.txt
# Py27 needs to be disabled as upstream charms.reactive is not Py3.5+ only
# However, we can't yet remove the actually py27 test from the gate.
commands = python -c "print('Py27 testing disabled.')" && /bin/true
[testenv:py34]
basepython = python3.4
deps = -r{toxinidir}/test-requirements.txt
[testenv:py35]
basepython = python3.5
deps = -r{toxinidir}/test-requirements.txt
[testenv:pep8]
basepython = python3.5
deps = -r{toxinidir}/test-requirements.txt
commands = flake8 {posargs} charms_openstack unit_tests
[testenv:venv]
commands = {posargs}
[flake8]
ignore = E402,E226