Skip to content
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

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

jameslamb
Copy link
Collaborator

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.

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"
Copy link
Collaborator Author

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"
Copy link
Collaborator Author

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" 😁

@jameslamb jameslamb changed the title WIP: [python-package] update to scikit-build-core 0.10 [python-package] update to scikit-build-core 0.10 Aug 9, 2024
@jameslamb jameslamb marked this pull request as ready for review August 9, 2024 02:51
Copy link
Collaborator

@StrikerRUS StrikerRUS left a 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.

@StrikerRUS StrikerRUS merged commit 9a76aae into master Aug 9, 2024
45 checks passed
@StrikerRUS StrikerRUS deleted the new-scikit-build-core branch August 9, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants