b475cd53da
Explain the real reason for not using skipdist and develop in this library, which does not have the namespace package. Change-Id: Iaa91ab87ccacae8c26efc473e17b378eec50c31a
41 lines
970 B
INI
41 lines
970 B
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = py34,py26,py27,pep8
|
|
# NOTE(dhellmann): We do not set skipdist=True for oslo libraries
|
|
# because we want to ensure packages always build.
|
|
#skipsdist = True
|
|
|
|
[testenv]
|
|
# NOTE(dhellmann): We do not set usedevelop=True
|
|
# for oslo libraries because we have skipdist=False.
|
|
#usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py testr --coverage
|
|
|
|
[flake8]
|
|
# H803 skipped on purpose per list discussion.
|
|
|
|
show-source = True
|
|
ignore = H803
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|
|
|
|
[hacking]
|
|
import_exceptions = oslo_policy._i18n
|