diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | requirements.txt | 6 | ||||
-rw-r--r-- | tox.ini | 23 |
3 files changed, 30 insertions, 0 deletions
@@ -1,6 +1,7 @@ *.pyc .noseids .coverage +.tox/ .ropeproject/ coverage.xml gbp/version.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..02e8e95e --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +six>=1.9.0 +nose>=0.11.1 +coverage>=2.85 +nosexcover>=1.0.7 +python-dateutil +mock diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..2f98f90f --- /dev/null +++ b/tox.ini @@ -0,0 +1,23 @@ +[tox] +envlist = pep8, py27 +skipsdist = True + +[testenv] +whitelist_externals = + find +install_command = pip install {opts} {packages} +deps = -r{toxinidir}/requirements.txt +sitepackages = True +commands = + find . -type f -name "*.pyc" -delete + +[testenv:pep8] +deps = hacking +commands = + find . -type f -name "*.pyc" -delete + flake8 {posargs} + +[testenv:py27] +commands = + find . -type f -name "*.pyc" -delete + python setup.py nosetests --verbosity=3 --with-xcoverage {posargs} |