-
Notifications
You must be signed in to change notification settings - Fork 157
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
Updates for PEP 566 #231
Comments
A wheel I just built (project page, file) had "Metadata-Version: 2.0" at the top of I was using setuptools 38.6.0, twine 1.11.0rc1, and pkginfo 1.4.2. Relevant contents of
Contents of
|
Probably because |
I'm going to propose the following changes:
@agronholm Any thoughts on this before I make the PR? |
Hm, seems that I do not get any email notifications for new issues. I only got the notification now that you directly mentioned me. Anyway, I have a refactoring in progress for this, but seeing as how I'm not the original author, some help would be welcome. I'm also tackling one of my pet peeves here, namely the presence of metadata.json and the code that generates it. Wheel even generates extra requirements from the [metadata] section of setup.cfg which has not been documented anywhere as far as I'm aware. I'm throwing all that overboard too. |
Also, as 2.0 is not listed among valid metadata versions, I would prefer setting it to 2.1 unconditionally. |
@agronholm Great to hear. Setting 2.1 unconditionally sounds good to me. Would you be open to me making these changes sooner, rather than waiting for your refactor to be done? Currently (as @brainwane mentioned) since |
How about this – if this is needed really soon and you're ready to write the code, I will welcome your PR and add my own changes before the next release. Are you on #pypa-dev on Freenode btw? |
@agronholm sounds good. Yes, I'm |
Just a quick note - removing these files has broken Artifactory. I'm not sure whether other tools rely on this data too. https://www.jfrog.com/jira/browse/RTFACT-16360 We've had to pin our wheel version to 0.30 for now. |
@testworksau Yes, I think JFrog is already aware that Artifactory does not support Metadata 2.1. As far as I know, they're working on it, but pinning the |
They should never have relied on that data as it was not based on any accepted PEP. |
@agronholm Their actual problem is the version 2.1 (as with metadata.json, this version was never standard). Here's ticket: https://www.jfrog.com/jira/browse/RTFACT-16189 Not sure whether they could have prevented it, but seem like we lived with non-standard version 2.0 for >5 years so them relying on that was normal. 2.0 was a de-facto standard (although in deferred status). |
I didn't think
wheel
needed any additional updates to support PEP 566 , but over at pypa/setuptools#1286, @brainwane pointed out thatwheel
creates aDESCRIPTION.rst
file.It seems like if the user is providing
Description-Content-Type
,wheel
should output the correct extension, (e.g.DESCRIPTION.md
) instead.However, I'm not really sure what this file is used for (especially because the
Description
is included as the message body inMETADATA
as well) so I'm hesitant to propose to change it in case some downstream tool is expectingDESCRIPTION.rst
to exist.Why does wheel create this file? Is it reasonable to change the extension if we know it to be incorrect?
The text was updated successfully, but these errors were encountered: