Skip to content

Add PEP 794 import name metadata support#5233

Open
Chris79OG wants to merge 1 commit into
pypa:mainfrom
Chris79OG:luminaflow/pep794-import-names-5112
Open

Add PEP 794 import name metadata support#5233
Chris79OG wants to merge 1 commit into
pypa:mainfrom
Chris79OG:luminaflow/pep794-import-names-5112

Conversation

@Chris79OG

Copy link
Copy Markdown

Summary

  • accept static project.import-names and project.import-namespaces values from pyproject.toml
  • emit Import-Name / Import-Namespace Core Metadata 2.5 headers and read them back from PKG-INFO
  • preserve existing PEP 794 validation for duplicate names and missing parents

Closes #5112.

Testing

  • python -m pytest setuptools\tests\config\test_pyprojecttoml.py setuptools\tests\test_core_metadata.py setuptools\tests\config\test_apply_pyprojecttoml.py -q
  • git diff --check (passes with existing LF-to-CRLF warnings on Windows)

Checklist

  • News fragment added in newsfragments/.

@8ddz2ypcv7-create 8ddz2ypcv7-create left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review and place orderly

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.

[FR] Add support for PEP 794

2 participants