Fix docs building (#3263)

This commit is contained in:
Michael H 2020-01-03 19:13:14 -05:00 committed by GitHub
parent 743ce71c5c
commit 1d2dd19244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -29,7 +29,7 @@ INTRO = "==========================\nRed Discord Bot - Launcher\n===============
IS_WINDOWS = os.name == "nt" IS_WINDOWS = os.name == "nt"
IS_MAC = sys.platform == "darwin" IS_MAC = sys.platform == "darwin"
PYTHON_OK = sys.version_info >= MIN_PYTHON_VERSION PYTHON_OK = sys.version_info >= MIN_PYTHON_VERSION or os.getenv("READTHEDOCS", False)
def is_venv(): def is_venv():

View File

@ -1,4 +1,8 @@
from setuptools import setup from setuptools import setup
import os
if os.getenv("READTHEDOCS", False):
setup(python_requires=">=3.7")
else:
# Metadata and options defined in setup.cfg # Metadata and options defined in setup.cfg
setup() setup()