Skip to content

Commit

Permalink
Add test dependencies to setup.py
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rohitpaulk committed Apr 16, 2020
1 parent 641862e commit 40ba937
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
]

tests_require = [
"mock>=2.0.0"
"mock>=2.0.0",
"pylint>=1.9.3",
"flake8>=3.7.9",
"coverage>=5.1"
]

setup(
Expand All @@ -45,7 +48,9 @@
packages=['analytics', 'analytics.test'],
license='MIT License',
install_requires=install_requires,
tests_require=tests_require,
extras_require={
'test': tests_require
},
description='The hassle-free way to integrate analytics into any python application.',
long_description=long_description,
classifiers=[
Expand Down

0 comments on commit 40ba937

Please sign in to comment.