Pass python_requires argument to setuptools (#847)

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.
This commit is contained in:
Jon Dufresne 2018-04-12 04:31:53 -07:00 committed by Asif Saifuddin Auvi
parent b19bb3dd32
commit c9ea79f0f9
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ setup(
zip_safe=False,
license='BSD',
cmdclass={'test': pytest},
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
install_requires=reqs('default.txt'),
tests_require=reqs('test.txt'),
extras_require={