Skip to content
Myr

Pass python_requires argument to setuptools

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by Jon Dufresne · committed by Jon Dufresne · parent a87829d · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:setup.py+1 added
23 unmodified lines
24 'License :: OSI Approved :: BSD License',25 'Programming Language :: Python',26 'Programming Language :: Python :: 3',27 ],28 python_requires=">=2.6, !=3.0.*, !=3.1.*, !=3.2.*",29)