Skip to content

Commit

Permalink
[wheel] Fixed scikit-build scripts dynamic metadata plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Aug 24, 2023
1 parent 79a6478 commit b083a31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/python/scikit-build-plugins/scripts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ def __dir__() -> list[str]:


def dynamic_metadata(
fields: frozenset[str],
field: str,
settings: dict[str, object] | None = None,
) -> dict[str, str | dict[str, str | None]]:
if fields != {"scripts"}:
) -> str:
if field != "scripts":
msg = "Only the 'scripts' field is supported"
raise ValueError(msg)

if settings:
msg = "No inline configuration is supported"
raise ValueError(msg)

return {"scripts": pyproject_get_binaries()}
return pyproject_get_binaries()

0 comments on commit b083a31

Please sign in to comment.