summaryrefslogtreecommitdiff
path: root/tox.ini
blob: ea8e2bb78feb2e1cf2623fb1f58c69dce100e81d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[tox]
envlist = py27,py32,py25,py26,py31,pypy15,pypy16,pypy17,jython,gae25,gae27

#===========================================================================
# stock CPython VMs
#===========================================================================
[testenv]
setenv =
	PASSLIB_TESTS = all
	PASSLIB_TESTS_FUZZ_TIME = 20
changedir = {envdir}
commands =
	nosetests passlib.tests
deps =
	nose
	unittest2

[testenv:py27]
deps =
	nose
	unittest2
	py-bcrypt
	bcryptor

[testenv:py31]
deps =
    nose
    unittest2py3k

[testenv:py32]
deps =
    nose
    unittest2py3k

#===========================================================================
# PyPy VM - all target Python 2.7
#===========================================================================
[testenv:pypy15]
basepython = pypy1.5

[testenv:pypy16]
basepython = pypy1.6

[testenv:pypy17]
basepython = pypy1.7
setenv =
	PASSLIB_TESTS = all
	PASSLIB_TESTS_FUZZ_TIME = 20
    PASSLIB_BUILTIN_BCRYPT = enable # only place this isn't punitively slow

#===========================================================================
# Jython - no special directives, currently same as py25
#===========================================================================

#===========================================================================
# Google App Engine
#===========================================================================
[testenv:gae25]
basepython = python2.5
deps =
	nose
    # FIXME: getting all kinds of errors when using nosegae 0.2.0 :(
	nosegae==0.1.9
	unittest2
changedir = {envdir}/lib/python2.5/site-packages
commands =
    # setup custom app.yaml so GAE can run
    python -m passlib.tests.tox_support . python

	# have to run without sandbox for now, something in nose+GAE+virtualenv
	# won't play nice with eachother.
    nosetests --with-gae --without-sandbox passlib/tests

[testenv:gae27]
basepython = python2.7
deps =
	nose
    # FIXME: getting all kinds of errors when using nosegae 0.2.0 :(
	nosegae==0.1.9
	unittest2
changedir = {envdir}/lib/python2.7/site-packages
commands =
    # setup custom app.yaml so GAE can run
    python -m passlib.tests.tox_support . python27

	# have to run without sandbox for now, something in nose/GAE/virtualenv
	# won't play nice with eachother.
    nosetests --with-gae --without-sandbox passlib/tests

#===========================================================================
# EOF
#===========================================================================