Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-mplcursors for 
openSUSE:Factory checked in at 2024-01-03 12:27:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mplcursors (Old)
 and      /work/SRC/openSUSE:Factory/.python-mplcursors.new.28375 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-mplcursors"

Wed Jan  3 12:27:06 2024 rev:8 rq:1135865 version:0.5.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-mplcursors/python-mplcursors.changes      
2023-01-10 15:00:34.401465348 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-mplcursors.new.28375/python-mplcursors.changes
   2024-01-03 12:27:07.688167679 +0100
@@ -1,0 +2,6 @@
+Fri Dec 29 21:21:45 UTC 2023 - Ben Greiner <c...@bnavigator.de>
+
+- Add mplcursors-fix-stem-api.patch, fixing API change in
+  Matplotlib 3.8
+
+-------------------------------------------------------------------

New:
----
  mplcursors-fix-stem-api.patch

BETA DEBUG BEGIN:
  New:
- Add mplcursors-fix-stem-api.patch, fixing API change in
  Matplotlib 3.8
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-mplcursors.spec ++++++
--- /var/tmp/diff_new_pack.BmBZTP/_old  2024-01-03 12:27:08.484196748 +0100
+++ /var/tmp/diff_new_pack.BmBZTP/_new  2024-01-03 12:27:08.484196748 +0100
@@ -16,7 +16,6 @@
 #
 
 
-%define         skip_python2 1
 Name:           python-mplcursors
 Version:        0.5.2
 Release:        0
@@ -24,6 +23,8 @@
 License:        MIT
 URL:            https://github.com/anntzer/mplcursors
 Source:         
https://files.pythonhosted.org/packages/source/m/mplcursors/mplcursors-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM mplcursors-fix-stem-api.patch main branch -- fix 
Matplotlib 3.8 API change
+Patch0:         
https://github.com/anntzer/mplcursors/commit/689b4adefaf0302a9338bb28bd3c3f0ef1c95ce7.patch#/mplcursors-fix-stem-api.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}

++++++ mplcursors-fix-stem-api.patch ++++++
>From 689b4adefaf0302a9338bb28bd3c3f0ef1c95ce7 Mon Sep 17 00:00:00 2001
From: Antony Lee <anntzer....@gmail.com>
Date: Thu, 6 Apr 2023 19:56:52 +0200
Subject: [PATCH] Fix tests re: stem API changes.

---
 tests/test_mplcursors.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/test_mplcursors.py b/tests/test_mplcursors.py
index 7ac6659..56fe85d 100644
--- a/tests/test_mplcursors.py
+++ b/tests/test_mplcursors.py
@@ -387,8 +387,11 @@ def test_dataless_errorbar(ax):
 
 
 def test_stem(ax):
-    with pytest.warns(None):  # stem use_line_collection API change.
-        ax.stem([1, 2, 3], use_line_collection=True)
+    try:  # stem use_line_collection API change.
+        with pytest.warns(None):
+            ax.stem([1, 2, 3], use_line_collection=True)
+    except TypeError:
+        ax.stem([1, 2, 3])
     cursor = mplcursors.cursor()
     assert len(cursor.artists) == 1
     _process_event("__mouse_click__", ax, (.5, .5), 1)

Reply via email to