summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-01-13 15:41:22 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2018-01-13 15:41:22 -0800
commitf68e71911be59b39871ce2511bd58141cf450efe (patch)
treefa0efbbbde8a482440bdb25de98aee4ce93b2fe0 /setup.py
parentf8344997267b8ca87a96c690a3515a443005b653 (diff)
downloadflake8-f68e71911be59b39871ce2511bd58141cf450efe.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 4833ff6..6047850 100644
--- a/setup.py
+++ b/setup.py
@@ -74,6 +74,7 @@ setuptools.setup(
"flake8.options",
"flake8.plugins",
],
+ python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
install_requires=requires,
extras_require=extras_require,
entry_points={