|
2 | 2 | import platform |
3 | 3 | from setuptools import setup |
4 | 4 |
|
5 | | -# "import" __version__ |
6 | | -__version__ = 'unknown' |
7 | | -for line in open('sounddevice.py'): |
8 | | - if line.startswith('__version__'): |
9 | | - exec(line) |
10 | | - break |
11 | | - |
12 | 5 | MACOSX_VERSIONS = '.'.join([ |
13 | 6 | 'macosx_10_6_x86_64', # for compatibility with pip < v21 |
14 | 7 | 'macosx_10_6_universal2', |
@@ -63,34 +56,10 @@ def get_tag(self): |
63 | 56 | cmdclass = {'bdist_wheel': bdist_wheel_half_pure} |
64 | 57 |
|
65 | 58 | setup( |
66 | | - name='sounddevice', |
67 | | - version=__version__, |
68 | 59 | py_modules=['sounddevice'], |
69 | 60 | packages=packages, |
70 | 61 | package_data=package_data, |
71 | 62 | zip_safe=zip_safe, |
72 | | - python_requires='>=3.7', |
73 | | - setup_requires=['CFFI>=1.0'], |
74 | | - install_requires=['CFFI>=1.0'], |
75 | | - extras_require={'NumPy': ['NumPy']}, |
76 | 63 | cffi_modules=['sounddevice_build.py:ffibuilder'], |
77 | | - author='Matthias Geier', |
78 | | - |
79 | | - description='Play and Record Sound with Python', |
80 | | - long_description=open('README.rst').read(), |
81 | | - license='MIT', |
82 | | - keywords='sound audio PortAudio play record playrec'.split(), |
83 | | - url='http://python-sounddevice.readthedocs.io/', |
84 | | - project_urls={ |
85 | | - 'Source': 'https://github.com/spatialaudio/python-sounddevice', |
86 | | - }, |
87 | | - platforms='any', |
88 | | - classifiers=[ |
89 | | - 'License :: OSI Approved :: MIT License', |
90 | | - 'Operating System :: OS Independent', |
91 | | - 'Programming Language :: Python', |
92 | | - 'Programming Language :: Python :: 3', |
93 | | - 'Topic :: Multimedia :: Sound/Audio', |
94 | | - ], |
95 | 64 | cmdclass=cmdclass, |
96 | 65 | ) |
0 commit comments