diff options
| author | Rapptz <[email protected]> | 2016-01-10 00:39:48 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-01-10 00:39:48 -0500 |
| commit | c6b31c9663c60d72b64a0e3eab984d48681004a0 (patch) | |
| tree | f2b8d0dad7b878b8ae1ea48cc4d01e708f7263ee /setup.py | |
| parent | Add a Whats New page to have a nicer changelog. (diff) | |
| download | discord.py-c6b31c9663c60d72b64a0e3eab984d48681004a0.tar.xz discord.py-c6b31c9663c60d72b64a0e3eab984d48681004a0.zip | |
Attempt to satisfy RTD by using sphinxcontrib.napoleon.
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,10 +1,15 @@ from setuptools import setup, find_packages -import re +import re, os + +on_rtd = os.getenv('READTHEDOCS') == 'True' requirements = [] with open('requirements.txt') as f: requirements = f.read().splitlines() +if on_rtd: + requirements.append('sphinxcontrib-napoleon') + version = '' with open('discord/__init__.py') as f: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1) |