shibukawa / imagesize_py

MIT License
222 stars 43 forks source link

Pass python_requires argument to setuptools #19

Closed jdufresne closed 6 years ago

jdufresne commented 6 years ago

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.

hugovk commented 6 years ago

Hi, 2.6 and 3.3 have just been dropped in https://github.com/shibukawa/imagesize_py/pull/17

jdufresne commented 6 years ago

Thanks @hugovk !

I rebased and updated the Python version string to only include supported versions.