Use latest pyo3 to make test work on windows

This commit is contained in:
Bas Schoenmaeckers
2026-05-09 19:59:33 +02:00
parent 22985ca560
commit b2c2f6913f
3 changed files with 7 additions and 13 deletions

View File

@@ -121,7 +121,6 @@ jobs:
- name: run c-api tests
working-directory: crates/capi
run: cargo test
if: runner.os != 'Windows' # Requires pyo3 0.29+ on Windows
- run: cargo doc --locked
if: runner.os == 'Linux'

16
Cargo.lock generated
View File

@@ -2682,8 +2682,7 @@ dependencies = [
[[package]]
name = "pyo3"
version = "0.28.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91fd8e38a3b50ed1167fb981cd6fd60147e091784c427b8f7183a7ee32c31c12"
source = "git+https://github.com/PyO3/pyo3#901b032bfb8ec8eb05b39be3b98ef880427cf15a"
dependencies = [
"libc",
"once_cell",
@@ -2696,8 +2695,7 @@ dependencies = [
[[package]]
name = "pyo3-build-config"
version = "0.28.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e368e7ddfdeb98c9bca7f8383be1648fd84ab466bf2bc015e94008db6d35611e"
source = "git+https://github.com/PyO3/pyo3#901b032bfb8ec8eb05b39be3b98ef880427cf15a"
dependencies = [
"target-lexicon",
]
@@ -2705,8 +2703,7 @@ dependencies = [
[[package]]
name = "pyo3-ffi"
version = "0.28.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f29e10af80b1f7ccaf7f69eace800a03ecd13e883acfacc1e5d0988605f651e"
source = "git+https://github.com/PyO3/pyo3#901b032bfb8ec8eb05b39be3b98ef880427cf15a"
dependencies = [
"libc",
"pyo3-build-config",
@@ -2715,8 +2712,7 @@ dependencies = [
[[package]]
name = "pyo3-macros"
version = "0.28.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df6e520eff47c45997d2fc7dd8214b25dd1310918bbb2642156ef66a67f29813"
source = "git+https://github.com/PyO3/pyo3#901b032bfb8ec8eb05b39be3b98ef880427cf15a"
dependencies = [
"proc-macro2",
"pyo3-macros-backend",
@@ -2727,12 +2723,10 @@ dependencies = [
[[package]]
name = "pyo3-macros-backend"
version = "0.28.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c4cdc218d835738f81c2338f822078af45b4afdf8b2e33cbb5916f108b813acb"
source = "git+https://github.com/PyO3/pyo3#901b032bfb8ec8eb05b39be3b98ef880427cf15a"
dependencies = [
"heck",
"proc-macro2",
"pyo3-build-config",
"quote",
"syn",
]

View File

@@ -103,6 +103,7 @@ lto = "thin"
[patch.crates-io]
parking_lot_core = { git = "https://github.com/youknowone/parking_lot", branch = "rustpython" }
pyo3-ffi = { git = "https://github.com/PyO3/pyo3" }
# REDOX START, Uncomment when you want to compile/check with redoxer
# REDOX END
@@ -256,7 +257,7 @@ pkcs8 = "0.10"
proc-macro2 = "1.0.105"
psm = "0.1"
pymath = { version = "0.2.0", features = ["mul_add", "malachite-bigint", "complex"] }
pyo3 = "0.28"
pyo3 = { git = "https://github.com/PyO3/pyo3" }
quote = "1.0.45"
radium = "1.1.1"
rand = "0.9"