Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c070673

Browse files
committed
Add ability to use python setup.py test (from setuptools) to run
tests.
1 parent b8412e6 commit c070673

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.py[co]
22
build
33
dist
4+
*.egg-info

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python
22

3-
from distutils.core import setup
3+
try:
4+
from setuptools import setup
5+
except ImportError:
6+
from distutils.core import setup
47

58
version = __import__('reloader').__version__
69

@@ -18,4 +21,5 @@
1821
'Operating System :: OS Independent',
1922
'Programming Language :: Python'],
2023
py_modules = ['reloader'],
24+
test_suite = 'tests',
2125
)

0 commit comments

Comments
 (0)