forked from arynyklas/telegram_bot_logger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (51 loc) · 1.45 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
import pathlib
import re
import sys
from setuptools import find_packages, setup
WORK_DIR = pathlib.Path(__file__).parent
MINIMAL_PY_VERSION = (3, 7)
if sys.version_info < MINIMAL_PY_VERSION:
raise RuntimeError(
"telegram_bot_logger works only with Python {}+".format(
".".join(
map(str, MINIMAL_PY_VERSION)
)
)
)
def get_version():
return re.findall(
pattern = r"^__version__ = \"([^']+)\"\r?$",
string = (WORK_DIR / "telegram_bot_logger" / "__init__.py").read_text("utf-8"),
flags = re.M
)[0]
setup(
name = "telegram_bot_logger",
version = get_version(),
packages = find_packages(
exclude = [
"examples.*"
]
),
url = "https://github.com/arynyklas/telegram_bot_logger",
author = "Aryn Yklas",
python_requires = ">=3.7",
author_email = "[email protected]",
description = "It is a library that allows you to send logging logs to Telegram",
long_description = (WORK_DIR / "README.md").read_text("utf-8"),
long_description_content_type = "text/markdown",
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7"
],
install_requires = [
"httpx"
],
include_package_data = False,
keywords = [
"telegram",
"logger",
"logging",
"telegram_logger"
]
)