Skip to content

Commit

Permalink
Update future-incompat pyo3 dependency
Browse files Browse the repository at this point in the history
pyo3 v0.13.2 is tripping future-incompat. This change updates it to the newest 0.20.

pyo3 v0.16.0 renamed pvalue -> value.

The other future-incompat dependency, nom, is an indirect dependency through ansi-parser.

See issue 116
  • Loading branch information
thenorili committed Nov 10, 2023
1 parent 12479e9 commit c6ebe7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions eyre/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ track-caller = []
[dependencies]
indenter = { workspace = true }
once_cell = { workspace = true }
pyo3 = { version = "0.13", optional = true, default-features = false }
pyo3 = { version = "0.20", optional = true, default-features = false }

[dev-dependencies]
futures = { version = "0.3", default-features = false }
Expand All @@ -30,7 +30,7 @@ trybuild = { version = "1.0.19", features = ["diff"] }
backtrace = "0.3.46"
anyhow = "1.0.28"
syn = { version = "2.0", features = ["full"] }
pyo3 = { version = "0.13", default-features = false, features = ["auto-initialize"] }
pyo3 = { version = "0.20", default-features = false, features = ["auto-initialize"] }

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
2 changes: 1 addition & 1 deletion eyre/tests/test_pyo3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ fn test_pyo3_exception_contents() {
Python::with_gil(|py| {
let locals = [("err", pyerr)].into_py_dict(py);
let pyerr = py.run("raise err", None, Some(locals)).unwrap_err();
assert_eq!(pyerr.pvalue(py).to_string(), expected_contents);
assert_eq!(pyerr.value(py).to_string(), expected_contents);
})
}

0 comments on commit c6ebe7e

Please sign in to comment.