Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make tox work across versions of Python from 2.5 to 3.2

  • Loading branch information...
commit f016133421203c634919b3c0144bc9873ca4b32f 1 parent b26d0e2
@msabramo msabramo authored wesm committed
Showing with 28 additions and 4 deletions.
  1. +4 −1 setup.py
  2. +24 −3 tox.ini
View
5 setup.py
@@ -201,11 +201,14 @@
else:
FULLVERSION += QUALIFIER
-def write_version_py(filename='pandas/version.py'):
+def write_version_py(filename=None):
cnt = """\
version = '%s'
short_version = '%s'
"""
+ if not filename:
+ filename = os.path.join(os.path.dirname(__file__), 'pandas', 'version.py')
+
a = open(filename, 'w')
try:
a.write(cnt % (FULLVERSION, VERSION))
View
27 tox.ini
@@ -8,11 +8,32 @@ envlist = py25, py26, py27, py31, py32
[testenv]
commands =
- {envpython} setup.py clean
- {envpython} setup.py build_ext --inplace
- nosetests pandas
+ {envpython} setup.py clean build_ext install
+ {envbindir}/nosetests tests
+ rm -rf {toxinidir}/build {toxinidir}/tests
deps =
cython
numpy >= 1.6.1
nose
pytz
+
+[testenv:py25]
+changedir = .tox/py25/lib/python2.5/site-packages/pandas
+deps =
+ cython
+ numpy >= 1.6.1
+ nose
+ pytz
+ simplejson
+
+[testenv:py26]
+changedir = .tox/py26/lib/python2.6/site-packages/pandas
+
+[testenv:py27]
+changedir = .tox/py27/lib/python2.7/site-packages/pandas
+
+[testenv:py31]
+changedir = .tox/py31/lib/python3.1/site-packages/pandas
+
+[testenv:py32]
+changedir = .tox/py32/lib/python3.2/site-packages/pandas
Please sign in to comment.
Something went wrong with that request. Please try again.