Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-matplotlib for 
openSUSE:Factory checked in at 2026-08-27 18:49:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-matplotlib (Old)
 and      /work/SRC/openSUSE:Factory/.python-matplotlib.new.1265 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-matplotlib"

Thu Aug 27 18:49:56 2026 rev:132 rq:1373607 version:3.10.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-matplotlib/python-matplotlib.changes      
2026-04-28 11:53:04.529307185 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-matplotlib.new.1265/python-matplotlib.changes
    2026-08-27 18:50:05.799905292 +0200
@@ -1,0 +2,5 @@
+Tue Aug 25 11:19:55 UTC 2026 - Markéta Machová <[email protected]>
+
+- Add upstream np25.patch to fix tests with numpy 2.5
+
+-------------------------------------------------------------------

New:
----
  np25.patch

----------(New B)----------
  New:
- Add upstream np25.patch to fix tests with numpy 2.5
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-matplotlib.spec ++++++
--- /var/tmp/diff_new_pack.XMXtzM/_old  2026-08-27 18:50:07.529965517 +0200
+++ /var/tmp/diff_new_pack.XMXtzM/_new  2026-08-27 18:50:07.532965622 +0200
@@ -59,6 +59,8 @@
 Patch1:         matplotlib-meson-options-opensuse.patch
 # PATCH-FIX-UPSTREAM https://github.com/matplotlib/matplotlib/pull/30918 TST: 
account for asyncio changes in py314
 Patch2:         py314.patch
+# PATCH-FIX-UPSTREAM https://github.com/matplotlib/matplotlib/pull/31554 BUG: 
avoid a deprecation warning from numpy 2.5 (calling datetime64('NaT') without a 
unit is deprecated)
+Patch3:         np25.patch
 Recommends:     ghostscript
 Recommends:     libxml2-tools
 Recommends:     poppler-tools

++++++ np25.patch ++++++
>From cf3aacfe162e6a7a6961a688940b88e3510f3208 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= <[email protected]>
Date: Thu, 23 Apr 2026 22:49:46 +0200
Subject: [PATCH] BUG: avoid a deprecation warning from numpy 2.5 (calling
 `datetime64('NaT')` without a unit is deprecated) (#31554)

* BUG: avoid a deprecation warning from numpy 2.5 (calling `datetime64('NaT')` 
without a unit is deprecated)

Co-authored-by: Tim Hoffmann <[email protected]>
---
 lib/matplotlib/dates.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/matplotlib/dates.py b/lib/matplotlib/dates.py
index f5f0918dcc13..77c803cde6e5 100644
--- a/lib/matplotlib/dates.py
+++ b/lib/matplotlib/dates.py
@@ -325,9 +325,7 @@ def _dt64_to_ordinalf(d):
     dt += extra.astype(np.float64) / 1.0e9
     dt = dt / SEC_PER_DAY
 
-    NaT_int = np.datetime64('NaT').astype(np.int64)
-    d_int = d.astype(np.int64)
-    dt[d_int == NaT_int] = np.nan
+    dt[np.isnat(d)] = np.nan
     return dt
 
 

Reply via email to