7
7
envlist = py25, py26, py27, py31, py32
8
8
9
9
[testenv]
10
- commands =
11
- {envpython} setup.py clean build_ext install
12
- {envbindir}/nosetests tests
13
- /bin/rm -rf {toxinidir}/build {toxinidir}/tests
14
10
deps =
15
11
cython
16
12
numpy >= 1.6.1
17
13
nose
18
14
pytz
19
15
16
+ # cd to anything but the default {toxinidir} which
17
+ # contains the pandas subdirectory and confuses
18
+ # nose away from the fresh install in site-packages
19
+ changedir = {envdir}
20
+
21
+ commands =
22
+ # TODO: --exe because of GH #761
23
+ {envbindir}/nosetests --exe pandas.tests
24
+ # cleanup the temp. build dir created by the tox build
25
+ /bin/rm -rf {toxinidir}/build
26
+
27
+ # quietly rollback the install.
28
+ # Note this line will only be reached if the tests
29
+ # previous lines succeed (in particular, the tests),
30
+ # but an uninstall is really only required when
31
+ # files are removed from source tree, in which case,
32
+ # stale versions of files will will remain in the venv,
33
+ # until the next time uninstall is run.
34
+ #
35
+ # tox should provide a preinstall-commands hook.
36
+ pip uninstall pandas -qy
37
+
38
+
20
39
[testenv:py25]
21
- changedir = .tox/py25/lib/python2.5/site-packages/pandas
22
40
deps =
23
41
cython
24
42
numpy >= 1.6.1
@@ -27,13 +45,9 @@ deps =
27
45
simplejson
28
46
29
47
[testenv:py26]
30
- changedir = .tox/py26/lib/python2.6/site-packages/pandas
31
48
32
49
[testenv:py27]
33
- changedir = .tox/py27/lib/python2.7/site-packages/pandas
34
50
35
51
[testenv:py31]
36
- changedir = .tox/py31/lib/python3.1/site-packages/pandas
37
52
38
53
[testenv:py32]
39
- changedir = .tox/py32/lib/python3.2/site-packages/pandas
0 commit comments