File tree Expand file tree Collapse file tree 2 files changed +7
-23
lines changed Expand file tree Collapse file tree 2 files changed +7
-23
lines changed Original file line number Diff line number Diff 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
4545There 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/
Original file line number Diff line number Diff line change 1- import sys
21from 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)
You can’t perform that action at this time.
0 commit comments