Skip to content

Commit

Permalink
Bump to pyo3 0.23.4 (#287)
Browse files Browse the repository at this point in the history
* Bump to pyo3 0.23.4

* bump version
  • Loading branch information
kylebarron authored Feb 21, 2025
1 parent d2eb765 commit b3bbab4
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
10 changes: 9 additions & 1 deletion pyo3-arrow/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
23 changes: 12 additions & 11 deletions pyo3-arrow/Cargo.lock

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

5 changes: 2 additions & 3 deletions pyo3-arrow/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyo3-arrow"
version = "0.7.0"
version = "0.7.1"
authors = ["Kyle Barron <kylebarron2@gmail.com>"]
edition = "2021"
description = "Arrow integration for pyo3."
Expand All @@ -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"] }
Expand Down
4 changes: 4 additions & 0 deletions pyo3-arrow/src/scalar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,18 +196,22 @@ impl PyScalar {
TimeUnit::Second => arr
.as_primitive::<TimestampSecondType>()
.value_as_datetime_with_tz(0, tz)
.map(|dt| dt.fixed_offset())
.into_py_any(py)?,
TimeUnit::Millisecond => arr
.as_primitive::<TimestampMillisecondType>()
.value_as_datetime_with_tz(0, tz)
.map(|dt| dt.fixed_offset())
.into_py_any(py)?,
TimeUnit::Microsecond => arr
.as_primitive::<TimestampMicrosecondType>()
.value_as_datetime_with_tz(0, tz)
.map(|dt| dt.fixed_offset())
.into_py_any(py)?,
TimeUnit::Nanosecond => arr
.as_primitive::<TimestampNanosecondType>()
.value_as_datetime_with_tz(0, tz)
.map(|dt| dt.fixed_offset())
.into_py_any(py)?,
}
} else {
Expand Down

0 comments on commit b3bbab4

Please sign in to comment.