From d348816cb1de5a139799188670fe044f4a52a1e9 Mon Sep 17 00:00:00 2001 From: f3rn0s Date: Mon, 29 Jul 2024 19:03:53 +1000 Subject: [PATCH] Remove (deprecated) python setup.py test support --- setup.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/setup.py b/setup.py index ebcdb04..9ba5f66 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,6 @@ import sys from sys import exit from setuptools import setup -from setuptools.command.test import test as TestCommand import subprocess ## CONFIG @@ -67,16 +66,6 @@ def version_info(target_version): ## PyTest # This is a plug-in for setuptools that will invoke py.test # when you run python setup.py test -class PyTest(TestCommand): - def finalize_options(self): - TestCommand.finalize_options(self) - self.test_args = [] - self.test_suite = True - - def run_tests(self): - import pytest # import here, because outside the required eggs aren't loaded yet - exit(pytest.main(self.test_args)) - version = sys.version_info isPy2 = version.major == 2 @@ -152,5 +141,4 @@ def run_tests(self): else ' < 7.1' if isPy36 else ''), ], - cmdclass={'test': PyTest} )