Skip to content

Commit 26ca3e3

Browse files
committed
Upgrade pyo3 0.26.0 -> 0.29.0
Needed to fix the build too. 1. Added rust/build.rs — calls add_extension_module_link_args() which emits -undefined dynamic_lookup on macOS. In pyo3 0.29, this is required because the crate's own build script must emit these linker flags (pyo3-ffi's build script no longer does it for downstream crates). 2. Added pyo3-build-config as a build-dependency in rust/Cargo.toml. 3. Added maturin to the dev dependency group in pyproject.toml so uv run maturin develop can find the maturin CLI.
1 parent a7e8b38 commit 26ca3e3

10 files changed

Lines changed: 179 additions & 192 deletions

File tree

‎justfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ compile-and-test:
2323
[group('testing')]
2424
[working-directory: 'rust']
2525
test-rust:
26-
@cargo test --no-default-features
26+
@PYO3_PYTHON="$(uv python find)" cargo test --no-default-features
2727

2828
# Runs Python tests.
2929
[group('testing')]

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Source-code = "https://github.com/python-grimp/grimp/"
4141

4242
[dependency-groups]
4343
dev = [
44+
"maturin>=1.0,<2.0",
4445
"import-linter>=2.5",
4546
"mypy>=1.18.2",
4647
"pre-commit>=4.3.0",

0 commit comments

Comments
 (0)