Accepting request 1187906 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1187906 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pandas?expand=0&rev=67
This commit is contained in:
commit
45d1f08bf7
29
pandas-pr59175-matplotlib.patch
Normal file
29
pandas-pr59175-matplotlib.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From d4e803caf7aabd464f6fb1d43ef39903911a3cec Mon Sep 17 00:00:00 2001
|
||||
From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
|
||||
Date: Wed, 3 Jul 2024 06:45:24 -1000
|
||||
Subject: [PATCH] Backport PR #59168: TST: Address UserWarning in matplotlib
|
||||
test
|
||||
|
||||
---
|
||||
pandas/plotting/_matplotlib/core.py | 8 +++++++-
|
||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/pandas/plotting/_matplotlib/core.py b/pandas/plotting/_matplotlib/core.py
|
||||
index 2979903edf360..52382d9f7d572 100644
|
||||
--- a/pandas/plotting/_matplotlib/core.py
|
||||
+++ b/pandas/plotting/_matplotlib/core.py
|
||||
@@ -893,7 +893,13 @@ def _make_legend(self) -> None:
|
||||
elif self.subplots and self.legend:
|
||||
for ax in self.axes:
|
||||
if ax.get_visible():
|
||||
- ax.legend(loc="best")
|
||||
+ with warnings.catch_warnings():
|
||||
+ warnings.filterwarnings(
|
||||
+ "ignore",
|
||||
+ "No artists with labels found to put in legend.",
|
||||
+ UserWarning,
|
||||
+ )
|
||||
+ ax.legend(loc="best")
|
||||
|
||||
@final
|
||||
@staticmethod
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 11 09:51:36 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Add pandas-pr59175-matplotlib.patch -- gh#pandas-dev/pandas#59175
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun May 12 17:57:39 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
|
@ -71,12 +71,12 @@ URL: https://pandas.pydata.org/
|
||||
Source0: pandas-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM pandas-pr58269-pyarrow16xpass.patch -- gh#pandas-dev/pandas#58269
|
||||
Patch0: pandas-pr58269-pyarrow16xpass.patch
|
||||
# PATCH-FIX-UPSTREAM pandas-pr58720-xarray-dp.patch gh#pandas-dev/pandas!58720 mcepl@suse.com
|
||||
# make pandas compatible with the modern xarray
|
||||
# PATCH-FIX-UPSTREAM pandas-pr58720-xarray-dp.patch -- gh#pandas-dev/pandas#58720 mcepl@suse.com, make pandas compatible with the modern xarray
|
||||
Patch1: pandas-pr58720-xarray-dp.patch
|
||||
# PATCH-FIX-UPSTREAM pandas-pr58484-matplotlib.patch gh#pandas-dev/pandas!58484 mcepl@suse.com
|
||||
# make pandas compatible with the modern matplotlib
|
||||
# PATCH-FIX-UPSTREAM pandas-pr58484-matplotlib.patch -- gh#pandas-dev/pandas#58484 mcepl@suse.com, make pandas compatible with the modern matplotlib
|
||||
Patch2: pandas-pr58484-matplotlib.patch
|
||||
# PATCH-FIX-UPSTREAM pandas-pr59175-matplotlib.patch -- gh#pandas-dev/pandas#59175
|
||||
Patch3: https://github.com/pandas-dev/pandas/pull/59175.patch#/pandas-pr59175-matplotlib.patch
|
||||
%if !%{with test}
|
||||
BuildRequires: %{python_module Cython >= 3.0.5}
|
||||
BuildRequires: %{python_module devel >= 3.9}
|
||||
@ -514,8 +514,6 @@ SKIP_TESTS+=" or test_psycopg2_schema_support"
|
||||
SKIP_TESTS+=" or test_self_join_date_columns"
|
||||
# expects a dirty git revision from git repo
|
||||
SKIP_TESTS+=" or test_git_version"
|
||||
# gh#pandas-dev/pandas#58851 conflict with matplotlib 3.9.0
|
||||
SKIP_TESTS+=" or test_plot_scatter_shape"
|
||||
%if "%{flavor}" == "test-py312"
|
||||
# https://github.com/pandas-dev/pandas/pull/57391, proposed change is not necessary the right one
|
||||
SKIP_TESTS+=" or (test_scalar_unary and numexpr-pandas)"
|
||||
|
Loading…
Reference in New Issue
Block a user