python-dracclient/tox.ini
Jim Rollenhagen 659443b312 Use upper-constraints for all tox targets
The issue has been resolved by infra [0], so we can use upper
constraints for all targets.

[0]
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: I72e5139a23a01e6d374c8fc9187903b0f2cb8118
2016-08-19 08:46:54 -04:00

30 lines
767 B
INI

[tox]
envlist = py35,py34,pep8,py27
[testenv]
usedevelop = True
install_command = pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv = PYTHONDONTWRITEBYTECODE=1
commands =
coverage run --branch --source dracclient --omit "dracclient/tests*" -m unittest discover dracclient.tests
coverage report -m --fail-under 90
[testenv:venv]
commands = {posargs}
[testenv:pep8]
basepython = python2.7
commands =
flake8 dracclient
doc8 README.rst CONTRIBUTING.rst doc/source
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
max-complexity=15
show-source = True