Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions crates/uv/src/commands/project/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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"] }}
"#},
)?;
}
Expand All @@ -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)
Expand Down
14 changes: 6 additions & 8 deletions crates/uv/tests/it/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
"#
);
});
Expand Down Expand Up @@ -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"
"#
);
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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"] }
"#
);
});
Expand Down Expand Up @@ -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"
"#
);
Expand Down Expand Up @@ -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)
Expand Down
Loading