Skip to content

Commit

Permalink
fix: support PEP 735 in top level validation
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Oct 11, 2024
1 parent bd15fbf commit 4f13d88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject_metadata/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __dir__() -> list[str]:
"version": frozenset(["Version"]),
}

KNOWN_TOPLEVEL_FIELDS = {"build-system", "project", "tool"}
KNOWN_TOPLEVEL_FIELDS = {"build-system", "project", "tool", "dependency-groups"}
KNOWN_BUILD_SYSTEM_FIELDS = {"backend-path", "build-backend", "requires"}
KNOWN_PROJECT_FIELDS = set(PROJECT_TO_METADATA)

Expand Down
4 changes: 1 addition & 3 deletions tests/test_standard_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1479,9 +1479,7 @@ def test_missing_keys_okay() -> None:

def test_extra_top_level() -> None:
assert not pyproject_metadata.extras_top_level(
{
"project": {},
}
{"project": {}, "dependency-gropus": {}}
)
assert {"also-not-real", "not-real"} == pyproject_metadata.extras_top_level(
{
Expand Down

0 comments on commit 4f13d88

Please sign in to comment.