Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass python_requires argument to setuptools #440

Merged
merged 1 commit into from
Sep 28, 2019
Merged

Pass python_requires argument to setuptools #440

merged 1 commit into from
Sep 28, 2019

Conversation

jdufresne
Copy link
Contributor

Helps pip decide what version of the library to install. This is
especially useful when removing support for EOL Python versions.

https://packaging.python.org/guides/distributing-packages-using-setuptools/#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.

Helps pip decide what version of the library to install. This is
especially useful when removing support for EOL Python versions.

https://packaging.python.org/guides/distributing-packages-using-setuptools/#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.
@coveralls
Copy link

coveralls commented Sep 28, 2019

Pull Request Test Coverage Report for Build 70

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-8.7%) to 68.011%

Totals Coverage Status
Change from base Build 62: -8.7%
Covered Lines: 489
Relevant Lines: 719

💛 - Coveralls

@jpadilla
Copy link
Owner

This is neat, thanks!

@jpadilla jpadilla merged commit 12eaf00 into jpadilla:master Sep 28, 2019
@jdufresne jdufresne deleted the pyreq branch December 16, 2020 16:06
@jpadilla jpadilla added this to the v2.0.0 milestone Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants