-
-
Notifications
You must be signed in to change notification settings - Fork 163
/
setup.py
executable file
·88 lines (76 loc) · 2.06 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env python3
"""Setup ytmdl."""
import setuptools
from os import path
from warnings import warn
with open("README.md", "r") as fh:
long_description = fh.read()
exec(open("ytmdl/__version__.py").read())
req_pkgs = [
'yt-dlp>=2024.4.9',
'mutagen',
'itunespy',
'requests',
'colorama',
'beautifulsoup4',
'downloader-cli>=0.3.4',
'pyxdg',
'ffmpeg-python',
'pysocks',
'unidecode',
'youtube-search-python',
'pyDes',
'urllib3',
'simber==0.2.6',
'rich',
'musicbrainzngs',
'ytmusicapi',
'spotipy'
]
extra_features = {
'noise-clean': ['inaSpeechSegmenter', 'tensorflow']
}
# Add the distributable files
file_map = [
('/etc/bash_completion.d', 'ytmdl.bash'),
('/usr/share/zsh/functions/Completion/Unix', 'ytmdl.zsh')
]
data_files = []
for dirname, filename in file_map:
if not path.exists(filename):
warn("%s does not exist, skipping." % filename)
else:
data_files.append((dirname, [filename]))
params = {
'data_files': data_files,
}
if __name__ == '__main__':
setuptools.setup(
name="ytmdl",
version=__version__,
author="Deepjyoti Barman",
author_email="deep.barma30@gmail.com",
description="Youtube Music Downloader",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/deepjyoti30/ytmdl",
packages=setuptools.find_packages(),
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Topic :: Multimedia :: Sound/Audio",
),
python_requires=">=3.6.2",
install_requires=req_pkgs,
setup_requires=req_pkgs,
extras_require=extra_features,
entry_points={
'console_scripts': [
"ytmdl = ytmdl:entry"
]
},
**params
)