Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add schema for PEP 723 script metadata #4507

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

InSyncWithFoo
Copy link
Contributor

@InSyncWithFoo InSyncWithFoo commented Mar 1, 2025

PEP 723 specifies that:

This document MAY include top-level fields dependencies and requires-python, and MAY optionally include a [tool] table.

The [tool] table MAY be used by any tool, script runner or otherwise, to configure behavior. It has the same semantics as the tool table in pyproject.toml.

The new pep-723.json schema is thus a subset of pyproject.toml. It is assumed that no other top-level fields are allowed.

It has no file matchers, as script metadata blocks are embedded within Python files.

Copy link
Contributor

github-actions bot commented Mar 1, 2025

Thanks for the PR!

This section of the codebase is owned by @madskristensen and @hyperupcall - if they write a comment saying "LGTM" then it will be merged.

@InSyncWithFoo
Copy link
Contributor Author

It's probably worth moving the common parts to new subschemas. I'll submit a follow-up PR once this is merged.

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.

1 participant