forked from vitiko98/qobuz-dl
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathsetup.py
More file actions
70 lines (63 loc) · 2.1 KB
/
Copy pathsetup.py
File metadata and controls
70 lines (63 loc) · 2.1 KB
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
import os
from setuptools import setup, find_packages
# 1. NEW PACKAGE NAME (Must be unique on PyPI)
pkg_name = "qobuz-dl-ultimate"
def get_version():
init_path = os.path.join(os.path.dirname(__file__), "qobuz_dl", "__init__.py")
try:
with open(init_path, "r", encoding="utf-8") as f:
for line in f:
if line.startswith("__version__"):
return line.split('"')[1]
except Exception:
pass
return "2.4.7"
def read_file(fname):
# Added encoding="utf-8" to prevent build errors with emojis in README
with open(fname, "r", encoding="utf-8") as f:
return f.read()
requirements = [
"pathvalidate",
"requests",
"mutagen",
"tqdm",
"pick==1.6.0",
"beautifulsoup4",
"colorama",
# NOTE: cryptography was used in the original downloader, keeping it for safety
"cryptography",
"keyring",
]
setup(
name=pkg_name,
# 2. VERSION READ AUTOMATICALLY FROM __init__.py
version=get_version(),
# 3. AUTHOR INFO
author="Riccardo (Sei969)",
author_email="Sei969@users.noreply.github.com",
description="The Ultimate Lossless and Hi-Res music downloader for Qobuz with ReplayGain and Classical metadata",
long_description=read_file("README.md"),
long_description_content_type="text/markdown",
# 4. LINK TO YOUR FORK
url="https://github.com/Sei969/qobuz-dl",
project_urls={
"Documentation": "https://github.com/Sei969/qobuz-dl/wiki",
"Source Code": "https://github.com/Sei969/qobuz-dl",
"Bug Tracker": "https://github.com/Sei969/qobuz-dl/issues",
},
install_requires=requirements,
entry_points={
"console_scripts": [
# Keeping the original command names for backward compatibility
"qobuz-dl = qobuz_dl:main",
"qdl = qobuz_dl:main",
],
},
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
)