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

feat: support metadata 2.1-2.3 #91

Merged
merged 3 commits into from
Mar 26, 2024
Merged

Conversation

henryiii
Copy link
Collaborator

@henryiii henryiii commented Mar 19, 2024

Working on supporting metadata 2.3 and allowing a backend to choose what version they want.

In draft until I add tests.

@henryiii
Copy link
Collaborator Author

I think I slightly misunderstood Metadata 2.3. I believe all extras before 2.3 are (now) supposed to be normalized, and 2.3 restricts the valid set to normalized extras only. Currently, we are producing:

Provides-Extra: under_score
Requires-Dist: some_package; extra == "under-score"

Which is incorrect, these don't match. It's caused by packaging.markers.Marker always normalizing extras. I think we should too.

I'm not sure of my reading of the PEP and guidelines, but happy to be corrected if wrong!

@henryiii henryiii marked this pull request as ready for review March 25, 2024 17:18
@henryiii henryiii requested a review from frostming March 25, 2024 17:18
@henryiii
Copy link
Collaborator Author

@frostming I re-requested a review just to make sure you were okay with the extra normalization always occurring.

Signed-off-by: Henry Schreiner <[email protected]>
Signed-off-by: Henry Schreiner <[email protected]>
@henryiii henryiii force-pushed the henryiii/feat/metadata branch from 48ec6b9 to 4286944 Compare March 25, 2024 19:37
@henryiii
Copy link
Collaborator Author

pre-commit.ci autofix

@henryiii henryiii merged commit 9d5cd67 into pypa:main Mar 26, 2024
18 checks passed
@henryiii henryiii deleted the henryiii/feat/metadata branch March 26, 2024 07:26
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.

3 participants