aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorToby Harradine <[email protected]>2018-08-13 17:49:40 +1000
committerRapptz <[email protected]>2018-08-22 21:57:27 -0400
commitdace5aeaeecc10f6c1bba9eda9f40eeb55b095a4 (patch)
treec17e08785a99ff59edd7455318054c5bad478587 /setup.py
parentBot.unload_extension: don't remove commands from no module (diff)
downloaddiscord.py-dace5aeaeecc10f6c1bba9eda9f40eeb55b095a4.tar.xz
discord.py-dace5aeaeecc10f6c1bba9eda9f40eeb55b095a4.zip
Move conditional RTD dependencies to 'docs' extra
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/setup.py b/setup.py
index 72e3b5f1..5a9c4cd4 100644
--- a/setup.py
+++ b/setup.py
@@ -1,18 +1,10 @@
from setuptools import setup, find_packages
-import re, os
-
-on_rtd = os.getenv('READTHEDOCS') == 'True'
+import re
requirements = []
with open('requirements.txt') as f:
requirements = f.read().splitlines()
-if on_rtd:
- requirements.append('sphinx==1.7.4')
- requirements.append('sphinxcontrib-napoleon')
- requirements.append('sphinxcontrib-asyncio')
- requirements.append('sphinxcontrib-websupport')
-
version = ''
with open('discord/__init__.py') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
@@ -43,7 +35,11 @@ with open('README.rst') as f:
extras_require = {
'voice': ['PyNaCl==1.1.2'],
- 'docs': ['sphinxcontrib-asyncio']
+ 'docs': [
+ 'sphinx==1.7.4',
+ 'sphinxcontrib-asyncio',
+ 'sphinxcontrib-websupport',
+ ]
}
setup(name='discord.py',