2014-07-04 18:56:07 +09:00
|
|
|
[tox]
|
2017-03-08 18:04:17 +05:30
|
|
|
envlist = py35,py27,pypy,pep8
|
2016-12-21 13:29:00 +11:00
|
|
|
minversion = 2.0
|
2014-07-04 18:56:07 +09:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2016-12-21 13:29:00 +11:00
|
|
|
BRANCH_NAME=master
|
|
|
|
CLIENT_NAME=python-tackerclient
|
2014-07-04 18:56:07 +09:00
|
|
|
LANG=en_US.UTF-8
|
|
|
|
LANGUAGE=en_US:en
|
|
|
|
LC_ALL=C
|
|
|
|
usedevelop = True
|
2016-12-21 13:29:00 +11:00
|
|
|
install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
2014-07-04 18:56:07 +09:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
commands = python setup.py testr --testr-args='{posargs}'
|
|
|
|
|
|
|
|
[testenv:pep8]
|
|
|
|
commands = flake8
|
|
|
|
distribute = false
|
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2016-05-31 22:12:10 -05:00
|
|
|
[testenv:releasenotes]
|
|
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
|
2014-07-04 18:56:07 +09:00
|
|
|
[testenv:cover]
|
|
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
# E125 continuation line does not distinguish itself from next logical line
|
2016-01-27 22:02:03 +01:00
|
|
|
ignore = E125
|
2014-07-04 18:56:07 +09:00
|
|
|
show-source = true
|
2016-03-18 13:42:26 -04:00
|
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools
|