Repository navigation
Enable storage retention for pypi - #441
Merged
Merged
Conversation
PyPI names are stored the way purl normalizes them, lowercased and with _ turned into -, so Typing_Extensions and typing-extensions hit the same package. The mirror can't fetch PyPI files today, so there's no mirror test. Refs git-pkgs#306
Dots in PyPI names aren't normalized, so zope.interface and zope_interface files end up under two packages. The docs now say to add a rule for each. Refs git-pkgs#306
Runs like "__" aren't collapsed either, so a__b is stored as a--b. Refs git-pkgs#306
andrew
approved these changes
Oct 12, 2026
andrew
left a comment
Contributor
There was a problem hiding this comment.
PyPI retention rules match the existing cache keys. The HTTP tests cover eviction, refetching, and package exemptions, and the documentation explains the current name normalization limitations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #306, builds on #428.
Registers pypi for
storage.retention.PyPI names are stored the way purl normalizes them: lowercased, and
_turned into-. SoTyping_Extensionsandtyping-extensionshit the same package. Dots aren't normalized, though, and runs like__aren't collapsed. That meanszope.interfaceandzope_interfacefiles end up under two packages, and the docs say to add a rule for each. Storing names per PEP 503 would fix that, but it changes how existing rows are keyed, so it's left for a separate PR.The mirror can't fetch PyPI files today, so there's no mirror test.