-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (39 loc) · 1.33 KB
/
setup.py
File metadata and controls
46 lines (39 loc) · 1.33 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
import re
from setuptools import setup
with open("discode/__init__.py") as file:
version = re.search(
r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', file.read(), re.MULTILINE
).group(1)
with open("README.md") as readme:
readme = readme.read()
with open("requirements.txt") as req:
requirements = req.read().splitlines()
packages = ("discode", "discode.models", "discode.dataclasses", "discode.app")
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: OS Independent",
"Topic :: Internet",
"Topic :: Utilities",
]
setup(
name="Discode.py",
author="UnrealFar",
maintainer=", ".join(("UnrealFar",)),
url="https://github.com/UnrealFar/discode",
version=version,
packages=packages,
license="MIT",
description="Asynchronous Python API wrapper for the Discord API.",
long_description=readme,
long_description_content_type="text/markdown",
include_package_data=True,
install_requires=requirements,
extras_require={"docs": ["sphinx", "furo"]},
python_requires=">=3.7.0",
classifiers=classifiers,
keywords="Discode, discode, Discord, discord, Discode.py",
)