diff --git a/.gitignore b/.gitignore index 8425f02..9a780f1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ celerybeat-schedule oyster_settings.py oyster.egg-info/ *.pyc +.tox diff --git a/setup.py b/setup.py index e4871e1..8db0a77 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python + +import os from setuptools import setup -from oyster import __version__ # Hack to prevent stupid "TypeError: 'NoneType' object is not callable" error # in multiprocessing/util.py _exit_function when running `python @@ -11,10 +12,11 @@ try: except ImportError: pass -long_description = open('README.rst').read() +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