From 566f60e5978a83f477aa864e255c4e16dc933525 Mon Sep 17 00:00:00 2001 From: aviau Date: Mon, 11 Aug 2014 14:30:42 -0400 Subject: [PATCH] Added tox.ini + setup.py Change-Id: I8aae9f9cea299a451e0d1d16588c8584e688bfd0 --- .gitignore | 3 +++ requirements.txt | 0 setup.cfg | 4 ++++ setup.py | 3 +++ test-requirements.txt | 2 ++ tox.ini | 19 +++++++++++++++++++ 6 files changed, 31 insertions(+) create mode 100644 requirements.txt create mode 100644 setup.cfg create mode 100644 setup.py create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index fddd66d..e03559c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ # documentation doc/build + +# tests +.tox diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..8394725 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,4 @@ +[build_sphinx] +source-dir = doc/source +build-dir = doc/build +all_files = 1 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..b908cbe --- /dev/null +++ b/setup.py @@ -0,0 +1,3 @@ +import setuptools + +setuptools.setup() diff --git a/test-requirements.txt b/test-requirements.txt index 715b65c..a6700f9 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,3 +2,5 @@ sphinxcontrib-pecanwsme>=0.8 sphinxcontrib-httpdomain wsme oslosphinx +nose +flake8 diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..21ba7ed --- /dev/null +++ b/tox.ini @@ -0,0 +1,19 @@ +[tox] +minverson = 1.6 +skipsdist = True +envlist = py27, pep8 + +[testenv] +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands = nosetests + +[testenv:pep8] +commands = flake8 + +[testenv:venv] +commands = {posargs} + +[flake8] +exclude = .tox