Skip to content

Commit

Permalink
deps: update to pyo3 v0.23 (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski authored Dec 9, 2024
1 parent 0a71056 commit 896e8a0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ crate-type = ["cdylib"]
clap = { workspace = true }
cql2 = { path = ".." }
cql2-cli = { path = "../cli" }
pyo3 = { version = "0.22.0", features = ["extension-module"] }
pythonize = "0.22.0"
pyo3 = { version = "0.23.3", features = ["extension-module"] }
pythonize = "0.23.0"
6 changes: 3 additions & 3 deletions python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl From<pythonize::PythonizeError> for Error {
fn main(py: Python<'_>) {
use clap::Parser;

let signal = py.import_bound("signal").unwrap();
let signal = py.import("signal").unwrap();
signal
.getattr("signal")
.unwrap()
Expand All @@ -153,7 +153,7 @@ fn cql2(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
m.add_function(wrap_pyfunction!(parse_file, m)?)?;
m.add_function(wrap_pyfunction!(parse_text, m)?)?;
m.add_function(wrap_pyfunction!(parse_json, m)?)?;
m.add("ParseError", py.get_type_bound::<ParseError>())?;
m.add("ValidationError", py.get_type_bound::<ValidationError>())?;
m.add("ParseError", py.get_type::<ParseError>())?;
m.add("ValidationError", py.get_type::<ValidationError>())?;
Ok(())
}
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 896e8a0

Please sign in to comment.