Skip to content

Deduplicate invalid metadata warnings per location#13811

Open
gcomneno wants to merge 5 commits intopypa:mainfrom
gcomneno:bugfix/dedup-bad-metadata-warning
Open

Deduplicate invalid metadata warnings per location#13811
gcomneno wants to merge 5 commits intopypa:mainfrom
gcomneno:bugfix/dedup-bad-metadata-warning

Conversation

@gcomneno
Copy link
Contributor

Fixes #11436.

When multiple distributions with the same invalid metadata are discovered in the same location, pip currently emits identical "Skipping ... due to invalid metadata entry" warnings multiple times.

This change deduplicates the warning per info_location within a single finder instance, without altering distribution discovery behavior.

Scope:

  • No change to resolution logic.
  • No change to error semantics.
  • Only suppresses repeated identical warnings for the same path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Only emit a metadata warning once

1 participant

Comments