Skip to content

Commit 4d196ce

Browse files
committed
Add python version requirements to setup.py
This is need in the future so we can gracefully remove python 2.7 support. See #1075.
1 parent 114fb85 commit 4d196ce

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

docs/installing.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ Symlink or subtree the ``sphinx_rtd_theme/sphinx_rtd_theme`` repository into you
4949
Compatibility
5050
=============
5151

52+
Python
53+
------
54+
55+
``sphinx_rtd_theme`` requires Python 2.7 or Python 3.4 or greater.
56+
57+
Sphinx
58+
------
59+
5260
``sphinx_rtd_theme`` depends on at least Sphinx 1.6 although,
5361
we recommend at least Sphinx 2 to take advantage of the html5 writer.
5462
The html4 writer is still supported however,

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def run(self):
106106
'theme.conf',
107107
'*.html',
108108
'static/css/*.css',
109-
'static/css/fonts/*.*'
109+
'static/css/fonts/*.*',
110110
'static/js/*.js',
111111
]},
112112
include_package_data=True,
@@ -116,8 +116,9 @@ def run(self):
116116
'sphinx_rtd_theme = sphinx_rtd_theme',
117117
]
118118
},
119+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
119120
install_requires=[
120-
'sphinx>=1.6'
121+
'sphinx>=1.6',
121122
],
122123
tests_require=[
123124
'pytest',

0 commit comments

Comments
 (0)