whitebox-tempest-plugin/tox.ini
Sean Mooney 9395f5d9ea update requirements to support older releases
while python 2.7 support is nolonger required,
as this is a tempest plugin its possible desireable
to be able to run it on older releases.

This change caps the version of sshtunnel used on
python 2.7 to avoid a depency on cryptography 2.6
which is not avaliable on rhel 7 for downstream testing.

In the future we might want to consider if we drop
support for python 2.7 on the master branch and have a
seperate branch for 2.7 suport.

this change also removes py35 form the default tox envs
and update the tox config to skip missing interpreters and
ignore base python version conflict to allow pyXX envs
to work correctly.

Change-Id: I2726619df5752cd8478918346280244a8828c56c
2020-03-02 12:39:20 +00:00

41 lines
1.1 KiB
INI

[tox]
minversion = 2.3.1
envlist = pep8,py{27,36,37}
skipsdist = True
skip_missing_interpreters = True
# Automatic envs (pyXX) will only use the python version appropriate to that
# env and ignore basepython inherited from [testenv] if we set
# ignore_basepython_conflict.
ignore_basepython_conflict = True
[testenv]
setenv =
VIRTUAL_ENV = {envdir}
usedevelop = True
install_command = pip install -U {opts} {packages}
whitelist_externals = *
# Until https://github.com/pixelb/crudini/issues/58 and
# https://github.com/candlepin/python-iniparse/issues/5 are on PyPi, install
# from GitHub.
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
git+https://github.com/pixelb/crudini.git#egg=crudini
git+https://github.com/candlepin/python-iniparse.git#egg=iniparse
commands =
find . -type f -name "*.pyc" -delete
stestr run {posargs}
[testenv:pep8]
commands =
flake8 {posargs}
[flake8]
ignore = H405
enable-extensions = H106,H203,H904
show-source = True
exclude = .git,.venv,.tox,dist,doc,*egg
[hacking]
local-check-factory = tempest.hacking.checks.factory