Skip to content

Commit 40ba937

Browse files
committed
Add test dependencies to setup.py
Also replaced tests_require with extras_require. The test command (which tests_required was used for) was deprecated in setuptools 41.5.0. Ref: pypa/setuptools#1878
1 parent 641862e commit 40ba937

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

setup.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
]
3131

3232
tests_require = [
33-
"mock>=2.0.0"
33+
"mock>=2.0.0",
34+
"pylint>=1.9.3",
35+
"flake8>=3.7.9",
36+
"coverage>=5.1"
3437
]
3538

3639
setup(
@@ -45,7 +48,9 @@
4548
packages=['analytics', 'analytics.test'],
4649
license='MIT License',
4750
install_requires=install_requires,
48-
tests_require=tests_require,
51+
extras_require={
52+
'test': tests_require
53+
},
4954
description='The hassle-free way to integrate analytics into any python application.',
5055
long_description=long_description,
5156
classifiers=[

0 commit comments

Comments
 (0)