From 4d196ce1346f6efb4e0d6ba163c8f3fb53271625 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Wed, 17 Mar 2021 18:29:02 -0400 Subject: [PATCH] Add python version requirements to setup.py This is need in the future so we can gracefully remove python 2.7 support. See #1075. --- docs/installing.rst | 8 ++++++++ setup.py | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/installing.rst b/docs/installing.rst index 759e73a9c..61aaac1ed 100644 --- a/docs/installing.rst +++ b/docs/installing.rst @@ -49,6 +49,14 @@ Symlink or subtree the ``sphinx_rtd_theme/sphinx_rtd_theme`` repository into you Compatibility ============= +Python +------ + +``sphinx_rtd_theme`` requires Python 2.7 or Python 3.4 or greater. + +Sphinx +------ + ``sphinx_rtd_theme`` depends on at least Sphinx 1.6 although, we recommend at least Sphinx 2 to take advantage of the html5 writer. The html4 writer is still supported however, diff --git a/setup.py b/setup.py index 362c81398..178b8ae40 100644 --- a/setup.py +++ b/setup.py @@ -106,7 +106,7 @@ def run(self): 'theme.conf', '*.html', 'static/css/*.css', - 'static/css/fonts/*.*' + 'static/css/fonts/*.*', 'static/js/*.js', ]}, include_package_data=True, @@ -116,8 +116,9 @@ def run(self): 'sphinx_rtd_theme = sphinx_rtd_theme', ] }, + python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*', install_requires=[ - 'sphinx>=1.6' + 'sphinx>=1.6', ], tests_require=[ 'pytest',