-
Notifications
You must be signed in to change notification settings - Fork 963
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
RFE: Allow project maintainers to edit Requires-Python
metadata directly
#3138
Comments
There's a lot of discussion about this field over at #2170 as well. |
To be clear, I am like 90% sure that the second and third bullet points here are invalid (or could be better worded as a single one, "if you attempt to produce the sdist with an old version of setuptools or upload with an old version of twine". I'm generally opposed to editing the metadata that allows diverging from what is different inside of the package (although technically right now there is nothing verifying that the two are the same). This is going to become a bigger deal when we start digging into things like TUF, since the ability to edit this would also mean that an attacker controlled PyPI could prevent someone from getting a newer version of the package. I also think it's a very specific solution to an otherwise general problem (the general problem being that you've published something that is broken, but not so broken you want to completely remove it and break |
I'm going to close this, as @dstufft's right that my second and third arguments are wrong: the issue is that PyPI relies on the upload client to extract and supply the correct metadata, and that's only a valid assumption for recent versions of This means that for pypa/packaging.python.org#450 we can just make sure we include "Use a modern publishing tool that extracts the metadata correctly" as part of our guidance. For retrofitting metadata updates for older releases, a mechanism for auditing and/or syncing the PyPI database against the contents of the uploaded artifacts (as per #474 (comment)) will be more useful than an arbitrary editing mechanism. |
(Broken out of the discussion at pypa/packaging.python.org#450)
While pip 9 correctly interprets
data-requires-python
link metadata in the PEP 503 download API, there are a few UX challenges in getting that metadata set correctly:It seems to me that allowing the
Requires-Python
metadata to be set directly by project maintainers through the web UI would be a good near-term mitigation for all of those UX problems.The text was updated successfully, but these errors were encountered: