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

metadata: initial PEP 753 bits #17470

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

woodruffw
Copy link
Member

This is a pretty small change, to get some initial bits of PEP 753 into Warehouse.

In particular, the only real functional change here is the addition of the metadata.normalize_project_url_label helper and its use in Release.urls (instead of the previous ad-hoc normalization). This doesn't actually change the presentation based on the normalized labels (yet!) -- I'll do that in a follow-up.

The other changes in this PR are mostly auto-formatting (I can remove these if desired), as well as fixing an import cycle between warehouse.forklift.metadata and warehouse.packaging.models -- I fixed the latter by separating DynamicFieldsEnum into a DB-level ENUM type in the models, which gets populated from data stored in forklift.metadata. That keeps the import flow unidirectional and seems conceptually consistent to me, versus importing a DB model into forklift.metadata 🙂

Signed-off-by: William Woodruff <[email protected]>
@woodruffw woodruffw requested a review from a team as a code owner January 21, 2025 20:47
@woodruffw woodruffw self-assigned this Jan 21, 2025
Signed-off-by: William Woodruff <[email protected]>
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.

1 participant