forked from Mihitoko/discord.py-Console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
29 lines (26 loc) · 915 Bytes
/
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
from setuptools import setup
import re
version = ""
with open("gpyConsole/__init__.py") as initpy:
regex = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', initpy.read(), re.MULTILINE
)
assert regex != None
version = regex.group(1)
if not version:
raise RuntimeError("Version is not set.")
setup(
name="gpy-console",
version=version,
description="Execute your bot's commands from the console!",
long_description=open("README.md", encoding="utf8").read(),
url="https://github.com/EcoNuker/guilded.py-console",
long_description_content_type="text/markdown",
author="YumYummity",
license="MIT",
classifiers=["Programming Language :: Python :: 3.7"],
packages=["gpyConsole"],
install_requires=["google-re2", "typing", "aioconsole"],
include_package_data=True,
extras_require={"gil.py": ["gil.py"], "guilded.py": ["guilded.py"]},
)