Andreas Jaeger 868d2934e4 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.

Change-Id: Iaf2172c3bd84e11ba11b9995cce92b5c80eebc33
2017-12-05 09:17:26 +00:00

35 lines
830 B
INI

[tox]
minversion = 2.0
envlist = py35,py34,py27,pep8
[testenv]
install_command = pip install {opts} {packages}
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
setenv = VIRTUAL_ENV={envdir}
DISCOVER_DIRECTORY=blazarclient/tests
commands =
python setup.py testr --slowest --testr-args="{posargs}"
[testenv:pep8]
commands = flake8
[flake8]
show-source = true
builtins = _
# Ignore currently failing tests for now
ignore = E265,H405
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg
[hacking]
import_exceptions = blazarclient.i18n
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands =
python setup.py testr --coverage --testr-args='{posargs}'