Skip to content

Commit 084c5e6

Browse files
bnavigatorbmwiedemann
authored andcommitted
Update python-pandas to version 2.2.3 / rev 75 via SR 1247472
https://build.opensuse.org/request/show/1247472 by user bnavigator + dimstar_suse - Support pyarrow 19 * Add pandas-pr60545-arrow-exception.patch gh#pandas-dev/pandas#60545 * Skip TestParquetPyArrow.test_roundtrip_decimal: Would require gh#pandas-dev/pandas#60755 and all other backports of the new string type system. (forwarded request 1247471 from bnavigator)
1 parent 36c4f19 commit 084c5e6

File tree

5 files changed

+52
-2
lines changed

5 files changed

+52
-2
lines changed

packages/p/python-pandas/.files

74 Bytes
Binary file not shown.

packages/p/python-pandas/.rev

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,4 +782,17 @@ All packages broken by this update should be fixed now.</comment>
782782
<comment></comment>
783783
<requestid>1244272</requestid>
784784
</revision>
785+
<revision rev="75" vrev="5">
786+
<srcmd5>a0562dde237f220e00b20a4d68d7574c</srcmd5>
787+
<version>2.2.3</version>
788+
<time>1740170107</time>
789+
<user>dimstar_suse</user>
790+
<comment>- Support pyarrow 19
791+
* Add pandas-pr60545-arrow-exception.patch
792+
gh#pandas-dev/pandas#60545
793+
* Skip TestParquetPyArrow.test_roundtrip_decimal: Would require
794+
gh#pandas-dev/pandas#60755 and all other backports of the new
795+
string type system. (forwarded request 1247471 from bnavigator)</comment>
796+
<requestid>1247472</requestid>
797+
</revision>
785798
</revisionlist>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
From f97f5e107f145fd09133d21cb1902c84c936754c Mon Sep 17 00:00:00 2001
2+
From: Matthew Roeschke <[email protected]>
3+
Date: Wed, 11 Dec 2024 13:20:10 -0800
4+
Subject: [PATCH] Backport PR #60544: CI/TST: Use tm.external_error_raised for
5+
test_from_arrow_respecting_given_dtype_unsafe
6+
7+
---
8+
pandas/tests/extension/test_arrow.py | 2 +-
9+
1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+
diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py
12+
index 03ab7c7f1dad8..470ca0673c60e 100644
13+
--- a/pandas/tests/extension/test_arrow.py
14+
+++ b/pandas/tests/extension/test_arrow.py
15+
@@ -1637,7 +1637,7 @@ def test_from_arrow_respecting_given_dtype():
16+
17+
def test_from_arrow_respecting_given_dtype_unsafe():
18+
array = pa.array([1.5, 2.5], type=pa.float64())
19+
- with pytest.raises(pa.ArrowInvalid, match="Float value 1.5 was truncated"):
20+
+ with tm.external_error_raised(pa.ArrowInvalid):
21+
array.to_pandas(types_mapper={pa.float64(): ArrowDtype(pa.int64())}.get)
22+
23+

packages/p/python-pandas/python-pandas.changes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
-------------------------------------------------------------------
2+
Thu Feb 20 11:23:33 UTC 2025 - Ben Greiner <[email protected]>
3+
4+
- Support pyarrow 19
5+
* Add pandas-pr60545-arrow-exception.patch
6+
gh#pandas-dev/pandas#60545
7+
* Skip TestParquetPyArrow.test_roundtrip_decimal: Would require
8+
gh#pandas-dev/pandas#60755 and all other backports of the new
9+
string type system.
10+
111
-------------------------------------------------------------------
212
Fri Feb 7 18:40:46 UTC 2025 - Ben Greiner <[email protected]>
313

packages/p/python-pandas/python-pandas.spec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ URL: https://pandas.pydata.org/
7272
# SourceRepository: https://github.com/pandas-dev/pandas
7373
# Must be created by cloning through `osc service runall`: gh#pandas-dev/pandas#54903, gh#pandas-dev/pandas#54907
7474
Source0: pandas-%{version}.tar.gz
75+
# PATCH-FIX-UPSTREAM pandas-pr60545-arrow-exception.patch gh#pandas-dev/pandas#60545
76+
Patch0: https://github.com/pandas-dev/pandas/pull/60545.patch#/pandas-pr60545-arrow-exception.patch
7577
# PATCH-FIX-UPSTREAM pandas-pr60584-60586-mpl-vert.patch gh#pandas-dev/pandas#60584 gh#pandas-dev/pandas#60586
76-
Patch0: https://github.com/pandas-dev/pandas/pull/60586.patch#/pandas-pr60584-60586-mpl-vert.patch
78+
Patch1: https://github.com/pandas-dev/pandas/pull/60586.patch#/pandas-pr60584-60586-mpl-vert.patch
7779
%if !%{with test}
7880
BuildRequires: %{python_module Cython >= 3.0.5}
7981
BuildRequires: %{python_module devel >= 3.9}
@@ -522,8 +524,10 @@ SKIP_TESTS+=" or (test_scalar_unary and numexpr-pandas)"
522524
SKIP_TESTS+=" or test_array_inference[data7-expected7]"
523525
# numpy 2.1 issues?
524526
SKIP_TESTS+=" or test_frame_setitem_dask_array_into_new_col"
525-
# too new xarray https://github.com/pandas-dev/pandas/pull/60109
527+
# too new xarray, gh#pandas-dev/pandas#60109 backport too much
526528
SKIP_TESTS+=" or (TestDataFrameToXArray and test_to_xarray_index_types)"
529+
# too new pyarrow, gh#pandas-dev/pandas#60755 backport too much
530+
SKIP_TESTS+=" or (TestParquetPyArrow and test_roundtrip_decimal)"
527531

528532
%ifarch %{ix86} %{arm32}
529533
# https://github.com/pandas-dev/pandas/issues/31856

0 commit comments

Comments
 (0)