Skip to content

Commit 5196bd2

Browse files
committed
feat: 0.11+ default to metadata 2.2
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 54f9a89 commit 5196bd2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/scikit_build_core/build/metadata.py

+6
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,10 @@ def get_standard_metadata(
104104
"Packaging 24.2+ required for license normalization. Please update (Python 3.8+ required)"
105105
)
106106

107+
# For scikit-build-core >= 0.11, we set METADATA 2.2 as minimum
108+
if (
109+
settings.minimum_version is None or settings.minimum_version >= Version("0.11")
110+
) and metadata.auto_metadata_version == "2.1":
111+
metadata.metadata_version = "2.2"
112+
107113
return metadata

0 commit comments

Comments
 (0)