Skip to content

Commit 230a623

Browse files
committed
Remove PyTest class from setup.py
1 parent 3b78622 commit 230a623

File tree

2 files changed

+7
-23
lines changed

2 files changed

+7
-23
lines changed

CONTRIBUTING.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ The generated files will be available in the directory ``build/sphinx/html/``.
4343
.. _Sphinx: http://sphinx-doc.org/
4444

4545
There are no proper tests (yet?), but the code examples from the README file
46-
can be verified by::
46+
can be verified with pytest_.
47+
If you haven't installed it already, you can install it with::
4748

48-
python3 setup.py test
49+
python3 -m pip install pytest ---user
4950

50-
This uses py.test_; if you haven't installed it already, it will be downloaded
51-
and installed for you.
51+
As soon as pytest_ is installed, you can run the (rudimentary) tests with::
5252

53-
.. _py.test: http://pytest.org/
53+
python3 -m pytest
54+
55+
.. _pytest: https://pytest.org/

setup.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
1-
import sys
21
from setuptools import setup
3-
from setuptools.command.test import test as TestCommand
4-
5-
6-
class PyTest(TestCommand):
7-
8-
def finalize_options(self):
9-
TestCommand.finalize_options(self)
10-
self.test_args = []
11-
self.test_suite = True
12-
13-
def run_tests(self):
14-
# import here, cause outside the eggs aren't loaded
15-
import pytest
16-
errno = pytest.main(self.test_args)
17-
sys.exit(errno)
182

193
__version__ = 'unknown'
204

@@ -49,7 +33,5 @@ def run_tests(self):
4933
'Programming Language :: Python :: 3',
5034
'Topic :: Multimedia :: Sound/Audio',
5135
],
52-
tests_require=['pytest'],
53-
cmdclass={'test': PyTest},
5436
zip_safe=True,
5537
)

0 commit comments

Comments
 (0)