-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
41 lines (38 loc) · 1.71 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from setuptools import setup, find_packages
from Cython.Build import cythonize
import os
import zhlyr
with open('README.md', 'r') as file:
long_description = file.read()
# تحديد الدليل الذي يجب البحث فيه للملفات .pyx و .c و .so
base_dir = os.path.dirname(os.path.abspath(__file__))
pyx_files = [os.path.join(root, file) for root, dirs, files in os.walk(base_dir) for file in files if file.endswith('.pyx')]
# pyc_files = [os.path.join(root, file) for root, dirs, files in os.walk(base_dir) for file in files if file.endswith('.c')]
# pyso_files = [os.path.join(root, file) for root, dirs, files in os.walk(base_dir) for file in files if file.endswith('.so')]
setup(
name='zhlyr',
version='5.0',
packages=find_packages(),
install_requires=['requests', 'shazamio', 'shazam', 'cython'],
ext_modules=cythonize(pyx_files),
long_description=long_description,
long_description_content_type='text/markdown',
description='Python library for music handling',
author='Mtsky',
author_email='[email protected]',
url='https://gaoc3.github.io/zhlyr/',
license='MIT',
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3",
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
],
keywords=['lyrics', 'music', 'shazam', 'serialize', 'serializer', 'recognize'],
python_requires=">=3.9"
# package_data={'zhlyr': pyso_files + pyc_files}
)