Update to latest version (#2402615)
This commit is contained in:
@@ -121,3 +121,4 @@ matplotlib-1.0.0-without-gpc.tar.gz
|
|||||||
/matplotlib-3.10.3-with-freetype-2.13.1.tar.gz
|
/matplotlib-3.10.3-with-freetype-2.13.1.tar.gz
|
||||||
/matplotlib-3.10.5.tar.gz
|
/matplotlib-3.10.5.tar.gz
|
||||||
/matplotlib-3.10.6.tar.gz
|
/matplotlib-3.10.6.tar.gz
|
||||||
|
/matplotlib-3.10.8.tar.gz
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From ed6c1cf2cf5ca2cb2f509b9a8368e44bac9f6d65 Mon Sep 17 00:00:00 2001
|
From 3c225cf3905d734a27df25e3a53a904a55f2904e Mon Sep 17 00:00:00 2001
|
||||||
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
From: Sandro Tosi <morph@debian.org>
|
||||||
Date: Wed, 27 Sep 2017 19:35:59 -0400
|
Date: Wed, 27 Sep 2017 19:35:59 -0400
|
||||||
Subject: [PATCH 1/6] matplotlibrc path search fix
|
Subject: [PATCH 1/5] matplotlibrc path search fix
|
||||||
|
|
||||||
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
---
|
---
|
||||||
@@ -115,5 +115,5 @@ index 87ed794022..9d80539114 100644
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def format_shortcut(key_sequence):
|
def format_shortcut(key_sequence):
|
||||||
--
|
--
|
||||||
2.50.0
|
2.52.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From d0b60f84a490052a1a35fdc0ea850ccb3db1e140 Mon Sep 17 00:00:00 2001
|
From 7b4e2945933049429d00d6f3900d2cdf992c80df Mon Sep 17 00:00:00 2001
|
||||||
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
Date: Fri, 14 Feb 2020 06:05:42 -0500
|
Date: Fri, 14 Feb 2020 06:05:42 -0500
|
||||||
Subject: [PATCH 2/6] Set FreeType version to 2.13.1 and update tolerances
|
Subject: [PATCH 2/5] Set FreeType version to 2.13.1 and update tolerances
|
||||||
|
|
||||||
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
---
|
---
|
||||||
@@ -123,5 +123,5 @@ index 844ab8cf3a..826a8a0c3a 100644
|
|||||||
|
|
||||||
@check_figures_equal(extensions=["png"])
|
@check_figures_equal(extensions=["png"])
|
||||||
--
|
--
|
||||||
2.50.0
|
2.52.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From 416cea131ba808a8f92362e472df2861a284f527 Mon Sep 17 00:00:00 2001
|
From a05766154a8aa81691f3318b706d286bb87fb1c6 Mon Sep 17 00:00:00 2001
|
||||||
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
Date: Fri, 13 Dec 2024 02:03:33 -0500
|
Date: Fri, 13 Dec 2024 02:03:33 -0500
|
||||||
Subject: [PATCH 3/6] Unpin meson-python build requirement
|
Subject: [PATCH 3/5] Unpin meson-python build requirement
|
||||||
|
|
||||||
This is pinned to fix sdists, but we already have one and are building a
|
This is pinned to fix sdists, but we already have one and are building a
|
||||||
wheel, which should be fine.
|
wheel, which should be fine.
|
||||||
@@ -12,10 +12,10 @@ Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/pyproject.toml b/pyproject.toml
|
diff --git a/pyproject.toml b/pyproject.toml
|
||||||
index e6d1abaf53..76755eec25 100644
|
index 23c441b52c..f762c85d98 100644
|
||||||
--- a/pyproject.toml
|
--- a/pyproject.toml
|
||||||
+++ b/pyproject.toml
|
+++ b/pyproject.toml
|
||||||
@@ -47,7 +47,7 @@ requires-python = ">=3.10"
|
@@ -48,7 +48,7 @@ requires-python = ">=3.10"
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
# Should be a copy of the build dependencies below.
|
# Should be a copy of the build dependencies below.
|
||||||
dev = [
|
dev = [
|
||||||
@@ -24,7 +24,7 @@ index e6d1abaf53..76755eec25 100644
|
|||||||
"pybind11>=2.13.2,!=2.13.3",
|
"pybind11>=2.13.2,!=2.13.3",
|
||||||
"setuptools_scm>=7",
|
"setuptools_scm>=7",
|
||||||
# Not required by us but setuptools_scm without a version, cso _if_
|
# Not required by us but setuptools_scm without a version, cso _if_
|
||||||
@@ -71,7 +71,7 @@ dev = [
|
@@ -72,7 +72,7 @@ dev = [
|
||||||
build-backend = "mesonpy"
|
build-backend = "mesonpy"
|
||||||
# Also keep in sync with optional dependencies above.
|
# Also keep in sync with optional dependencies above.
|
||||||
requires = [
|
requires = [
|
||||||
@@ -34,5 +34,5 @@ index e6d1abaf53..76755eec25 100644
|
|||||||
"setuptools_scm>=7",
|
"setuptools_scm>=7",
|
||||||
]
|
]
|
||||||
--
|
--
|
||||||
2.50.0
|
2.52.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From 376aa273a2df3b3937cc2f5124d9db1d0aef3945 Mon Sep 17 00:00:00 2001
|
From 9522bbb8e713e167581e705dc4f8c4364b05da2d Mon Sep 17 00:00:00 2001
|
||||||
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
Date: Mon, 22 Aug 2022 18:43:28 -0400
|
Date: Mon, 22 Aug 2022 18:43:28 -0400
|
||||||
Subject: [PATCH 4/6] Use old stride_windows implementation on 32-bit x86
|
Subject: [PATCH 4/5] Use old stride_windows implementation on 32-bit x86
|
||||||
|
|
||||||
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
---
|
---
|
||||||
@@ -80,5 +80,5 @@ index 8326ac186e..bdaa34b734 100644
|
|||||||
resultY = resultY * window.reshape((-1, 1))
|
resultY = resultY * window.reshape((-1, 1))
|
||||||
resultY = np.fft.fft(resultY, n=pad_to, axis=0)[:numFreqs, :]
|
resultY = np.fft.fft(resultY, n=pad_to, axis=0)[:numFreqs, :]
|
||||||
--
|
--
|
||||||
2.50.0
|
2.52.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From fc49cee6c821e5ff1cdbbc3d10e0e5f115685f54 Mon Sep 17 00:00:00 2001
|
From 5944097c27a6b65168a0287daeb9f7f9b8f9f7f3 Mon Sep 17 00:00:00 2001
|
||||||
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
Date: Tue, 12 Nov 2024 01:05:25 -0500
|
Date: Tue, 12 Nov 2024 01:05:25 -0500
|
||||||
Subject: [PATCH 5/6] Partially revert "TST: Fix minor issues in interactive
|
Subject: [PATCH 5/5] Partially revert "TST: Fix minor issues in interactive
|
||||||
backend test (#28838)"
|
backend test (#28838)"
|
||||||
|
|
||||||
This reverts commit 7c7f94c5f71e99f148255e3bb570fec25c8fe754.
|
This reverts commit 7c7f94c5f71e99f148255e3bb570fec25c8fe754.
|
||||||
@@ -12,7 +12,7 @@ Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|||||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/lib/matplotlib/tests/test_backends_interactive.py b/lib/matplotlib/tests/test_backends_interactive.py
|
diff --git a/lib/matplotlib/tests/test_backends_interactive.py b/lib/matplotlib/tests/test_backends_interactive.py
|
||||||
index 4e3c1bbc2b..903ae87cbb 100644
|
index 4e3c1bbc2b..cb8c458d0d 100644
|
||||||
--- a/lib/matplotlib/tests/test_backends_interactive.py
|
--- a/lib/matplotlib/tests/test_backends_interactive.py
|
||||||
+++ b/lib/matplotlib/tests/test_backends_interactive.py
|
+++ b/lib/matplotlib/tests/test_backends_interactive.py
|
||||||
@@ -232,7 +232,10 @@ def _test_interactive_impl():
|
@@ -232,7 +232,10 @@ def _test_interactive_impl():
|
||||||
@@ -28,5 +28,5 @@ index 4e3c1bbc2b..903ae87cbb 100644
|
|||||||
|
|
||||||
@pytest.mark.parametrize("env", _get_testable_interactive_backends())
|
@pytest.mark.parametrize("env", _get_testable_interactive_backends())
|
||||||
--
|
--
|
||||||
2.50.0
|
2.52.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,39 +0,0 @@
|
|||||||
From ee0bc9da534fb143c3bb1690dd45ced01df7def4 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
||||||
Date: Fri, 29 Aug 2025 23:58:54 -0400
|
|
||||||
Subject: [PATCH 6/6] TST: Use a temporary directory for
|
|
||||||
test_save_figure_return
|
|
||||||
|
|
||||||
This avoids having to manually clean up the resulting file, which seems
|
|
||||||
flaky.
|
|
||||||
|
|
||||||
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
||||||
---
|
|
||||||
lib/matplotlib/tests/test_backend_qt.py | 5 +++--
|
|
||||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/lib/matplotlib/tests/test_backend_qt.py b/lib/matplotlib/tests/test_backend_qt.py
|
|
||||||
index 962f5ce942..e191dd73eb 100644
|
|
||||||
--- a/lib/matplotlib/tests/test_backend_qt.py
|
|
||||||
+++ b/lib/matplotlib/tests/test_backend_qt.py
|
|
||||||
@@ -219,14 +219,15 @@ def test_figureoptions():
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.backend('QtAgg', skip_on_importerror=True)
|
|
||||||
-def test_save_figure_return():
|
|
||||||
+def test_save_figure_return(tmp_path):
|
|
||||||
+ os.chdir(tmp_path)
|
|
||||||
fig, ax = plt.subplots()
|
|
||||||
ax.imshow([[1]])
|
|
||||||
prop = "matplotlib.backends.qt_compat.QtWidgets.QFileDialog.getSaveFileName"
|
|
||||||
with mock.patch(prop, return_value=("foobar.png", None)):
|
|
||||||
fname = fig.canvas.manager.toolbar.save_figure()
|
|
||||||
- os.remove("foobar.png")
|
|
||||||
assert fname == "foobar.png"
|
|
||||||
+ assert (tmp_path / "foobar.png").exists()
|
|
||||||
with mock.patch(prop, return_value=(None, None)):
|
|
||||||
fname = fig.canvas.manager.toolbar.save_figure()
|
|
||||||
assert fname is None
|
|
||||||
--
|
|
||||||
2.50.0
|
|
||||||
|
|
||||||
-59
@@ -1,59 +0,0 @@
|
|||||||
From b843483d308ce1f8bb94e1449bdb2b77da9a327c Mon Sep 17 00:00:00 2001
|
|
||||||
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
||||||
Date: Tue, 21 Oct 2025 03:55:51 -0400
|
|
||||||
Subject: [PATCH] Backport PR #30657: Fix `AttributeError: module 'gi' has no
|
|
||||||
attribute 'require_version'`
|
|
||||||
|
|
||||||
---
|
|
||||||
lib/matplotlib/backends/backend_gtk3.py | 4 ++--
|
|
||||||
lib/matplotlib/backends/backend_gtk4.py | 5 +++--
|
|
||||||
2 files changed, 5 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/lib/matplotlib/backends/backend_gtk3.py b/lib/matplotlib/backends/backend_gtk3.py
|
|
||||||
index 888f5a770f5d..c27b57e36a0a 100644
|
|
||||||
--- a/lib/matplotlib/backends/backend_gtk3.py
|
|
||||||
+++ b/lib/matplotlib/backends/backend_gtk3.py
|
|
||||||
@@ -10,14 +10,14 @@
|
|
||||||
CloseEvent, KeyEvent, LocationEvent, MouseEvent, ResizeEvent)
|
|
||||||
|
|
||||||
try:
|
|
||||||
- import gi
|
|
||||||
+ from gi import require_version as gi_require_version
|
|
||||||
except ImportError as err:
|
|
||||||
raise ImportError("The GTK3 backends require PyGObject") from err
|
|
||||||
|
|
||||||
try:
|
|
||||||
# :raises ValueError: If module/version is already loaded, already
|
|
||||||
# required, or unavailable.
|
|
||||||
- gi.require_version("Gtk", "3.0")
|
|
||||||
+ gi_require_version("Gtk", "3.0")
|
|
||||||
except ValueError as e:
|
|
||||||
# in this case we want to re-raise as ImportError so the
|
|
||||||
# auto-backend selection logic correctly skips.
|
|
||||||
diff --git a/lib/matplotlib/backends/backend_gtk4.py b/lib/matplotlib/backends/backend_gtk4.py
|
|
||||||
index cd38968779ed..e3d3548c1cd1 100644
|
|
||||||
--- a/lib/matplotlib/backends/backend_gtk4.py
|
|
||||||
+++ b/lib/matplotlib/backends/backend_gtk4.py
|
|
||||||
@@ -9,19 +9,20 @@
|
|
||||||
KeyEvent, LocationEvent, MouseEvent, ResizeEvent, CloseEvent)
|
|
||||||
|
|
||||||
try:
|
|
||||||
- import gi
|
|
||||||
+ from gi import require_version as gi_require_version
|
|
||||||
except ImportError as err:
|
|
||||||
raise ImportError("The GTK4 backends require PyGObject") from err
|
|
||||||
|
|
||||||
try:
|
|
||||||
# :raises ValueError: If module/version is already loaded, already
|
|
||||||
# required, or unavailable.
|
|
||||||
- gi.require_version("Gtk", "4.0")
|
|
||||||
+ gi_require_version("Gtk", "4.0")
|
|
||||||
except ValueError as e:
|
|
||||||
# in this case we want to re-raise as ImportError so the
|
|
||||||
# auto-backend selection logic correctly skips.
|
|
||||||
raise ImportError(e) from e
|
|
||||||
|
|
||||||
+import gi
|
|
||||||
from gi.repository import Gio, GLib, Gtk, Gdk, GdkPixbuf
|
|
||||||
from . import _backend_gtk
|
|
||||||
from ._backend_gtk import ( # noqa: F401 # pylint: disable=W0611
|
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
%global ftver 2.13.1
|
%global ftver 2.13.1
|
||||||
|
|
||||||
Name: python-matplotlib
|
Name: python-matplotlib
|
||||||
Version: 3.10.6
|
Version: 3.10.8
|
||||||
%global Version %{version_no_tilde %{quote:%nil}}
|
%global Version %{version_no_tilde %{quote:%nil}}
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Python 2D plotting library
|
Summary: Python 2D plotting library
|
||||||
@@ -65,12 +65,6 @@ Patch0001: 0004-Use-old-stride_windows-implementation-on-32-bit-x86.patch
|
|||||||
# Temporary fix for some tests.
|
# Temporary fix for some tests.
|
||||||
Patch0002: 0005-Partially-revert-TST-Fix-minor-issues-in-interactive.patch
|
Patch0002: 0005-Partially-revert-TST-Fix-minor-issues-in-interactive.patch
|
||||||
|
|
||||||
# https://github.com/matplotlib/matplotlib/pull/30497
|
|
||||||
Patch0003: 0006-TST-Use-a-temporary-directory-for-test_save_figure_r.patch
|
|
||||||
|
|
||||||
# Fix AttributeError: module 'gi' has no attribute 'require_version'
|
|
||||||
Patch0004: https://github.com/matplotlib/matplotlib/pull/30675.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: glibc-langpack-en
|
BuildRequires: glibc-langpack-en
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
SHA512 (matplotlib-3.10.6.tar.gz) = c12686d52229bbbd3c16fa5b1d633a7a6eec8e9bae58221554dc3d9595ceae05f985ebb3207425ad2e134e4dae671f590225b1d692b66c2099dd78da13cc6332
|
SHA512 (matplotlib-3.10.8.tar.gz) = 66d07fb0b13821e88f6e6fe9f9882542340c074198dce7d5f8bf5d65d1c64326ae7517ad38d6357491c54aedd8cd1b03f555ad6d9337754db5dbd43c6305ab3f
|
||||||
SHA512 (matplotlib-3.10.3-with-freetype-2.13.1.tar.gz) = bb32e57bbd341c652d03361e3785145a9e89f59709eb588882f81cba4061c8aa7250c0d46ed07a588d75a055d72bbc6126c59e8777634385a458287f6ef8812f
|
SHA512 (matplotlib-3.10.3-with-freetype-2.13.1.tar.gz) = bb32e57bbd341c652d03361e3785145a9e89f59709eb588882f81cba4061c8aa7250c0d46ed07a588d75a055d72bbc6126c59e8777634385a458287f6ef8812f
|
||||||
|
|||||||
Reference in New Issue
Block a user