-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
89 lines (82 loc) · 2.94 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
87
88
89
#!/usr/bin/env python3
""" eGenix Anti Spam Bot for Telegram
Package configuration file.
Written by Marc-Andre Lemburg.
Copyright (c) 2022-2024, eGenix.com Software GmbH; mailto:[email protected]
License: MIT
"""
import sys
from setuptools import setup
from telegram_antispam_bot import __version__
# Load file data
with open('README.md', encoding='utf-8') as f:
_long_description = f.read()
# Prepare meta data
class metadata:
name = 'egenix-telegram-antispam-bot'
version = __version__
description = 'eGenix Antispam Bot for Telegram'
long_description = _long_description
long_description_content_type = 'text/markdown'
license = 'MIT'
author = 'eGenix.com Software, Skills and Services GmbH'
author_email = '[email protected]'
maintainer = 'eGenix.com Software, Skills and Services GmbH'
maintainer_email = '[email protected]'
url = 'https://www.egenix.com/library/telegram-antispam-bot/'
project_urls = {
'Source': 'https://github.com/egenix/egenix-telegram-antispam-bot',
'Tracker': 'https://github.com/eGenix/egenix-telegram-antispam-bot/issues',
}
# See https://pypi.org/classifiers/ for possible values:
classifiers = [
"Environment :: Console",
"Environment :: No Input/Output (Daemon)",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
#"License :: Freely Distributable",
#"License :: Other/Proprietary License",
"Natural Language :: English",
"Operating System :: OS Independent",
#"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
#"Operating System :: MacOS",
#"Operating System :: Other OS",
"Programming Language :: C",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Communications",
"Topic :: Communications :: Chat",
"Topic :: Internet",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities ",
"Development Status :: 5 - Production/Stable",
#"Development Status :: 6 - Mature",
]
install_requires = [
'Pyrogram ~=2.0',
'TgCrypto ~=1.2',
]
python_requires = '>=3.9'
packages = [
'telegram_antispam_bot',
]
package_data = {
'telegram_antispam_bot': ['README.md', 'LICENSE'],
}
@classmethod
def _dict(cls):
return {
k:v
for (k, v) in cls.__dict__.items()
if k[0] != '_'}
# Run setup
if __name__ == '__main__':
setup(**metadata._dict())