diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-01-11 05:38:23 -0800 |
|---|---|---|
| committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-01-11 05:38:23 -0800 |
| commit | 3f51a744d5d29893b3c4ba6934e1d003576f2bf4 (patch) | |
| tree | 48999feec69e620ff00dc41bbd78908a97688091 /setup.py | |
| parent | 65cd4493a024d896393c22c58b62e422bf8de5ab (diff) | |
| download | sqlparse-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.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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', |
