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.
pull/258/head
Jon Dufresne 2018-01-26 18:33:58 -08:00
rodzic c55dbdf2dc
commit 09707f4eed
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -55,6 +55,7 @@ setuptools.setup(
package_dir={'': 'src'},
include_package_data=True,
zip_safe=False,
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
install_requires=install_requires,
extras_require={
'test': tests_require