summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2011-10-07 23:47:25 -0400
committerEli Collins <elic@assurancetechnologies.com>2011-10-07 23:47:25 -0400
commitfd10a9ac9564d2973995bea4bc66155b2ddc6591 (patch)
tree0d91d1a06f7ec36241522b90520a253d3fa047e2 /tox.ini
parent6e09e917ca0aef4002ed2744dd094360c3caa970 (diff)
downloadpasslib-fd10a9ac9564d2973995bea4bc66155b2ddc6591.tar.gz
added tox config file, may replace custom testing harness
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini48
1 files changed, 48 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..f172bf7
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,48 @@
+[tox]
+envlist = py27,py32,py25,py26,py31,pypy15,pypy16,jython,gae
+
+[testenv]
+setenv =
+ PASSLIB_TESTS = all
+changedir = {envdir}
+commands =
+ nosetests passlib.tests
+
+deps =
+ nose
+ unittest2
+
+[testenv:py27]
+deps =
+ nose
+ unittest2
+ py-bcrypt
+ bcryptor
+
+[testenv:py31]
+deps = nose
+
+[testenv:py32]
+deps = nose
+
+[testenv:pypy15]
+basepython = pypy1.5
+
+[testenv:pypy16]
+basepython = pypy1.6
+
+[testenv:gae]
+# NOTE: annoyingly, have to use --without-sandbox
+# or else nose / nosegae / GAE / virtualenv don't play nice.
+# need to figure out what's the matter, and submit a patch.
+# might just have to write a python script that sets everything
+# up and runs nose manually
+basepython = python2.5
+deps =
+ nose
+ nosegae
+ unittest2
+changedir = {envdir}/lib/python2.5/site-packages
+commands =
+ cp {toxinidir}/admin/gae-test-app.yaml app.yaml
+ nosetests --with-gae --without-sandbox passlib/tests