Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Support PEP 794 (Metadata-Version: 2.5)#39

Open
agriyakhetarpal wants to merge 1 commit intoziglang:mainfrom
agriyakhetarpal:metadata-version-2.5
Open

Support PEP 794 (Metadata-Version: 2.5)#39
agriyakhetarpal wants to merge 1 commit intoziglang:mainfrom
agriyakhetarpal:metadata-version-2.5

Conversation

@agriyakhetarpal
Copy link
Copy Markdown
Contributor

@agriyakhetarpal agriyakhetarpal commented Nov 24, 2025

This PR updates the wheel builder to support Metadata-Version: 2.5 (https://peps.python.org/pep-0794/). The specification is available here: https://packaging.python.org/specifications/core-metadata/. We don't need to add the Import-Namespace field since ziglang is not a namespace package shared with other projects.

I also added the private qualifier from the specification. It doesn't change any conflict-detection behaviour (so tools still prevent another package from claiming ziglang). IMO, it just communicates to tools and users that this package doesn't offer a programmatic interface via a public API, and the CLI is the only way to use it. It's also possible to keep Import-Name empty instead to indicate this, based on what I interpret from the PEP, but that would require us to to drop ziglang/__init__.py and ziglang/__main__.py, and that breaks the "use as a module" (python -m ziglang) pathway, which we don't want happening.

> [!IMPORTANT]
> This isn't ready to be merged yet – we need a new release of pypa/twine, which itself needs a new pypa/packaging release: pypa/packaging#950. PyPI itself needs support to ingest such wheels: pypi/warehouse#19083.

packaging has made a 26.0 release with support, and support for PyPI was merged in February soon after.

@agriyakhetarpal agriyakhetarpal marked this pull request as ready for review April 15, 2026 00:19
@agriyakhetarpal agriyakhetarpal changed the title Support PEP 794 Support PEP 794 (Metadata-Version: 2.5) Apr 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant