forked from firedm/FireDM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (58 loc) · 2.27 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
"""
FireDM
multi-connections internet download manager, based on "LibCurl", and "youtube_dl".
:copyright: (c) 2019-2021 by Mahmoud Elshahat.
:license: GNU LGPLv3, see LICENSE 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}/firedm/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="FireDM",
version=version['__version__'],
scripts=[], # ['FireDM.py'], no need since added an entry_points
author="Mahmoud Elshahat",
author_email="[email protected]",
description="download manager",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/firedm/FireDM ",
packages=setuptools.find_packages(),
keywords="internet download manager youtube hls pycurl curl youtube-dl tkinter",
project_urls={
'Source': 'https://github.com/firedm/FireDM',
'Tracker': 'https://github.com/firedm/FireDM/issues',
'Releases': 'https://github.com/firedm/FireDM/releases',
'Screenshots': 'https://github.com/firedm/FireDM/issues/13#issuecomment-689337428'
},
install_requires=requirements,
entry_points={
# our executable: "exe file on windows for example"
'console_scripts': [
'firedm = firedm.FireDM:main',
]},
classifiers=[
"Programming Language :: Python :: 3",
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
)