summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-01-11 05:38:23 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2018-01-11 05:38:23 -0800
commit3f51a744d5d29893b3c4ba6934e1d003576f2bf4 (patch)
tree48999feec69e620ff00dc41bbd78908a97688091 /setup.py
parent65cd4493a024d896393c22c58b62e422bf8de5ab (diff)
downloadsqlparse-3f51a744d5d29893b3c4ba6934e1d003576f2bf4.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 53d70d2..a3e9a44 100644
--- a/setup.py
+++ b/setup.py
@@ -83,6 +83,7 @@ setup(
description='Non-validating SQL parser',
long_description=LONG_DESCRIPTION,
license='BSD',
+ python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',