This repository has been archived by the owner on Jun 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
86 lines (78 loc) · 3.23 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
# PyStark - Python add-on extension to Pyrogram
# Copyright (C) 2021-2022 Stark Bots <https://github.com/StarkBotsIndustries>
#
# This file is part of PyStark.
#
# PyStark is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PyStark is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with PyStark. If not, see <https://www.gnu.org/licenses/>.
import os
import re
from setuptools import setup
with open("README.md", encoding="utf-8") as f:
long_description = "\n".join([x for x in f.read().split("\n") if not x.startswith('>')])
with open("requirements.txt", encoding="utf-8") as r:
install_requires = [i.strip() for i in r if not i.startswith('#')]
with open("pystark/constants.py", "r", encoding="utf-8") as f:
text = f.read()
pat = r"['\"]([^'\"]+)['\"]"
version = re.search("__version__ = "+pat, text).group(1)
# beta_version = re.search("__beta_version__ = "+pat, text).group(1)
description = re.search("__description__ = "+pat, text).group(1)
def get_packages():
return [path.replace("\\", ".").replace("/", ".") for path, _, _ in os.walk("pystark") if "__" not in path]
setup(
name='PyStark',
packages=get_packages(),
version=version,
license='GPLv3+',
description=description,
long_description=long_description,
long_description_content_type="text/markdown",
author='StarkProgrammer',
author_email='starkbotsindustries@gmail.com',
url='https://github.com/StarkBotsIndustries/PyStark',
keywords=['telegram', 'bot', 'pyrogram', 'python', 'telegram-bot'],
install_requires=install_requires,
zip_safe=False,
python_requires=">=3.9",
dependency_links=['https://github.com/pyrogram/pyrogram/tarball/master'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Natural Language :: English',
'Topic :: Communications :: Chat',
'Topic :: Education :: Testing',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules'
],
project_urls={
"Support": "https://t.me/StarkBotsChat",
"Community": "https://t.me/StarkBots",
"Updates": "https://t.me/pystark",
"Documentation": "https://pystark.codes/",
},
entry_points={
'console_scripts': [
'pystark = pystark.cli:main',
],
},
)