Add tox.ini

This commit is contained in:
Imre Farkas 2015-08-03 11:41:33 +02:00
parent b6b6207797
commit 7be96d5f82
5 changed files with 38 additions and 1 deletions

View File

@ -1,2 +1,4 @@
# python-dracclient
python-dracclient
=================
Library for managing machines with Dell iDRAC cards.

View File

View File

@ -0,0 +1,5 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
pywsman>=2.3

8
test-requirements.txt Normal file
View File

@ -0,0 +1,8 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
coverage>=3.6
doc8
hacking>=0.10.0,<0.11
mock>=1.2

22
tox.ini Normal file
View File

@ -0,0 +1,22 @@
[tox]
envlist = pep8,py27,py34
[testenv]
usedevelop = True
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:pep8]
basepython = python2.7
commands =
flake8 dracclient
doc8 README.rst
[flake8]
max-complexity=15
show-source = True