Skip to content

Commit b32efa5

Browse files
committed
Move requirements into setup.py
1 parent ed96c37 commit b32efa5

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

readthedocs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ formats:
2121
python:
2222
version: 3.7
2323
install:
24-
- requirements: requirements.txt
24+
- method: pip
25+
extra_requirements:
26+
- readthedocs
27+
path: .

requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

setup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,21 @@
1111
with open(path.join(HERE, PACKAGE_NAME, "const.py"), encoding="utf-8") as fp:
1212
VERSION = re.search('__version__ = "([^"]+)"', fp.read()).group(1)
1313

14+
extras = {
15+
"readthedocs": [
16+
"sphinx",
17+
"sphinx-rtd-theme"
18+
],
19+
}
20+
1421
setuptools.setup(
1522
name="discord-py-slash-command",
1623
version=VERSION,
1724
author="eunwoo1104",
1825
author_email="sions04@naver.com",
1926
description="A simple discord slash command handler for discord.py.",
27+
extras_require=extras,
28+
install_requires=["discord.py", "aiohttp"],
2029
long_description=long_description,
2130
long_description_content_type="text/markdown",
2231
url="https://github.com/eunwoo1104/discord-py-slash-command",

0 commit comments

Comments
 (0)