[V3 Docs] Really fix it this time (#1444)

This commit is contained in:
Will 2018-03-20 21:08:01 -04:00 committed by GitHub
parent bed56e8891
commit c107d5fa7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ from setuptools import find_packages
IS_TRAVIS = 'TRAVIS' in os.environ IS_TRAVIS = 'TRAVIS' in os.environ
IS_DEPLOYING = 'DEPLOYING' in os.environ IS_DEPLOYING = 'DEPLOYING' in os.environ
IS_RTD = 'READTHEDOCS' in os.environ
dep_links = ['https://github.com/Rapptz/discord.py/tarball/rewrite#egg=discord.py-1.0'] dep_links = ['https://github.com/Rapptz/discord.py/tarball/rewrite#egg=discord.py-1.0']
if IS_TRAVIS: if IS_TRAVIS:
@ -28,8 +29,8 @@ def get_requirements():
except ValueError: except ValueError:
pass pass
if IS_DEPLOYING or not IS_TRAVIS: if IS_DEPLOYING or not (IS_TRAVIS or IS_RTD):
requirements.append('discord.py>=1.0.0a0') # Because RTD requirements.append('discord.py>=1.0.0a0')
if sys.platform.startswith("linux"): if sys.platform.startswith("linux"):
requirements.append("distro") requirements.append("distro")
return requirements return requirements