From 4ba0e158a421901b1775e4a4263a9c1982c93d22 Mon Sep 17 00:00:00 2001 From: Lukas Berbuer Date: Mon, 3 Aug 2026 12:50:02 +0200 Subject: [PATCH] build(python): require scikit-build-core >=1.0 and nanobind >=2.13 minimum-version is tied to build-system.requires, so bumping scikit-build-core opts into the 1.0 defaults. Migrate the deprecated [tool.scikit-build.metadata] table to the standardized [[tool.dynamic-metadata]] array; the version is still parsed from project(... VERSION ...) in CMakeLists.txt. --- bindings/python/CMakeLists.txt | 2 +- pyproject.toml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt index 0f27d9e..a844434 100644 --- a/bindings/python/CMakeLists.txt +++ b/bindings/python/CMakeLists.txt @@ -1,4 +1,4 @@ -find_package(Python 3.8 COMPONENTS Interpreter Development.Module REQUIRED) +find_package(Python 3.9 COMPONENTS Interpreter Development.Module REQUIRED) find_package(nanobind REQUIRED) nanobind_add_module( diff --git a/pyproject.toml b/pyproject.toml index 1379e9b..14b2244 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] requires = [ - "scikit-build-core>=0.10", - "nanobind>=2.5", + "scikit-build-core>=1.0", + "nanobind>=2.13", "typing_extensions", # required by nanobind stubgen.py on Python <3.11 ] build-backend = "scikit_build_core.build" @@ -120,8 +120,9 @@ BUILD_SHARED_LIBS = "OFF" OPENAE_BUILD_PYTHON = "ON" OPENAE_BUILD_PYTHON_STUBS = "OFF" -[tool.scikit-build.metadata.version] +[[tool.dynamic-metadata]] provider = "scikit_build_core.metadata.regex" +field = "version" input = "CMakeLists.txt" regex = '''(?is)^\s*project\s*\(\s*\w+\s*VERSION\s+(?P[\d\.]+)'''