-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[python-package] update to scikit-build-core 0.10 #6597
Conversation
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is described in the blog post linked in the PR... scikit-build-core
now reads cmake_minimum_required()
from CMakeLists.txt
and uses it to figure this out. So no more need to keep those 2 versions in sync!
I'm not sure how this would work if cmake_minimum_required()
varied based on options, as this project used to do prior to #6260 .... but I hope we'll not have to go back to that in the future and can just keep having a single minimum version.
@@ -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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another case where scikit-build-core
is reducing the need for us to keep the same version in sync across 2 fields.
Setting scikit-build-core>=0.10.1
is equivalent to setting this to minimum-version = "0.10.1"
😁
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice improvements!
Approving since CI is green and logs look OK.
There is a new
sckit-build-core
minor version with lots of nice improvements. This proposes updating to it here in LightGBM.See https://iscinumpy.dev/post/scikit-build-core-0-10/ for details.