Add tox.ini

changes/59/214159/1
Imre Farkas 7 years ago
parent b6b6207797
commit 7be96d5f82
  1. 4
      README.rst
  2. 0
      dracclient/tests/__init__.py
  3. 5
      requirements.txt
  4. 8
      test-requirements.txt
  5. 22
      tox.ini

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

@ -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

@ -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

@ -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
Loading…
Cancel
Save