This repository was archived by the owner on Jun 10, 2022. It is now read-only.
forked from ankushKun/DiscordDatabase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
52 lines (44 loc) · 1.42 KB
/
setup.py
File metadata and controls
52 lines (44 loc) · 1.42 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
# Always prefer setuptools over distutils
# To use a consistent encoding
import re
from codecs import open
from os import path
from setuptools import setup
version = ''
with open('DiscordDatabase/__init__.py') as f:
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('version is not set')
# The directory containing this file
HERE = path.abspath(path.dirname(__file__))
packages = [
"DiscordDatabase",
]
# Get the long description from the README file
with open(path.join(HERE, "README.md"), encoding="utf-8") as f:
long_description = f.read()
# This call to setup() does all the work
setup(
name="DiscordDatabase",
version=version,
description="CRUD database for discord bots, using discord text channels to store data",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ankushKun/DiscordDatabase",
author="Ankush Singh",
author_email="ankush4singh@gmail.com",
license="MIT",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
extras_require = {
'speed': ["orjson"]
},
include_package_data=True,
package_data={"fluxpoint": ["py.typed"]},
packages=packages
)