Skip to content

Commit

Permalink
fix: remove test command from setup.py
Browse files Browse the repository at this point in the history
Has been deprecated for 5+ years and has been removed in recent
setuptools versions.

See pypa/setuptools#4519
  • Loading branch information
jmahlik committed Oct 9, 2024
1 parent aebe16b commit e3fc939
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import sys

from setuptools import find_packages, setup, Command
from setuptools.command.test import test as TestCommand


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


# test suites
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = []

def run_tests(self):
# import here, because outside the eggs aren't loaded
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)


# install requirements
install_requires = [
'matplotlib',
Expand Down Expand Up @@ -89,7 +73,7 @@ def run_tests(self):
include_package_data=True,
license="Apache Licence 2.0",
url="https://github.com/guillermo-navas-palencia/optbinning",
cmdclass={'clean': CleanCommand, 'test': PyTest},
cmdclass={'clean': CleanCommand},
python_requires='>=3.7',
install_requires=install_requires,
tests_require=tests_require,
Expand Down

0 comments on commit e3fc939

Please sign in to comment.