|
1 |
| -from setuptools import Extension, find_packages, setup |
| 1 | +"""ARver C extension definition.""" |
2 | 2 |
|
3 |
| -from arver import APPNAME, URL, VERSION |
| 3 | +from setuptools import Extension, setup |
4 | 4 |
|
5 |
| -with open('README.md', encoding='utf-8') as f: |
6 |
| - readme = f.read() |
7 |
| - |
8 |
| -setup(name=APPNAME, |
9 |
| - version=VERSION, |
10 |
| - description='Application for verifying ripped audio files using AccurateRip database.', |
11 |
| - long_description=readme, |
12 |
| - long_description_content_type="text/markdown", |
13 |
| - author='arcctgx', |
14 |
| - |
15 |
| - url=URL, |
16 |
| - license='GPLv3', |
17 |
| - classifiers=[ |
18 |
| - 'Development Status :: 5 - Production/Stable', 'Environment :: Console', |
19 |
| - 'Intended Audience :: End Users/Desktop', |
20 |
| - 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', |
21 |
| - 'Natural Language :: English', 'Operating System :: POSIX :: Linux', |
22 |
| - 'Programming Language :: C', 'Programming Language :: Python :: 3 :: Only', |
23 |
| - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', |
24 |
| - 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', |
25 |
| - 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', |
26 |
| - 'Topic :: Multimedia :: Sound/Audio :: Analysis', |
27 |
| - 'Topic :: Multimedia :: Sound/Audio :: CD Audio :: CD Ripping' |
28 |
| - ], |
29 |
| - python_requires='>=3.7', |
30 |
| - packages=find_packages(), |
31 |
| - entry_points={ |
32 |
| - 'console_scripts': [ |
33 |
| - 'arver = arver.arver_main:main', 'arver-discinfo = arver.arver_discinfo:main', |
34 |
| - 'arver-ripinfo = arver.arver_ripinfo:main', |
35 |
| - 'arver-bin-parser = arver.arver_bin_parser:main' |
36 |
| - ] |
37 |
| - }, |
38 |
| - ext_modules=[ |
39 |
| - Extension('arver.audio._audio', |
40 |
| - sources=['arver/audio/_audio.c'], |
41 |
| - libraries=['sndfile', 'z'], |
42 |
| - extra_compile_args=['-std=c99', '-O3', '-D_DEFAULT_SOURCE'], |
43 |
| - define_macros=[('Py_LIMITED_API', '0x03070000')], |
44 |
| - py_limited_api=True) |
45 |
| - ], |
46 |
| - options={'bdist_wheel': { |
47 |
| - 'py_limited_api': 'cp37' |
48 |
| - }}, |
49 |
| - install_requires=['discid', 'musicbrainzngs', 'pycdio', 'requests']) |
| 5 | +setup( |
| 6 | + ext_modules=[ |
| 7 | + Extension('arver.audio._audio', |
| 8 | + sources=['arver/audio/_audio.c'], |
| 9 | + libraries=['sndfile', 'z'], |
| 10 | + extra_compile_args=['-std=c99', '-O3', '-D_DEFAULT_SOURCE'], |
| 11 | + define_macros=[('Py_LIMITED_API', '0x03070000')], |
| 12 | + py_limited_api=True), |
| 13 | + ], |
| 14 | + options={ |
| 15 | + 'bdist_wheel': { |
| 16 | + 'py_limited_api': 'cp37' |
| 17 | + }, |
| 18 | + }, |
| 19 | +) |
0 commit comments