-
Notifications
You must be signed in to change notification settings - Fork 184
/
setup.py
70 lines (66 loc) · 2.35 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
import itertools
from pathlib import Path
import tomli
from setuptools import find_packages, setup
with open("pyproject.toml", "rb") as f:
pyproject = tomli.load(f)
extras_require = {
"voice": ["PyNaCl>=1.5.0,<1.6"],
"speedup": ["aiodns", "orjson", "Brotli", "faust-cchardet", "uvloop; sys_platform != 'win32'"],
"sentry": ["sentry-sdk"],
"jurigged": ["jurigged"],
"console": ["aioconsole>=0.6.0"],
}
extras_require["all"] = list(itertools.chain.from_iterable(extras_require.values()))
extras_require["docs"] = extras_require["all"] + [
"mkdocs-autorefs",
"mkdocs-awesome-pages-plugin",
"mkdocs-material",
"mkdocstrings-python",
"mkdocs-minify-plugin",
"mkdocs-git-committers-plugin-2",
"mkdocs-git-revision-date-localized-plugin",
"griffe==0.25",
]
extras_require["tests"] = [
"pytest",
"pytest-asyncio",
"pytest-cov",
"python-dotenv",
"typeguard",
]
extras_require["dev"] = extras_require["tests"] + extras_require["docs"] + ["pre-commit"]
setup(
name="interactions.py",
description=pyproject["tool"]["poetry"]["description"],
long_description=(Path(__file__).parent / "README.md").read_text(),
long_description_content_type="text/markdown",
author="LordOfPolls",
author_email="[email protected]",
url="https://github.com/interactions-py/interactions.py",
version=pyproject["tool"]["poetry"]["version"],
packages=find_packages(),
include_package_data=True,
python_requires=">=3.10",
install_requires=(Path(__file__).parent / "requirements.txt").read_text().splitlines(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Framework :: aiohttp",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Documentation",
"Typing :: Typed",
],
project_urls={
"Discord": "https://discord.gg/KkgMBVuEkx",
"Documentation": "https://interactions-py.github.io/interactions.py/",
},
extras_require=extras_require,
)