From 93e7ae76a4e5ca86ca8e62da70e558af1a19a3d7 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Thu, 12 Mar 2026 09:12:53 -0400 Subject: [PATCH 1/2] chore: update versions in new project init --- crates/uv/src/commands/project/init.rs | 7 +++---- crates/uv/tests/it/init.rs | 8 ++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/crates/uv/src/commands/project/init.rs b/crates/uv/src/commands/project/init.rs index 6c93f2187971e..bf3d21f3f9254 100644 --- a/crates/uv/src/commands/project/init.rs +++ b/crates/uv/src/commands/project/init.rs @@ -1075,7 +1075,7 @@ fn pyproject_build_system(package: &PackageName, build_backend: ProjectBuildBack cache-keys = [{ file = "pyproject.toml" }, { file = "src/**/*.{h,c,hpp,cpp}" }, { file = "CMakeLists.txt" }] [build-system] - requires = ["scikit-build-core>=0.10", "pybind11"] + requires = ["scikit-build-core>=0.12", "pybind11>=3"] build-backend = "scikit_build_core.build" "#} .to_string(), @@ -1119,7 +1119,7 @@ fn pyproject_build_backend_prerequisites( [dependencies] # "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so) # "abi3-py39" tells pyo3 (and maturin) to build using the stable ABI with minimum Python version 3.9 - pyo3 = {{ version = "0.27.1", features = ["extension-module", "abi3-py39"] }} + pyo3 = {{ version = "0.28.2", features = ["extension-module", "abi3-py39"] }} "#}, )?; } @@ -1131,10 +1131,9 @@ fn pyproject_build_backend_prerequisites( fs_err::write( build_file, indoc::formatdoc! {r" - cmake_minimum_required(VERSION 3.15) + cmake_minimum_required(VERSION 3.15...4.0) project(${{SKBUILD_PROJECT_NAME}} LANGUAGES CXX) - set(PYBIND11_FINDPYTHON ON) find_package(pybind11 CONFIG REQUIRED) pybind11_add_module(_core MODULE src/main.cpp) diff --git a/crates/uv/tests/it/init.rs b/crates/uv/tests/it/init.rs index 66bf1e8a48924..845cf7c8fa79d 100644 --- a/crates/uv/tests/it/init.rs +++ b/crates/uv/tests/it/init.rs @@ -3503,7 +3503,7 @@ fn init_app_build_backend_maturin() -> Result<()> { [dependencies] # "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so) # "abi3-py39" tells pyo3 (and maturin) to build using the stable ABI with minimum Python version 3.9 - pyo3 = { version = "0.27.1", features = ["extension-module", "abi3-py39"] } + pyo3 = { version = "0.28.2", features = ["extension-module", "abi3-py39"] } "# ); }); @@ -3559,7 +3559,7 @@ fn init_app_build_backend_scikit() -> Result<()> { cache-keys = [{ file = "pyproject.toml" }, { file = "src/**/*.{h,c,hpp,cpp}" }, { file = "CMakeLists.txt" }] [build-system] - requires = ["scikit-build-core>=0.10", "pybind11"] + requires = ["scikit-build-core>=0.12", "pybind11>=3"] build-backend = "scikit_build_core.build" "# ); @@ -3755,7 +3755,7 @@ fn init_lib_build_backend_maturin() -> Result<()> { [dependencies] # "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so) # "abi3-py39" tells pyo3 (and maturin) to build using the stable ABI with minimum Python version 3.9 - pyo3 = { version = "0.27.1", features = ["extension-module", "abi3-py39"] } + pyo3 = { version = "0.28.2", features = ["extension-module", "abi3-py39"] } "# ); }); @@ -3808,7 +3808,7 @@ fn init_lib_build_backend_scikit() -> Result<()> { cache-keys = [{ file = "pyproject.toml" }, { file = "src/**/*.{h,c,hpp,cpp}" }, { file = "CMakeLists.txt" }] [build-system] - requires = ["scikit-build-core>=0.10", "pybind11"] + requires = ["scikit-build-core>=0.12", "pybind11>=3"] build-backend = "scikit_build_core.build" "# ); From 6ac85c5ca42cecbd65d932886dcf25be701a89c6 Mon Sep 17 00:00:00 2001 From: konstin Date: Fri, 13 Mar 2026 14:39:49 +0100 Subject: [PATCH 2/2] Update CMakeLists.txt snapshots for scikit-build tests --- crates/uv/tests/it/init.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/uv/tests/it/init.rs b/crates/uv/tests/it/init.rs index 845cf7c8fa79d..7524e02a7fffb 100644 --- a/crates/uv/tests/it/init.rs +++ b/crates/uv/tests/it/init.rs @@ -3618,10 +3618,9 @@ fn init_app_build_backend_scikit() -> Result<()> { }, { assert_snapshot!( build_file_contents, @" - cmake_minimum_required(VERSION 3.15) + cmake_minimum_required(VERSION 3.15...4.0) project(${SKBUILD_PROJECT_NAME} LANGUAGES CXX) - set(PYBIND11_FINDPYTHON ON) find_package(pybind11 CONFIG REQUIRED) pybind11_add_module(_core MODULE src/main.cpp) @@ -3867,10 +3866,9 @@ fn init_lib_build_backend_scikit() -> Result<()> { }, { assert_snapshot!( build_file_contents, @" - cmake_minimum_required(VERSION 3.15) + cmake_minimum_required(VERSION 3.15...4.0) project(${SKBUILD_PROJECT_NAME} LANGUAGES CXX) - set(PYBIND11_FINDPYTHON ON) find_package(pybind11 CONFIG REQUIRED) pybind11_add_module(_core MODULE src/main.cpp)