Skip to content

Commit e8a6e01

Browse files
committed
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 - pytest-dev/pytest#3552
1 parent c168eca commit e8a6e01

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

setup.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import sys
33

44
from setuptools import setup
5-
from setuptools.command.test import test as TestCommand
65

76
about = {}
87
with open("tmuxp/__about__.py") as fp:
@@ -22,20 +21,6 @@
2221
history = open('CHANGES').read().replace('.. :changelog:', '')
2322

2423

25-
class PyTest(TestCommand):
26-
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
27-
28-
def initialize_options(self):
29-
TestCommand.initialize_options(self)
30-
self.pytest_args = []
31-
32-
def run_tests(self):
33-
import pytest
34-
35-
errno = pytest.main(self.pytest_args)
36-
sys.exit(errno)
37-
38-
3924
setup(
4025
name=about['__title__'],
4126
version=about['__version__'],
@@ -55,7 +40,6 @@ def run_tests(self):
5540
include_package_data=True,
5641
install_requires=install_reqs,
5742
tests_require=tests_reqs,
58-
cmdclass={'test': PyTest},
5943
zip_safe=False,
6044
keywords=about['__title__'],
6145
entry_points=dict(console_scripts=['tmuxp=tmuxp:cli.cli']),

0 commit comments

Comments
 (0)