summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-03-12 20:07:03 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2018-03-13 08:44:22 -0700
commit78c1fde6927371b74f98895279e893ac8a4d29c2 (patch)
tree93d3938416d7c5283424d0e4536f598e73e454cf /setup.py
parent87e8dd16b277a17b235b54f038b1a47403753876 (diff)
downloadsphinx-git-78c1fde6927371b74f98895279e893ac8a4d29c2.tar.gz
Pass python_requires argument to setuptools
Helps pip decide what version of the library to install. https://packaging.python.org/tutorials/distributing-packages/#python-requires > If your project only runs on certain Python versions, setting the > python_requires argument to the appropriate PEP 440 version specifier > string will prevent pip from installing the project on other Python > versions. https://setuptools.readthedocs.io/en/latest/setuptools.html#new-and-changed-setup-keywords > python_requires > > A string corresponding to a version specifier (as defined in PEP 440) > for the Python version, used to specify the Requires-Python defined in > PEP 345.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 4361755ef..79302e9ae 100644
--- a/setup.py
+++ b/setup.py
@@ -201,6 +201,7 @@ setup(
'build_sphinx = sphinx.setup_command:BuildDoc',
],
},
+ python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
install_requires=install_requires,
extras_require=extras_require,
cmdclass=cmdclass,