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

Add support for Requires-Python #3692

Closed
xavfernandez opened this issue May 16, 2016 · 1 comment
Closed

Add support for Requires-Python #3692

xavfernandez opened this issue May 16, 2016 · 1 comment
Labels
auto-locked Outdated issues that have been locked by automation type: enhancement Improvements to functionality

Comments

@xavfernandez
Copy link
Member

As defined in https://www.python.org/dev/peps/pep-0345/#requires-python

As explained in #3640 by @dstufft:

I think if we want a feature like this (and I like the idea behind the feature!) we'd be better off to expose a way to add the Requires-Python metadata in setuptools so that A) It gets exposed in PyPI and B) it's now in the metadata and pip can read that and act on it. Using that, we could even get a bit more strict in how this is implemented and bail out if we attempt to install something with a Requires-Python that doesn't match (probably without some sort of --force flag).

And a few questions of @pfmoore:

Instead, I think we need to use a different (new) field. It's possible that Requires-Python would work, although in principle that's mandatory according to Metadata 1.2, and yet as far as I know is rarely if ever used at the moment due to lack of tool support.

Some questions:

  1. Would the field be mandatory? If not, how would we encourage projects to add it? What's the benefit for the project to do so? The most obvious benefit would be to have a way of flagging "not supported on the following older versions of Python" so maybe an Incompatible-Python entry would be better?
  2. Realistically, if it's a new field, will projects use it? There's a history of projects only providing the bare minimum of metadata - as I noted, Requires-Python is technically mandatory, but in practice not used.

I guess the real question is, are projects asking for this capability? While I like the idea in the abstract, if the users don't care, is it going to be worthwhile to add?

@xavfernandez xavfernandez added the type: enhancement Improvements to functionality label May 16, 2016
@dstufft
Copy link
Member

dstufft commented Oct 29, 2016

This should be fixed in #3846.

@dstufft dstufft closed this as completed Oct 29, 2016
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation type: enhancement Improvements to functionality
Projects
None yet
Development

No branches or pull requests

2 participants