3ef1dded7d
Install crudini and iniprase from GitHub to work around their py3-supporting versions not being on PyPi. [1] and [2] for more details. [1] https://github.com/pixelb/crudini/issues/58 [2] https://github.com/candlepin/python-iniparse/issues/5 Change-Id: I6d3391e9a9bafa3f2294944a306d8dc9bd12f283
36 lines
862 B
INI
36 lines
862 B
INI
[tox]
|
|
minversion = 2.3.1
|
|
envlist = pep8,py{27,35,36,37}
|
|
skipsdist = 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
|