Add a tox.ini

This commit is contained in:
Marc Abramowitz 2012-05-09 23:46:30 -07:00
parent 2804b95c4a
commit cee1103e21
2 changed files with 24 additions and 4 deletions

View File

@ -1,11 +1,21 @@
#!/usr/bin/env python #!/usr/bin/env python
from setuptools import setup
from oyster import __version__
long_description = open('README.rst').read() import os
from setuptools import setup
# Hack to prevent stupid "TypeError: 'NoneType' object is not callable" error
# in multiprocessing/util.py _exit_function when running `python
# setup.py test` (see
# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
try:
import multiprocessing
except ImportError:
pass
long_description = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
setup(name="oyster", setup(name="oyster",
version=__version__, version='0.3.2',
py_modules=['oyster'], py_modules=['oyster'],
author="James Turk", author="James Turk",
author_email='jturk@sunlightfoundation.com', author_email='jturk@sunlightfoundation.com',

10
tox.ini Normal file
View File

@ -0,0 +1,10 @@
# Tox (http://codespeak.net/~hpk/tox/) 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, pypy
[testenv]
commands = python setup.py test