mesonbuild / mesonbuild/meson-python

Support for PEP 794 (import name metadata)

Open
#809 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
180
Forks
93
Avg merge
2d 7h
Merged PRs (30d)
18

Description

[PEP 794](https://peps.python.org/pep-0794/) adds `import-names` and `import-namespaces` keys under `[project]` in `pyproject.toml`. Support for that just landed in `pyproject-metadata`, see https://github.com/pypa/pyproject-metadata/pull/260. Once that is released, we can add support.

EDIT: prerequisites are support in:

- [x] `pyproject-metadata` (0.10.0, see https://github.com/pypa/pyproject-metadata/pull/260)
- [x] `packaging` (26.0, see https://github.com/pypa/packaging/issues/950)
- [x] PyPI (see https://github.com/pypi/warehouse/issues/19083)
- [x] `twine` (no issue yet)
- [x] `uv build` (0.11.17, see https://github.com/astral-sh/uv/issues/16435)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading PEP 794 and reviewing how meson-python consumes pyproject-metadata for the [project] table. Add support for the import-names and import-namespaces keys once the listed prerequisites are available, then verify that these values are handled during the build-backend flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend-api-design, build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.