10000 Use tests_require instead of install_requires · davidmoss/github3.py@6dc0193 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6dc0193

Browse files
committed
Use tests_require instead of install_requires
Previously some dependencies for unit testing were mixed with other dependencies in install_requires option. Distribute (was setuptools) provides tests_require option to describe dependencies only for testing, so we'd better to utilize it.  More over it doesn't require administrator permission even if you aren't using virtualenv --- it simply unpacks dependencies on working directory instead.
1 parent a0b2c1d commit 6dc0193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
try:
1717
from setuptools import setup
1818
kwargs['test_suite'] = 'run_tests.collect_tests'
19-
requires = ['mock', 'expecter', 'coverage==3.5.2']
19+
kwargs['tests_require'] = ['mock', 'expecter', 'coverage==3.5.2']
2020
packages.append('tests')
2121
except ImportError:
2222
from distutils.core import setup # NOQA

0 commit comments

Comments
 (0)
0