diff --git a/pyo3-arrow/CHANGELOG.md b/pyo3-arrow/CHANGELOG.md index c2b4490..05dc771 100644 --- a/pyo3-arrow/CHANGELOG.md +++ b/pyo3-arrow/CHANGELOG.md @@ -1,8 +1,16 @@ # Changelog +## [0.7.1] - 2025-02-21 + +### What's Changed + +- Bump to pyo3 0.23.4 https://github.com/kylebarron/arro3/pull/287 + +**Full Changelog**: https://github.com/kylebarron/arro3/compare/pyo3-arrow-v0.7.0...pyo3-arrow-v0.7.1 + ## [0.7.0] - 2025-02-13 -## What's Changed +### What's Changed - Add frozen parameter to pyclass macro by @kylebarron in https://github.com/kylebarron/arro3/pull/282 - Avoid returning `PyObject` and add wrapper types for arro3 export by @kylebarron in https://github.com/kylebarron/arro3/pull/269 diff --git a/pyo3-arrow/Cargo.lock b/pyo3-arrow/Cargo.lock index 9253066..89bf158 100644 --- a/pyo3-arrow/Cargo.lock +++ b/pyo3-arrow/Cargo.lock @@ -800,12 +800,13 @@ dependencies = [ [[package]] name = "pyo3" -version = "0.23.3" +version = "0.23.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e484fd2c8b4cb67ab05a318f1fd6fa8f199fcc30819f08f07d200809dba26c15" +checksum = "57fe09249128b3173d092de9523eaa75136bf7ba85e0d69eca241c7939c933cc" dependencies = [ "cfg-if", "chrono", + "chrono-tz", "indexmap", "indoc", "libc", @@ -820,7 +821,7 @@ dependencies = [ [[package]] name = "pyo3-arrow" -version = "0.7.0" +version = "0.7.1" dependencies = [ "arrow", "arrow-array", @@ -837,9 +838,9 @@ dependencies = [ [[package]] name = "pyo3-build-config" -version = "0.23.3" +version = "0.23.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc0e0469a84f208e20044b98965e1561028180219e35352a2afaf2b942beff3b" +checksum = "1cd3927b5a78757a0d71aa9dff669f903b1eb64b54142a9bd9f757f8fde65fd7" dependencies = [ "once_cell", "target-lexicon", @@ -847,9 +848,9 @@ dependencies = [ [[package]] name = "pyo3-ffi" -version = "0.23.3" +version = "0.23.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb1547a7f9966f6f1a0f0227564a9945fe36b90da5a93b3933fc3dc03fae372d" +checksum = "dab6bb2102bd8f991e7749f130a70d05dd557613e39ed2deeee8e9ca0c4d548d" dependencies = [ "libc", "pyo3-build-config", @@ -857,9 +858,9 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.23.3" +version = "0.23.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdb6da8ec6fa5cedd1626c886fc8749bdcbb09424a86461eb8cdf096b7c33257" +checksum = "91871864b353fd5ffcb3f91f2f703a22a9797c91b9ab497b1acac7b07ae509c7" dependencies = [ "proc-macro2", "pyo3-macros-backend", @@ -869,9 +870,9 @@ dependencies = [ [[package]] name = "pyo3-macros-backend" -version = "0.23.3" +version = "0.23.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38a385202ff5a92791168b1136afae5059d3ac118457bb7bc304c197c2d33e7d" +checksum = "43abc3b80bc20f3facd86cd3c60beed58c3e2aa26213f3cda368de39c60a27e4" dependencies = [ "heck", "proc-macro2", diff --git a/pyo3-arrow/Cargo.toml b/pyo3-arrow/Cargo.toml index 15eab75..fe9bfbd 100644 --- a/pyo3-arrow/Cargo.toml +++ b/pyo3-arrow/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pyo3-arrow" -version = "0.7.0" +version = "0.7.1" authors = ["Kyle Barron "] edition = "2021" description = "Arrow integration for pyo3." @@ -25,8 +25,7 @@ arrow-array = "54" arrow-buffer = "54" arrow-schema = "54" arrow = { version = "54", features = ["ffi", "chrono-tz"] } -# Breaking change in 0.23.4: https://github.com/PyO3/pyo3/issues/4909 -pyo3 = { version = "0.23,<0.23.4", features = ["chrono", "indexmap"] } +pyo3 = { version = "0.23.4", features = ["chrono", "chrono-tz", "indexmap"] } half = "2" indexmap = "2" numpy = { version = "0.23", features = ["half"] } diff --git a/pyo3-arrow/src/scalar.rs b/pyo3-arrow/src/scalar.rs index b0220e0..3821be1 100644 --- a/pyo3-arrow/src/scalar.rs +++ b/pyo3-arrow/src/scalar.rs @@ -196,18 +196,22 @@ impl PyScalar { TimeUnit::Second => arr .as_primitive::() .value_as_datetime_with_tz(0, tz) + .map(|dt| dt.fixed_offset()) .into_py_any(py)?, TimeUnit::Millisecond => arr .as_primitive::() .value_as_datetime_with_tz(0, tz) + .map(|dt| dt.fixed_offset()) .into_py_any(py)?, TimeUnit::Microsecond => arr .as_primitive::() .value_as_datetime_with_tz(0, tz) + .map(|dt| dt.fixed_offset()) .into_py_any(py)?, TimeUnit::Nanosecond => arr .as_primitive::() .value_as_datetime_with_tz(0, tz) + .map(|dt| dt.fixed_offset()) .into_py_any(py)?, } } else {