renderspec/tox.ini
Andreas Jaeger 5da2cb66a1 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

For this, move bandit to test-requirements.txt.

Change-Id: If1ca9278e104c519a1aff88ed9ff27e120e34aff
2017-12-20 10:25:12 +01:00

36 lines
856 B
INI

[tox]
envlist = py27,py34,py35,pypy,pep8
minversion = 2.0
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
OS_STDOUT_NOCAPTURE=False
OS_STDERR_NOCAPTURE=False
PYTHONHASHSEED=0
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --testr-args='{posargs}'
[testenv:pep8]
commands =
flake8
bandit -r -s B701 renderspec -x tests
[testenv:venv]
commands = {posargs}
[testenv:bandit]
commands = bandit -s B701 -r renderspec -x tests
[flake8]
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[testenv:docs]
commands = python setup.py build_sphinx