diff --git a/setup.py b/setup.py index e9881d0..9dbed4a 100644 --- a/setup.py +++ b/setup.py @@ -11,17 +11,20 @@ pwd = os.path.dirname(__file__) from setuptools.command.test import test as TestCommand + class PyTest(TestCommand): + def finalize_options(self): self.test_args = [] self.test_suite = True + def run_tests(self): import pytest sys.exit(pytest.main(['tests'])) setup( name="amodem", - version="1.1", + version="1.2", description="Audio Modem Communication Library", author="Roman Zeyde", author_email="roman.zeyde@gmail.com", @@ -29,7 +32,7 @@ setup( url="http://github.com/romanz/amodem", packages=['amodem'], tests_require=['pytest'], - cmdclass = {'test': PyTest}, + cmdclass={'test': PyTest}, install_requires=['numpy', 'bitarray', 'reedsolo'], platforms=['POSIX'], classifiers=[