Hello community,

here is the log from the commit of package python-seaborn for openSUSE:Factory 
checked in at 2019-06-04 12:13:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-seaborn (Old)
 and      /work/SRC/openSUSE:Factory/.python-seaborn.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-seaborn"

Tue Jun  4 12:13:11 2019 rev:8 rq:707322 version:0.9.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-seaborn/python-seaborn.changes    
2019-03-06 15:48:58.948425455 +0100
+++ /work/SRC/openSUSE:Factory/.python-seaborn.new.5148/python-seaborn.changes  
2019-06-04 12:13:34.167797625 +0200
@@ -1,0 +2,8 @@
+Mon Jun  3 19:34:12 UTC 2019 - Todd R <[email protected]>
+
+- Add fix_labels_rotation.patch
+  See gh#mwaskom/seaborn/#1598
+  Patch from gh#mwaskom/seaborn/#1716
+- Fix jupyter dependencies.
+
+-------------------------------------------------------------------

New:
----
  fix_labels_rotation.patch

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

Other differences:
------------------
++++++ python-seaborn.spec ++++++
--- /var/tmp/diff_new_pack.UpHsgA/_old  2019-06-04 12:13:36.055797006 +0200
+++ /var/tmp/diff_new_pack.UpHsgA/_new  2019-06-04 12:13:36.055797006 +0200
@@ -23,14 +23,16 @@
 Summary:        Statistical data visualization for python
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
-URL:            https://pypi.python.org/pypi/seaborn/
+URL:            https://github.com/mwaskom/seaborn
 Source:         
https://files.pythonhosted.org/packages/source/s/seaborn/seaborn-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM - fix_labels_rotation.patch - gh#mwaskom/seaborn/#1598 
gh#mwaskom/seaborn/#1716
+Patch0:         fix_labels_rotation.patch
 BuildRequires:  %{python_module Pillow}
 BuildRequires:  %{python_module fastcluster}
-BuildRequires:  %{python_module jupyter_ipython}
-BuildRequires:  %{python_module jupyter_notebook}
+BuildRequires:  %{python_module ipython}
 BuildRequires:  %{python_module matplotlib}
 BuildRequires:  %{python_module nose}
+BuildRequires:  %{python_module notebook}
 BuildRequires:  %{python_module numpy-devel}
 BuildRequires:  %{python_module pandas}
 BuildRequires:  %{python_module patsy}
@@ -79,6 +81,7 @@
 
 %prep
 %setup -q -n seaborn-%{version}
+%patch0 -p1
 
 %build
 %python_build

++++++ fix_labels_rotation.patch ++++++
>From c79041999278d0300ad946d00114c75ea8af7f26 Mon Sep 17 00:00:00 2001
From: Maoz Gelbart <[email protected]>
Date: Mon, 8 Apr 2019 10:44:42 +0300
Subject: [PATCH 1/2] fix grid ticklabels rotation

---
 seaborn/axisgrid.py | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py
index 6caf66b3..bbe3c53b 100644
--- a/seaborn/axisgrid.py
+++ b/seaborn/axisgrid.py
@@ -892,23 +892,27 @@ def set_ylabels(self, label=None, **kwargs):
         return self
 
     def set_xticklabels(self, labels=None, step=None, **kwargs):
-        """Set x axis tick labels on the bottom row of the grid."""
+        """Set x axis tick labels of the grid."""      
         for ax in self.axes.flat:
             if labels is None:
-                labels = [l.get_text() for l in ax.get_xticklabels()]
+                curr_labels = [l.get_text() for l in ax.get_xticklabels()]
                 if step is not None:
                     xticks = ax.get_xticks()[::step]
-                    labels = labels[::step]
+                    curr_labels = curr_labels[::step]
                     ax.set_xticks(xticks)
-            ax.set_xticklabels(labels, **kwargs)
+                ax.set_xticklabels(curr_labels, **kwargs)
+            else:
+                ax.set_xticklabels(labels, **kwargs)
         return self
 
     def set_yticklabels(self, labels=None, **kwargs):
         """Set y axis tick labels on the left column of the grid."""
         for ax in self.axes.flat:
             if labels is None:
-                labels = [l.get_text() for l in ax.get_yticklabels()]
-            ax.set_yticklabels(labels, **kwargs)
+                curr_labels = [l.get_text() for l in ax.get_yticklabels()]
+                ax.set_yticklabels(curr_labels, **kwargs)
+            else:
+                ax.set_yticklabels(labels, **kwargs)
         return self
 
     def set_titles(self, template=None, row_template=None,  col_template=None,

Reply via email to