Skip to content

Commit

Permalink
Pass python_requires argument to setuptools
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jdufresne authored and goodtune committed Apr 12, 2018
1 parent 51af057 commit 3f30cca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
install_requires=[
'django-js-asset',
],
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*",
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
Expand Down

0 comments on commit 3f30cca

Please sign in to comment.