Add support for tox

This commit is contained in:
Marc Abramowitz 2012-05-14 20:44:23 -07:00
parent d807c60346
commit 6a449d497a
3 changed files with 22 additions and 1 deletions

5
.gitignore vendored
View File

@ -22,4 +22,7 @@ coverage.xml
nosetests.xml
junit-py25.xml
junit-py26.xml
junit-py27.xml
junit-py27.xml
# tox noise
.tox

View File

@ -49,6 +49,9 @@ setup(
'tablib', 'tablib.formats',
'tablib.packages',
'tablib.packages.xlwt',
'tablib.packages.xlrd',
'tablib.packages.omnijson',
'tablib.packages.odf',
'tablib.packages.openpyxl',
'tablib.packages.openpyxl.shared',
'tablib.packages.openpyxl.reader',

15
tox.ini Normal file
View File

@ -0,0 +1,15 @@
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py26, py27, py32, pypy
[testenv]
commands = python setup.py test
deps =
pytest
PyYAML
xlrd
omnijson