From 94cf4b1ec899d39d5ff6e4e9160d73bd8f9a1ee0 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 2 Jul 2024 10:42:42 +0200 Subject: [PATCH] py: upgrade PyO3 to 0.22 --- instant-distance-py/Cargo.toml | 2 +- instant-distance-py/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/instant-distance-py/Cargo.toml b/instant-distance-py/Cargo.toml index da66f62..71fc24d 100644 --- a/instant-distance-py/Cargo.toml +++ b/instant-distance-py/Cargo.toml @@ -17,6 +17,6 @@ crate-type = ["cdylib"] [dependencies] bincode = "1.3.1" instant-distance = { version = "0.6", path = "../instant-distance", features = ["with-serde"] } -pyo3 = { version = "0.21", features = ["extension-module"] } +pyo3 = { version = "0.22", features = ["extension-module"] } serde = { version = "1", features = ["derive"] } serde-big-array = "0.5.0" diff --git a/instant-distance-py/src/lib.rs b/instant-distance-py/src/lib.rs index 9403cb0..6271427 100644 --- a/instant-distance-py/src/lib.rs +++ b/instant-distance-py/src/lib.rs @@ -10,7 +10,7 @@ use std::iter::FromIterator; use instant_distance::Point; use pyo3::conversion::IntoPy; use pyo3::exceptions::{PyTypeError, PyValueError}; -use pyo3::types::{PyAnyMethods, PyList, PyListMethods, PyModule, PyString}; +use pyo3::types::{PyAnyMethods, PyList, PyListMethods, PyModule, PyModuleMethods, PyString}; use pyo3::{pyclass, pymethods, pymodule, Bound}; use pyo3::{Py, PyAny, PyErr, PyObject, PyRef, PyRefMut, PyResult, Python}; use serde::{Deserialize, Serialize};