Skip to content

feat: accept PEP 794 in pyproject.toml#5986

Merged
ruben-arts merged 1 commit intoprefix-dev:mainfrom
baszalmstra:claude/parse-pixi-5841-eJpf1
May 1, 2026
Merged

feat: accept PEP 794 in pyproject.toml#5986
ruben-arts merged 1 commit intoprefix-dev:mainfrom
baszalmstra:claude/parse-pixi-5841-eJpf1

Conversation

@baszalmstra
Copy link
Copy Markdown
Contributor

Description

The pyproject.toml [project] parser uses strict finalization, so any PEP 794-compliant project file (which adds import-names and import-namespaces) currently fails to parse. Pixi does not use this metadata, but accepting it unblocks projects that follow the standard.

Fixes #5841

How Has This Been Tested?

CI

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.

Tools: Claude Code Opus 4.7

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added sufficient tests to cover my changes.
  • I have verified that changes that would impact the JSON schema have been made in schema/model.py.

The pyproject.toml `[project]` parser uses strict finalization, so any
PEP 794-compliant project file (which adds `import-names` and
`import-namespaces`) currently fails to parse. Consume both fields and
discard them — pixi does not yet use this metadata, but accepting it
unblocks projects that follow the standard.

Refs prefix-dev#5841
@baszalmstra baszalmstra requested a review from tdejager May 1, 2026 10:27
Copy link
Copy Markdown
Contributor

@ruben-arts ruben-arts left a comment

Choose a reason for hiding this comment

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

Thanks!

@ruben-arts ruben-arts merged commit 9447fe1 into prefix-dev:main May 1, 2026
37 checks passed
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.

[pixi build] Add support for import-namespace and import-names in pyproject.toml [PEP-794]

3 participants