diff --git a/README.md b/README.rst similarity index 58% rename from README.md rename to README.rst index e6f02eb..b133ab2 100644 --- a/README.md +++ b/README.rst @@ -1,2 +1,4 @@ -# python-dracclient +python-dracclient +================= + Library for managing machines with Dell iDRAC cards. diff --git a/dracclient/tests/__init__.py b/dracclient/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/requirements.txt b/requirements.txt index e69de29..a62e0ad 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..7fd4ff3 --- /dev/null +++ b/test-requirements.txt @@ -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 \ No newline at end of file diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..fbc2a30 --- /dev/null +++ b/tox.ini @@ -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 \ No newline at end of file