-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
71 lines (63 loc) · 2.1 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
import re
import setuptools
with open('discord/ext/levenshtein/__init__.py') as f:
VERSION_MATCH = re.search(
r'VersionInfo\(major=(\d+)?,\s*?minor=(\d+)?,\s*?micro=(\d+)?, .*',
f.read(),
re.MULTILINE
)
if not VERSION_MATCH:
raise RuntimeError('VersionInfo not found')
VERSION = '.'.join([VERSION_MATCH.group(i) for i in range(1, 4)])
with open('README.rst') as f:
LONG_DESCRIPTION = f.read()
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Python Modules'
]
REQUIRES = [
'discord.py',
'python-Levenshtein',
]
EXTRA_REQUIRES = {
'docs': [
'sphinx',
'sphinxcontrib_trio',
'sphinxcontrib-websupport',
'sphinx-rtd-theme',
],
}
PROJECT_URLS = {
'Documentation': 'https://discord-ext-levenshtein.readthedocs.io/en/latest/',
'Source': 'https://github.com/shirataki2/discord-ext-levenshtein',
'Tracker': 'https://github.com/Shirataki2/discord-ext-levenshtein/issues',
}
setuptools.setup(
name='discord-ext-levenshtein',
author='Shirataki2',
author_email='[email protected]',
classifiers=CLASSIFIERS,
description='A discord.py extension for command name suggestion',
long_description=LONG_DESCRIPTION,
long_description_content_type='text/x-rst',
extras_require=EXTRA_REQUIRES,
install_requires=REQUIRES,
license='MIT',
packages=['discord.ext.levenshtein'],
project_urls=PROJECT_URLS,
python_requires='>=3.6.0',
url='https://github.com/shirataki2/discord-ext-levenshtein',
version=VERSION,
)