aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2012-06-13 22:43:49 -0400
committerRalph Bean <rbean@redhat.com>2012-06-13 22:43:49 -0400
commitb56a53ffda38245bb2ed9aafa69f84e3eda90056 (patch)
tree95bcb736cab391f2cda03374a37d87204cd2994c /setup.py
parentMerge #5 'services/orgs' (diff)
downloadpython-github3-b56a53ffda38245bb2ed9aafa69f84e3eda90056.tar.xz
python-github3-b56a53ffda38245bb2ed9aafa69f84e3eda90056.zip
Allow "python setup.py test"
Diffstat (limited to '')
-rw-r--r--setup.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index ad082b9..c908532 100644
--- a/setup.py
+++ b/setup.py
@@ -4,6 +4,13 @@
from setuptools import setup, find_packages
import pygithub3
+# Odd hack to get 'python setup.py test' working on py2.7
+try:
+ import multiprocessing
+ import logging
+except ImportError:
+ pass
+
setup(
name=pygithub3.__name__,
version=pygithub3.__version__,
@@ -14,6 +21,11 @@ setup(
long_description=open('README.rst').read(),
license='ISC',
packages=find_packages(exclude=['*tests*']),
+ test_suite='nose.collector',
+ tests_require=[
+ 'nose',
+ 'mock',
+ ],
install_requires=map(str.strip, open('requirements/base.txt')),
include_package_data=True,
classifiers=(