From 40ba937626cb262389699e2842cba2a4bf3f27a4 Mon Sep 17 00:00:00 2001 From: Paul Kuruvilla Date: Thu, 16 Apr 2020 23:57:36 +0530 Subject: [PATCH] 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: https://github.com/pypa/setuptools/pull/1878 --- setup.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 4643f3ad..f0c3889b 100644 --- a/setup.py +++ b/setup.py @@ -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( @@ -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=[