Skip to content

Commit e3fc939

Browse files
committed
fix: remove test command from setup.py
Has been deprecated for 5+ years and has been removed in recent setuptools versions. See pypa/setuptools#4519
1 parent aebe16b commit e3fc939

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

Diff for: setup.py

+1-17
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
import sys
55

66
from setuptools import find_packages, setup, Command
7-
from setuptools.command.test import test as TestCommand
8-
97

108
long_description = '''
119
The optimal binning is the optimal discretization of a variable into bins
@@ -34,20 +32,6 @@ def run(self):
3432
os.system('rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info')
3533

3634

37-
# test suites
38-
class PyTest(TestCommand):
39-
def finalize_options(self):
40-
TestCommand.finalize_options(self)
41-
self.test_args = []
42-
self.test_suite = []
43-
44-
def run_tests(self):
45-
# import here, because outside the eggs aren't loaded
46-
import pytest
47-
errcode = pytest.main(self.test_args)
48-
sys.exit(errcode)
49-
50-
5135
# install requirements
5236
install_requires = [
5337
'matplotlib',
@@ -89,7 +73,7 @@ def run_tests(self):
8973
include_package_data=True,
9074
license="Apache Licence 2.0",
9175
url="https://github.com/guillermo-navas-palencia/optbinning",
92-
cmdclass={'clean': CleanCommand, 'test': PyTest},
76+
cmdclass={'clean': CleanCommand},
9377
python_requires='>=3.7',
9478
install_requires=install_requires,
9579
tests_require=tests_require,

0 commit comments

Comments
 (0)