diff --git a/setup.py b/setup.py index 1641e4e..fbfd6f3 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,21 @@ #!/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", - version=__version__, + version='0.3.2', py_modules=['oyster'], author="James Turk", author_email='jturk@sunlightfoundation.com', diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..8609a05 --- /dev/null +++ b/tox.ini @@ -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