Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-seaborn for openSUSE:Factory 
checked in at 2025-02-24 15:54:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-seaborn (Old)
 and      /work/SRC/openSUSE:Factory/.python-seaborn.new.1873 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-seaborn"

Mon Feb 24 15:54:38 2025 rev:24 rq:1248164 version:0.13.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-seaborn/python-seaborn.changes    
2024-07-09 20:05:30.988035056 +0200
+++ /work/SRC/openSUSE:Factory/.python-seaborn.new.1873/python-seaborn.changes  
2025-02-24 15:54:41.614113496 +0100
@@ -1,0 +2,5 @@
+Mon Feb 24 13:15:18 UTC 2025 - Markéta Machová <[email protected]>
+
+- Add upstream mpl-tick.patch to support matplotlib 3.10
+
+-------------------------------------------------------------------

New:
----
  mpl-tick.patch

BETA DEBUG BEGIN:
  New:
- Add upstream mpl-tick.patch to support matplotlib 3.10
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-seaborn.spec ++++++
--- /var/tmp/diff_new_pack.HTbRaO/_old  2025-02-24 15:54:43.150177657 +0100
+++ /var/tmp/diff_new_pack.HTbRaO/_new  2025-02-24 15:54:43.170178493 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-seaborn
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,8 @@
 Source:         
https://files.pythonhosted.org/packages/source/s/seaborn/seaborn-%{version}.tar.gz
 # PATCH-FIX-UPSTREAM gh#mwaskom/seaborn#3685
 Patch0:         support-numpy-2.patch
+# PATCH-FIX-UPSTREAM gh#mwaskom/seaborn#3802
+Patch1:         mpl-tick.patch
 BuildRequires:  %{python_module base >= 3.8}
 BuildRequires:  %{python_module flit-core >= 3.2}
 BuildRequires:  %{python_module matplotlib >= 3.6.2}

++++++ mpl-tick.patch ++++++
>From 385e54676ca16d0132434bc9df6bc41ea8b2a0d4 Mon Sep 17 00:00:00 2001
From: Michael Waskom <[email protected]>
Date: Mon, 16 Dec 2024 07:54:02 -0500
Subject: [PATCH] Fix tick visibility introspection on 3.10 (#3802)

---
 tests/_core/test_plot.py | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/tests/_core/test_plot.py b/tests/_core/test_plot.py
index 5554ea650f..50851646cf 100644
--- a/tests/_core/test_plot.py
+++ b/tests/_core/test_plot.py
@@ -1782,6 +1782,17 @@ def test_labels(self, long_df):
 
 class TestLabelVisibility:
 
+    def has_xaxis_labels(self, ax):
+        if _version_predates(mpl, "3.7"):
+            # mpl3.7 added a getter for tick params, but both yaxis and xaxis 
return
+            # the same entry of "labelleft" instead of "labelbottom" for xaxis
+            return len(ax.get_xticklabels()) > 0
+        elif _version_predates(mpl, "3.10"):
+            # Then I guess they made it labelbottom in 3.10?
+            return ax.xaxis.get_tick_params()["labelleft"]
+        else:
+            return ax.xaxis.get_tick_params()["labelbottom"]
+
     def test_single_subplot(self, long_df):
 
         x, y = "a", "z"
@@ -1852,12 +1863,7 @@ def test_1d_column_wrapped(self):
         for s in subplots[1:]:
             ax = s["ax"]
             assert ax.xaxis.get_label().get_visible()
-            # mpl3.7 added a getter for tick params, but both yaxis and xaxis 
return
-            # the same entry of "labelleft" instead of  "labelbottom" for xaxis
-            if not _version_predates(mpl, "3.7"):
-                assert ax.xaxis.get_tick_params()["labelleft"]
-            else:
-                assert len(ax.get_xticklabels()) > 0
+            assert self.has_xaxis_labels(ax)
             assert all(t.get_visible() for t in ax.get_xticklabels())
 
         for s in subplots[1:-1]:
@@ -1882,12 +1888,7 @@ def test_1d_row_wrapped(self):
         for s in subplots[-2:]:
             ax = s["ax"]
             assert ax.xaxis.get_label().get_visible()
-            # mpl3.7 added a getter for tick params, but both yaxis and xaxis 
return
-            # the same entry of "labelleft" instead of  "labelbottom" for xaxis
-            if not _version_predates(mpl, "3.7"):
-                assert ax.xaxis.get_tick_params()["labelleft"]
-            else:
-                assert len(ax.get_xticklabels()) > 0
+            assert self.has_xaxis_labels(ax)
             assert all(t.get_visible() for t in ax.get_xticklabels())
 
         for s in subplots[:-2]:

Reply via email to