From f357b2f087bb7df5109bb1bf659d090186c2c635 Mon Sep 17 00:00:00 2001 From: Adam Groszer Date: Mon, 29 Jul 2024 11:46:37 +0200 Subject: [PATCH] remove TestCommand to fix compatibility with setuptools 72 Removed the import and the seemingly unused class PyTest. Looks like GH actions just use `exec pytest`. see https://github.com/pypa/setuptools/issues/4519 --- setup.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/setup.py b/setup.py index 421dc630..80d9331c 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,6 @@ import sys from setuptools import find_packages, setup -from setuptools.command.test import test as TestCommand long_description = open("README.rst").read() here = os.path.abspath(os.path.dirname(__file__)) @@ -28,20 +27,6 @@ def find_version(*file_paths): raise RuntimeError("Unable to find version string.") -class PyTest(TestCommand): - def finalize_options(self): - TestCommand.finalize_options(self) - self.test_args = [] - self.test_suite = True - - def run_tests(self): - # import here, cause outside the eggs aren't loaded - import pytest - - errno = pytest.main(self.test_args) - sys.exit(errno) - - install_requires = [ "PyYAML", "wrapt",