-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
37 lines (31 loc) · 1.2 KB
/
Copy pathsetup.py
File metadata and controls
37 lines (31 loc) · 1.2 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
# xamarth
import setuptools, re
with open("telethonpatch/__init__.py", "rt", encoding="utf8") as file:
content = file.read()
version = re.search(r'__version__ = "(.*?)"', content)[1]
author = re.search(r'__author__ = "(.*?)"', content)[1]
with open("README.md", "r", encoding="utf-8") as readme:
long_description = readme.read()
setuptools.setup(
name="telethon-patch",
version=version,
long_description=long_description,
long_description_content_type="text/markdown",
license="GNUV3",
author=author,
author_email="New-dev0@outlook.com",
url="https://github.com/New-dev0/Telethon-Patch",
packages=setuptools.find_packages(),
install_requires=["telethon"],
keywords=["telethon", "telethon-patch", "telegram", "mtproto"],
ext_package=["scripts", "data", "examples"],
classifiers=[
"Programming Language :: Python :: 3",
"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 (GPLv3)",
"Operating System :: OS Independent",
],
)