Skip to content

Commit

Permalink
⬆️ Bump pyo3 from 0.21.1 to 0.22.4, numpy from 0.21.0 to 0.22.0 (#19)
Browse files Browse the repository at this point in the history
* ⬆️ Bump pyo3 from 0.21.1 to 0.22.4, numpy from 0.21.0 to 0.22.0

Bumps [pyo3](https://github.com/pyo3/pyo3) from 0.21.1 to 0.22.4.
- [Release notes](https://github.com/pyo3/pyo3/releases)
- [Changelog](https://github.com/PyO3/pyo3/blob/main/CHANGELOG.md)
- [Commits](PyO3/pyo3@v0.21.1...v0.22.4)

Bumps [numpy](https://github.com/PyO3/rust-numpy) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/PyO3/rust-numpy/releases)
- [Changelog](https://github.com/PyO3/rust-numpy/blob/main/CHANGELOG.md)
- [Commits](PyO3/rust-numpy@v0.21.0...v0.22.0)

* 👽 Import pyo3::types::PyModuleMethods

Needed to fix `error[E0599]: no method named `add_class` found for reference `&pyo3::Bound<'_, PyModule>` in the current scope` and `error[E0599]: no method named `add_function` found for reference `&pyo3::Bound<'_, PyModule>` in the current scope`.
  • Loading branch information
weiji14 authored Oct 13, 2024
1 parent 69e460a commit 8af6ce9
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 31 deletions.
64 changes: 35 additions & 29 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ bytes = "1.5.0"
geo = { git = "https://github.com/georust/geo.git", version = "0.28.0", rev = "481196b4e50a488442b3919e02496ad909fc5412" }
ndarray = "0.15.6"
num-traits = "0.2.19"
numpy = "0.21.0"
numpy = "0.22.0"
object_store = { version = "0.9.0", features = ["http"] }
pyo3 = { version = "0.21.1", features = ["abi3-py310", "extension-module"] }
pyo3 = { version = "0.22.4", features = ["abi3-py310", "extension-module"] }
tiff = { git = "https://github.com/image-rs/image-tiff.git", version = "0.9.1", rev = "0c54a18e2130bd8e3e897009e1fb59eaaf607c6c" } # https://github.com/image-rs/image-tiff/pull/224
tokio = { version = "1.36.0", features = ["rt-multi-thread"] }
url = "2.5.0"
Expand Down
1 change: 1 addition & 0 deletions src/python/adapters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use numpy::{PyArray1, PyArray3, ToPyArray};
use object_store::{parse_url, ObjectStore};
use pyo3::exceptions::{PyBufferError, PyFileNotFoundError, PyValueError};
use pyo3::prelude::{pyclass, pyfunction, pymethods, pymodule, PyModule, PyResult, Python};
use pyo3::types::PyModuleMethods;
use pyo3::{wrap_pyfunction, Bound, PyErr};
use url::Url;

Expand Down

0 comments on commit 8af6ce9

Please sign in to comment.