Support python3 uploaded to pypi websit
[parser.git] / tosca2heat / tosca-parser / tox.ini
1 [tox]
2 minversion = 2.0
3 envlist = pep8,py27,cover
4 skipsdist = True
5
6 [testenv]
7 usedevelop = True
8 install_command = pip install -U {opts} {packages}
9 setenv =
10    VIRTUAL_ENV={envdir}
11 deps = -r{toxinidir}/requirements.txt
12        -r{toxinidir}/test-requirements.txt
13 commands = python setup.py testr --slowest --testr-args='{posargs}'
14
15 [testenv:pep8]
16 commands = flake8
17
18 [testenv:venv]
19 commands = {posargs}
20
21 [testenv:cover]
22 commands =
23   coverage erase
24   python setup.py test --coverage --coverage-package-name=toscaparser --testr-args='{posargs}'
25   coverage report
26
27 [testenv:docs]
28 commands = python setup.py build_sphinx
29
30 [testenv:debug]
31 commands = oslo_debug_helper -t toscaparser/tests {posargs}
32
33 [flake8]
34 show-source = True
35 ignore = E123,E125,H803
36 builtins = _
37 exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build