Add a tox.ini
This commit is contained in:
parent
2804b95c4a
commit
cee1103e21
18
setup.py
18
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',
|
||||
|
10
tox.ini
Normal file
10
tox.ini
Normal 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
|
Loading…
Reference in New Issue
Block a user