9f6ba312c6
The Blazar code base is not yet compatible with Python 3. Having tox environments for them is a first step towards fixing it. Change-Id: I04441e4881eb7fe9b4c12d65392796c1020b41df
48 lines
1.2 KiB
INI
48 lines
1.2 KiB
INI
[tox]
|
|
envlist = py35,py34,py27,pep8
|
|
minversion = 2.0
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
DISCOVER_DIRECTORY=climate/tests
|
|
PYTHONHASHSEED=0
|
|
commands =
|
|
lockutils-wrapper python setup.py testr --slowest --testr-args="{posargs}"
|
|
|
|
sitepackages = False
|
|
|
|
[testenv:cover]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands =
|
|
lockutils-wrapper python setup.py testr --coverage --testr-args="{posargs}"
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands =
|
|
rm -rf doc/html doc/build
|
|
rm -rf doc/source/apidoc doc/source/api
|
|
python setup.py build_sphinx
|
|
|
|
[flake8]
|
|
show-source = true
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools
|
|
# NOTE(tonyb): Ignore a few errors/warnings that are now "on by default".
|
|
ignore=H105,H238,E123
|
|
|
|
[hacking]
|
|
import_exceptions =
|
|
climate.openstack.common.gettextutils
|
|
|
|
[testenv:pylint]
|
|
commands = pylint climate
|