forked from HuyaneMatsu/hata
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
137 lines (127 loc) · 4.21 KB
/
Copy pathsetup.py
File metadata and controls
137 lines (127 loc) · 4.21 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
import pathlib, re
from ast import literal_eval
from setuptools import setup
HERE = pathlib.Path(__file__).parent
# Lookup version
version_search_pattern = re.compile('^__version__[ ]*=[ ]*((?:\'[^\']+\')|(?:\"[^\"]+\"))[ ]*$', re.M)
parsed = version_search_pattern.search((HERE / 'hata' / '__init__.py').read_text())
if parsed is None:
raise RuntimeError('No version found in `__init__.py`.')
version = literal_eval(parsed.group(1))
# Lookup readme
README = (HERE / 'README.md').read_text('utf-8')
setup(
name = 'hata',
version = version,
packages = [
'hata',
'hata.backend',
'hata.discord',
'hata.discord.activity',
'hata.discord.application',
'hata.discord.bases',
'hata.discord.bin',
'hata.discord.channel',
'hata.discord.channel.metadata',
'hata.discord.client',
'hata.discord.embed',
'hata.discord.emoji',
'hata.discord.events',
'hata.discord.exceptions',
'hata.discord.gateway',
'hata.discord.guild',
'hata.discord.guild.audit_logs',
'hata.discord.guild.audit_logs.change_converters',
'hata.discord.http',
'hata.discord.integration',
'hata.discord.interaction',
'hata.discord.interaction.application_command',
'hata.discord.interaction.components',
'hata.discord.interaction.event_types',
'hata.discord.invite',
'hata.discord.localizations',
'hata.discord.message',
'hata.discord.oauth2',
'hata.discord.permission',
'hata.discord.role',
'hata.discord.scheduled_event',
'hata.discord.stage',
'hata.discord.sticker',
'hata.discord.user',
'hata.discord.voice',
'hata.discord.webhook',
'hata.ext',
'hata.ext.asyncio',
'hata.ext.command_utils',
'hata.ext.commands_v2',
'hata.ext.commands_v2.helps',
'hata.ext.extension_loader',
'hata.ext.extension_loader.import_overwrite',
'hata.ext.extension_loader.snapshot',
'hata.ext.extension_loader.utils',
'hata.ext.kokoro_sqlalchemy',
'hata.ext.patchouli',
'hata.ext.prettyprint',
'hata.ext.slash',
'hata.ext.slash.menus',
'hata.ext.solarlink',
'hata.ext.top_gg',
'hata.main',
'hata.main.commands',
'hata.main.commands.default',
'hata.utils',
],
url = 'https://github.com/HuyaneMatsu/hata',
license = 'BSD',
author = 'HuyaneMatsu',
author_email = 're.ism.tm@gmail.com',
description = 'A powerful asynchronous library for creating Discord bots in Python.',
long_description = README,
long_description_content_type = 'text/markdown',
classifiers = [
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
#'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Communications :: Chat',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
],
include_package_data = True,
package_data = {
'hata.discord.bin' : [
'libopus-0.x64.dll',
'libopus-0.x86.dll',
],
},
python_requires = '>=3.6',
install_requires = [
'scarletio',
'chardet>=2.0',
],
extras_require = {
'voice' : [
'PyNaCl>=1.3.0',
],
'relativedelta' : [
'python-dateutil>=2.0',
],
'cpythonspeedups': [
'cchardet>=2.0',
],
},
entry_points = {
'console_scripts': [
'hata = hata.__main__:__main__'
]
},
)