From 5a60ea365e5320c8f8de5ff31b873deb69ce9bb2 Mon Sep 17 00:00:00 2001 From: MARCHAND MANON Date: Tue, 15 Oct 2024 14:27:04 +0200 Subject: [PATCH] maint: bump pyo3 to v0.22 --- Cargo.toml | 6 +++--- src/lib.rs | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bd25ea1..5af6460 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,14 +25,14 @@ mapproj = "0.3.0" rayon = "1.10" [dependencies.numpy] -version = "0.21" +version = "0.22" [dependencies.pyo3] -version = "0.21" +version = "0.22" features = ["extension-module"] [dependencies.ndarray] -version = "0.15" +version = "0.15.6" default-features = false # do not include the default features, and optionally # cherry-pick individual features features = ["rayon"] diff --git a/src/lib.rs b/src/lib.rs index 8d27664..81241ea 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,6 +11,7 @@ use ndarray::{Array1, Zip}; use numpy::{IntoPyArray, PyArray1, PyArrayDyn, PyArrayMethods, PyReadonlyArrayDyn}; use pyo3::{ prelude::{pymodule, Bound, PyModule, PyResult, Python}, + types::PyModuleMethods, wrap_pyfunction, };