Skip to content
This repository was archived by the owner on Dec 17, 2019. It is now read-only.

Commit b56a53f

Browse files
committed
Allow "python setup.py test"
1 parent 9dedea7 commit b56a53f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

setup.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
from setuptools import setup, find_packages
55
import pygithub3
66

7+
# Odd hack to get 'python setup.py test' working on py2.7
8+
try:
9+
import multiprocessing
10+
import logging
11+
except ImportError:
12+
pass
13+
714
setup(
815
name=pygithub3.__name__,
916
version=pygithub3.__version__,
@@ -14,6 +21,11 @@
1421
long_description=open('README.rst').read(),
1522
license='ISC',
1623
packages=find_packages(exclude=['*tests*']),
24+
test_suite='nose.collector',
25+
tests_require=[
26+
'nose',
27+
'mock',
28+
],
1729
install_requires=map(str.strip, open('requirements/base.txt')),
1830
include_package_data=True,
1931
classifiers=(

0 commit comments

Comments
 (0)