From f7c892f87227a868568ab0b99e9e82f1cc0a4080 Mon Sep 17 00:00:00 2001 From: Justin Mahlik Date: Wed, 9 Oct 2024 18:00:27 -0500 Subject: [PATCH] fix: packaging move test deps to an extra instead of tests_require Remove `tests_require`, it is essentially deprecated and wasn't used. See https://github.com/pypa/setuptools/issues/931, it's likely to be removed soon. --- setup.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 48cf620..ee56ac0 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,6 @@ #!/usr/bin/env python import os -import sys from setuptools import find_packages, setup, Command @@ -43,15 +42,10 @@ def run(self): 'scipy>=1.6.0', ] -# test requirements -tests_require = [ - 'pytest', - 'coverage' -] - # extra requirements extras_require = { 'distributed': ['pympler', 'tdigest'], + 'test': ['coverage', 'flake8', 'pytest', 'pyarrow'], } @@ -76,7 +70,6 @@ def run(self): cmdclass={'clean': CleanCommand}, python_requires='>=3.7', install_requires=install_requires, - tests_require=tests_require, extras_require=extras_require, classifiers=[ 'Topic :: Scientific/Engineering :: Mathematics',