From fab082eff5744d3632cad6a39fb126db6d1d5c35 Mon Sep 17 00:00:00 2001 From: connortann <71127464+connortann@users.noreply.github.com> Date: Mon, 29 Jul 2024 11:10:18 +0100 Subject: [PATCH 1/2] Update setup.py: remove use of deprecated setuptools.command.test --- setup.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/setup.py b/setup.py index 421dc63..80d9331 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,6 @@ import re 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", From 9c8b6791369d7e399ffd8940afc71a4841562e4c Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Mon, 29 Jul 2024 17:27:19 +0100 Subject: [PATCH 2/2] remove unused sys import from setup.py --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index 80d9331..5b7a4c0 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,6 @@ import codecs import os import re -import sys from setuptools import find_packages, setup