Repository navigation
Core Metadata: Remove line suggesting metadata produces should use outdated versions - #1063
CAM-Gerlach wants to merge 1 commit into
Conversation
merwok
left a comment
There was a problem hiding this comment.
One approval on the forum, no opposition.
PR title typo: producers*
506c63d to
bd64951
Compare
|
@CAM-Gerlach is this still a draft? |
There was a problem hiding this comment.
This got only one response on DPO, but it looks like an outright bad idea to me based on recent experience - build backends bumping too quickly to the latest Core Metadata version can reduce in unnecessary incompatibility with older tools (uploaders, index servers, etc.). twine is known to take a long time to update for example; for index servers folks will look at PyPI having enabled support; other index servers are likely to move much slower. Etc. IIRC for Core Metadata 2.5, hatch updated immediately and this resulted in problems. I know meson-python does use the more conservative option here, and it works perfectly fine.
I also don't see any good rationale here. So I suggest to just close this PR and leave things as they are. I'll post the same on DPO in case anyone disagrees.
|
To clarify, meson-python inherits the behavior of using the earliest version of the metadata sufficient to represent what the package describes in This works because, so far, all metadata format updates have been additions to the specification. In presence of metadata format changes that modify how information should be encoded or interpreted, deriving the most appropriate metadata version from the data to be encoded is not possible anymore and a the tool encoding the metadata needs to make a choice. |
|
I posted a much longer analysis on https://discuss.python.org/t/rfc-remove-explicit-suggestion-that-producers-use-outdated-core-metadata-versions-for-compat-purposes/14275/3, with a proposal to reject this change. |
|
Closing as my proposed rejection of this change on DPO received enough positive and no negative feedback after two weeks. Including from Paul Moore, who originally proposed this change. |
|
Thanks for taking up that suggested change and writing the RFC though @CAM-Gerlach! |
Presently, the Metadata-Version section of the core metadata spec states:
Following discussion on PEP 685's thread and related conversations on metadata-version, it seemed prudent to simply remove this; per @pfmoore
PEP 609 in turn delegates to the the PyPA Specifications document, which states:
I opened a thread on the packaging discourse to gather consensus and any objections to this change.