From c7b3c087b9182681bf33243e93f87c30575d5e9e Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 24 Dec 2019 15:07:45 -0600 Subject: [PATCH] Remove outdated setup.py test invocation for pytest See also: - http://doc.pytest.org/en/5.3.2/changelog.html#pytest-3-6-2-2018-06-20 - https://github.com/pytest-dev/pytest/pull/3552 --- setup.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/setup.py b/setup.py index 78aee8612..0bd9633f3 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,6 @@ import sys from setuptools import setup -from setuptools.command.test import test as TestCommand about = {} with open("libtmux/__about__.py") as fp: @@ -26,20 +25,6 @@ history = open('CHANGES').read().replace('.. :changelog:', '') -class PyTest(TestCommand): - user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] - - def initialize_options(self): - TestCommand.initialize_options(self) - self.pytest_args = [] - - def run_tests(self): - import pytest - - errno = pytest.main(self.pytest_args) - sys.exit(errno) - - setup( name=about['__title__'], version=about['__version__'], @@ -58,7 +43,6 @@ def run_tests(self): packages=['libtmux'], include_package_data=True, tests_require=tests_reqs, - cmdclass={'test': PyTest}, zip_safe=False, keywords=about['__title__'], classifiers=[