Skip to content

Read Project-URL metadata from PKG-INFO#5228

Open
Sean-Kenneth-Doherty wants to merge 1 commit into
pypa:mainfrom
Sean-Kenneth-Doherty:codex/read-project-url-metadata
Open

Read Project-URL metadata from PKG-INFO#5228
Sean-Kenneth-Doherty wants to merge 1 commit into
pypa:mainfrom
Sean-Kenneth-Doherty:codex/read-project-url-metadata

Conversation

@Sean-Kenneth-Doherty
Copy link
Copy Markdown

Summary of changes

Teach DistributionMetadata.read_pkg_file to read repeated Project-URL headers from PKG-INFO into metadata.project_urls, matching the existing write_pkg_file behavior. This restores round-tripping for project URL metadata.

Closes #1578

Pull Request Checklist

  • Changes have tests
  • News fragment added in [newsfragments/].

Test Plan

  • uv run --extra test --extra cover pytest setuptools/tests/test_core_metadata.py -q
  • uv run --extra check ruff check setuptools/_core_metadata.py setuptools/tests/test_core_metadata.py
  • uv run --extra check ruff format --check setuptools/_core_metadata.py setuptools/tests/test_core_metadata.py
  • git diff --check

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.

DistributionMetadata.read_pkg_file does not support Project-Url

1 participant