-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
61 lines (47 loc) · 1.36 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
"""
DiscordDB
---------
A simple database which uses a Discord channel to store data.
"""
import re
import os
from setuptools import setup, find_packages
def __get_version():
with open("discordDB/__init__.py") as package_init_file:
return re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', package_init_file.read(), re.MULTILINE).group(1)
requirements = [
"python-discord",
]
if os.getenv('READTHEDOCS') == 'True':
requirements += [
'sphinxcontrib-napoleon',
]
extra_requirements = {
'docs': [
'sphinx'
]
}
setup(
name='DiscordDB',
author='□ | The Cosmos',
url='https://github.com/thec0sm0s/DiscordDB',
version=__get_version(),
packages=find_packages(),
license='MIT',
description='A simple database which uses a Discord channel to store data.',
long_description=__doc__,
include_package_data=True,
install_requires=requirements,
extras_require=extra_requirements,
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Internet',
'Topic :: Utilities',
]
)