Skip to content

Commit e47f592

Browse files
committed
setup.py: Add tests_require.
Including `mock` and `nose` in the setup_requires list installs them onto the production system which is not at all what we want.
1 parent f16208b commit e47f592

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,18 @@
1818
"requests",
1919
"requests_oauthlib",
2020
"certifi",
21+
]
22+
tests_require = [
2123
"nose",
22-
"mock"
24+
"mock",
2325
]
2426
include_package_data = True
2527

2628
try:
2729
from setuptools import setup
2830
options["install_requires"] = install_requires
2931
options["include_package_data"] = include_package_data
32+
options["tests_require"] = tests_require
3033
setup(**options)
3134

3235
except ImportError:

0 commit comments

Comments
 (0)