From b401c3d2eac2aa9b73815034b44af75f65e6d7bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Wed, 6 Apr 2016 23:51:15 +0200 Subject: Refactor test setup/commands, enable tox. Closes #273. --- tox.ini | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tox.ini (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..bbcf538 --- /dev/null +++ b/tox.ini @@ -0,0 +1,35 @@ +[tox] +envlist = + py{27,34}-django{17,18,19} + py{27,34}-alchemy10 + py{27,34}-mongoengine010 + examples + lint + +toxworkdir = {env:TOX_WORKDIR:.tox} + +[testenv] +deps = + -rrequirements_test.txt + django17: Django>=1.7,<1.8 + django18: Django>=1.8,<1.9 + django19: Django>=1.9,<1.10 + django{17,18,19}: Pillow + alchemy10: SQLAlchemy>=1.0,<1.1 + mongoengine010: mongoengine>=0.10,<0.11 + +whitelist_externals = make +commands = make test + +[testenv:examples] +basepython = python3.4 +deps = + -rrequirements_test.txt + -rexamples/requirements.txt + +whitelist_externals = make +commands = make example-test + +[testenv:lint] +whitelist_externals = make +commands = make lint -- cgit v1.2.3 From 94a9b2cf9ddd7be181c984793a5404e2b95a779e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Wed, 6 Apr 2016 23:51:41 +0200 Subject: Cleanup manifest. Also, use check_manifest to check for MANIFEST.in / git mismatches. --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index bbcf538..4ccade6 100644 --- a/tox.ini +++ b/tox.ini @@ -31,5 +31,9 @@ whitelist_externals = make commands = make example-test [testenv:lint] +deps = + pylint + check_manifest + whitelist_externals = make commands = make lint -- cgit v1.2.3