Skip to content

Commit

Permalink
remove TestCommand to fix compatibility with setuptools 72
Browse files Browse the repository at this point in the history
Removed the import and the seemingly unused class PyTest.
Looks like GH actions just use `exec pytest`.

see pypa/setuptools#4519
  • Loading branch information
agroszer authored Jul 29, 2024
1 parent ffc04f9 commit f357b2f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__))
Expand All @@ -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",
Expand Down

0 comments on commit f357b2f

Please sign in to comment.