From 9a76aae1b5979a455bf6d80728d2a88f36823380 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Fri, 9 Aug 2024 11:50:59 -0500 Subject: [PATCH] [python-package] update to scikit-build-core 0.10 (#6597) --- python-package/pyproject.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python-package/pyproject.toml b/python-package/pyproject.toml index 3ff4a3d2c1fe..0d3d70feac66 100644 --- a/python-package/pyproject.toml +++ b/python-package/pyproject.toml @@ -57,21 +57,21 @@ changelog = "https://github.com/microsoft/LightGBM/releases" # start:build-system [build-system] -requires = ["scikit-build-core>=0.9.3"] +requires = ["scikit-build-core>=0.10.1"] build-backend = "scikit_build_core.build" # based on https://github.com/scikit-build/scikit-build-core#configuration [tool.scikit-build] -cmake.version = ">=3.28" +cmake.version = "CMakeLists.txt" ninja.version = ">=1.11" ninja.make-fallback = true cmake.args = [ "-D__BUILD_FOR_PYTHON:BOOL=ON" ] -cmake.verbose = false +build.verbose = false cmake.build-type = "Release" -cmake.targets = ["_lightgbm"] +build.targets = ["_lightgbm"] # stripping binaries should be turned back on once this is fixed: # https://github.com/jameslamb/pydistcheck/issues/235 install.strip = false @@ -80,7 +80,7 @@ sdist.reproducible = true wheel.py-api = "py3" experimental = false strict-config = false -minimum-version = "0.9.3" +minimum-version = "build-system.requires" # end:build-system