diff --git a/setup.py b/setup.py index dace15c53..50de0cc59 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,6 @@ import sys import setuptools -import setuptools.command.test try: from setuptools import setup @@ -80,18 +79,6 @@ def extras(*p): return reqs('extras', *p) -class pytest(setuptools.command.test.test): - user_options = [('pytest-args=', 'a', 'Arguments to pass to py.test')] - - def initialize_options(self): - super().initialize_options() - self.pytest_args = [] - - def run_tests(self): - import pytest - sys.exit(pytest.main(self.pytest_args)) - - def readme(): with open('README.rst') as f: return f.read() @@ -111,7 +98,6 @@ def readme(): }, platforms=['any'], license='BSD-3-Clause', - cmdclass={'test': pytest}, python_requires=">=3.7", install_requires=reqs('default.txt'), tests_require=reqs('test.txt'),