From 489cb84f95e8d6d839d00350647177a015c85f9b Mon Sep 17 00:00:00 2001 From: Darren Curtis Date: Thu, 16 Sep 2021 21:44:34 +0000 Subject: [PATCH] noci Update Sphinx documentation build --- setup.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ade232d..a9192d6 100644 --- a/setup.py +++ b/setup.py @@ -9,6 +9,12 @@ from setuptools import find_packages, setup with open("apbs/_version.py") as fobj: exec(fobj.read()) +# NOTE: The reason for version 3.7 vs. 3.8 is that ReadTheDocs +# is running version 3.7 so setting this to 3.8 causes +# the documentation build to fail. +if version_info[:2] < (3, 7): + raise RuntimeError("Python version >= 3.7 is required.") + with open("README.md", "r") as fobj: LONG_DESCRIPTION = fobj.read() @@ -17,7 +23,7 @@ setup( version=__version__, # noqa: F821 description="APBS biomolecular solvation software", long_description=LONG_DESCRIPTION, - python_requires=">=3.8", + python_requires=">=3.7", author="Nathan Baker", author_email="nathanandrewbaker@gmail.com", url="https://www.poissonboltzmann.org",