forked from Sixline/VortexDM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
65 lines (58 loc) · 2.32 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
"""
Vortex Download Manager (VortexDM)
A multi-connection internet download manager, based on "PycURL" and "youtube_dl". Original project, FireDM, by Mahmoud Elshahat.
:copyright: (c) 2023 by Sixline
:copyright: (c) 2019-2021 by Mahmoud Elshahat.
:license: GNU GPLv3, see LICENSE.md for more details.
"""
import os
import setuptools
# get current directory
path = os.path.realpath(os.path.abspath(__file__))
current_directory = os.path.dirname(path)
# get version
version = {}
with open(f"{current_directory}/vortexdm/version.py") as f:
exec(f.read(), version) # then we can use it as: version['__version__']
# get long description from readme
with open(f"{current_directory}/README.md", "r") as fh:
long_description = fh.read()
try:
with open(f"{current_directory}/requirements.txt", "r") as fh:
requirements = fh.readlines()
except:
requirements = ['plyer', 'certifi', 'youtube_dl', 'yt_dlp', 'pycurl', 'pillow >= 6.0.0', 'pystray',
'awesometkinter >= 2021.3.19']
setuptools.setup(
name="vortexdm",
version=version['__version__'],
scripts=[], # ['VortexDM.py'], no need since added an entry_points
author="Mahmoud Elshahat",
maintainer="Sixline",
description="Vortex Download Manager",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Sixline/VortexDM ",
packages=setuptools.find_packages(),
keywords="vortexdm vdm firedm internet download manager youtube hls pycurl curl youtube-dl tkinter",
project_urls={
'Source': 'https://github.com/Sixline/VortexDM',
'Tracker': 'https://github.com/Sixline/VortexDM/issues',
'Releases': 'https://github.com/Sixline/VortexDM/releases',
},
install_requires=requirements,
entry_points={
# our executable: "exe file on windows for example"
'console_scripts': [
'vortexdm = vortexdm.VortexDM:main',
]},
classifiers=[
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
],
python_requires='>=3.8',
)