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..7524e02a7fffb 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" "# ); @@ -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) @@ -3755,7 +3754,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 +3807,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" "# ); @@ -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)