Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to pyo3 0.23.4 #287

Merged
merged 2 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading