17
0

5 Commits

Author SHA256 Message Date
03a9522f3f Accepting request 1307110 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1307110
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=121
2025-09-29 14:30:43 +00:00
f732220c95 Accepting request 1307109 from home:dgarcia:branches:devel:languages:python:numeric
- Skip a couple of tests that fails with the latest ghostscript
Should fix the problem in Staging:E

OBS-URL: https://build.opensuse.org/request/show/1307109
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-matplotlib?expand=0&rev=127
2025-09-25 12:38:41 +00:00
211fd9c28b Accepting request 1305787 from home:mcalabkova:branches:devel:languages:python:numeric
- Update to 3.10.6
  * Fix regression of hi-dpi support for Qt
  * Fix race condition in TexManager.make_dvi & make_png
  * Various documentation and other bugfixes

OBS-URL: https://build.opensuse.org/request/show/1305787
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-matplotlib?expand=0&rev=126
2025-09-18 12:46:58 +00:00
f5bf298dd6 Accepting request 1300071 from devel:languages:python:numeric
This request should fix the Staging:H with newer python-numpy

- Update to 3.10.5
  * Bugfix release. No notable changes beyond the GitHub
    statistics of merged PRs.
    (https://matplotlib.org/stable/users/github_stats.html#github-stats)
- Remove "%python-numpy-devel < 2.3" BuildRequires upper limit
- Drop not needed patch Pillow-13-compat.patch

OBS-URL: https://build.opensuse.org/request/show/1300071
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=120
2025-08-18 15:30:48 +00:00
1885721efc - Update to 3.10.5
* Bugfix release. No notable changes beyond the GitHub
    statistics of merged PRs.
    (https://matplotlib.org/stable/users/github_stats.html#github-stats)
- Remove "%python-numpy-devel < 2.3" BuildRequires upper limit
- Drop not needed patch Pillow-13-compat.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-matplotlib?expand=0&rev=124
2025-08-18 13:05:02 +00:00
5 changed files with 31 additions and 44 deletions

View File

@@ -1,36 +0,0 @@
From 0b2fa3f952b6b97a121a3d7f05a0753b52b802cc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= <cr52@protonmail.com>
Date: Sat, 28 Jun 2025 11:39:49 +0200
Subject: [PATCH] BUG: fix future incompatibility with Pillow 13
---
lib/matplotlib/backends/_backend_tk.py | 2 +-
lib/matplotlib/backends/backend_pdf.py | 2 ++-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/matplotlib/backends/_backend_tk.py b/lib/matplotlib/backends/_backend_tk.py
index 0bbff1379ffa..eaf868fd8bec 100644
--- a/lib/matplotlib/backends/_backend_tk.py
+++ b/lib/matplotlib/backends/_backend_tk.py
@@ -775,7 +775,7 @@ def _recolor_icon(image, color):
image_data = np.asarray(image).copy()
black_mask = (image_data[..., :3] == 0).all(axis=-1)
image_data[black_mask, :3] = color
- return Image.fromarray(image_data, mode="RGBA")
+ return Image.fromarray(image_data)
# Use the high-resolution (48x48 px) icon if it exists and is needed
with Image.open(path_large if (size > 24 and path_large.exists())
diff --git a/lib/matplotlib/backends/backend_pdf.py b/lib/matplotlib/backends/backend_pdf.py
index f20bdffd4a3a..4429dc9ba707 100644
--- a/lib/matplotlib/backends/backend_pdf.py
+++ b/lib/matplotlib/backends/backend_pdf.py
@@ -1784,7 +1784,7 @@ def _writeImg(self, data, id, smask=None):
data[:, :, 2])
indices = np.argsort(palette24).astype(np.uint8)
rgb8 = indices[np.searchsorted(palette24, rgb24, sorter=indices)]
- img = Image.fromarray(rgb8, mode='P')
+ img = Image.fromarray(rgb8).convert("P")
img.putpalette(palette)
png_data, bit_depth, palette = self._writePng(img)
if bit_depth is None or palette is None:

BIN
matplotlib-3.10.3.tar.gz (Stored with Git LFS)

Binary file not shown.

3
matplotlib-3.10.6.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ec01b645840dd1996df21ee37f208cd8ba57644779fa20464010638013d3203c
size 34804264

View File

@@ -1,3 +1,26 @@
-------------------------------------------------------------------
Thu Sep 25 12:01:16 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Skip a couple of tests that fails with the latest ghostscript
-------------------------------------------------------------------
Thu Sep 18 11:39:49 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 3.10.6
* Fix regression of hi-dpi support for Qt
* Fix race condition in TexManager.make_dvi & make_png
* Various documentation and other bugfixes
-------------------------------------------------------------------
Mon Aug 18 11:18:14 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Update to 3.10.5
* Bugfix release. No notable changes beyond the GitHub
statistics of merged PRs.
(https://matplotlib.org/stable/users/github_stats.html#github-stats)
- Remove "%python-numpy-devel < 2.3" BuildRequires upper limit
- Drop not needed patch Pillow-13-compat.patch
-------------------------------------------------------------------
Thu Jul 3 07:36:25 UTC 2025 - Nico Krapp <nico.krapp@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-matplotlib
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -46,7 +46,7 @@ ExclusiveArch: x86_64 aarch64
%{?sle15_python_module_pythons}
Name: python-matplotlib%{psuffix}
Version: 3.10.3
Version: 3.10.6
Release: 0
Summary: Plotting Library for Python
License: SUSE-Matplotlib
@@ -59,8 +59,6 @@ Source99: https://downloads.sourceforge.net/project/freetype/freetype2/2.6
Source100: python-matplotlib.rpmlintrc
# PATCH-FEATURE-OPENSUSE matplotlib-meson-options-opensuse.patch code@bnavigator.de -- Custom build options for meson-python
Patch1: matplotlib-meson-options-opensuse.patch
# PATCH-FIX-UPSTREAM Pillow-13-compat.patch https://github.com/matplotlib/matplotlib/pull/30221
Patch2: Pillow-13-compat.patch
Recommends: ghostscript
Recommends: libxml2-tools
Recommends: poppler-tools
@@ -71,7 +69,7 @@ Obsoletes: python-matplotlib-gtk < %{version}
# SECTION build
BuildRequires: %{python_module devel >= 3.9}
BuildRequires: %{python_module meson-python >= 0.13.1}
BuildRequires: %{python_module numpy-devel >= 1.25 with %python-numpy-devel < 2.3}
BuildRequires: %{python_module numpy-devel >= 1.25}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pybind11-devel >= 2.6}
BuildRequires: %{python_module setuptools_scm >= 7}
@@ -358,6 +356,8 @@ skip_tests+=" or png or svg or pdf"
%endif
# test failure with texlive 2025 https://github.com/matplotlib/matplotlib/issues/29790
skip_tests+=" or (test_backend_pgf and test_rcupdate)"
# test failures with newer ghostscript
skip_tests+=" or test_bbox_inches_tight_raster[pdf] or test_interp_nearest_vs_none[pdf]"
# Fails in SLFO:Main
%if 0%{?suse_version} <= %SLE_VERSION