From f05d358aa2e96a50b1f8d4f61b2cfa4be9b2310d2b7adb72b0beb8bd3e763ff7 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 28 May 2024 06:17:05 +0000 Subject: [PATCH] - Add patch ignore-ipython-deprecationwarning.patch: * Ignore DeprecationWarning raised by IPython 8.24+. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipykernel?expand=0&rev=107 --- ignore-ipython-deprecationwarning.patch | 25 +++++++++++++++++++++++++ python-ipykernel.changes | 6 ++++++ python-ipykernel.spec | 3 ++- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 ignore-ipython-deprecationwarning.patch diff --git a/ignore-ipython-deprecationwarning.patch b/ignore-ipython-deprecationwarning.patch new file mode 100644 index 0000000..e202cb0 --- /dev/null +++ b/ignore-ipython-deprecationwarning.patch @@ -0,0 +1,25 @@ +From e2827a6ee80767a815b1f9a6b913faf4f2b731c4 Mon Sep 17 00:00:00 2001 +From: Steve Kowalik +Date: Tue, 28 May 2024 15:49:36 +1000 +Subject: [PATCH] Catch IPython 8.24 DeprecationWarnings + +test_pylab with IPython 8.24 and above raises DeprecationWarnings about +backend{s,2gui} being deprecated, causing test failures. Add them into +the IPython list so they are ignored. +--- + pyproject.toml | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/pyproject.toml b/pyproject.toml +index cdf265f6..d9481564 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -172,6 +172,8 @@ filterwarnings= [ + + # IPython warnings + "ignore: `Completer.complete` is pending deprecation since IPython 6.0 and will be replaced by `Completer.completions`:PendingDeprecationWarning", ++ "ignore: backends is deprecated since IPython 8.24, backends are managed in matplotlib and can be externally registered.:DeprecationWarning", ++ "ignore: backend2gui is deprecated since IPython 8.24, backends are managed in matplotlib and can be externally registered.:DeprecationWarning", + + # Ignore jupyter_client warnings + "ignore:unclosed + +- Add patch ignore-ipython-deprecationwarning.patch: + * Ignore DeprecationWarning raised by IPython 8.24+. + ------------------------------------------------------------------- Sun May 5 18:01:26 UTC 2024 - Ben Greiner diff --git a/python-ipykernel.spec b/python-ipykernel.spec index e8d6200..39e6143 100644 --- a/python-ipykernel.spec +++ b/python-ipykernel.spec @@ -22,9 +22,10 @@ Version: 6.29.4 Release: 0 Summary: IPython Kernel for Jupyter License: BSD-3-Clause -Group: Development/Languages/Python URL: https://github.com/ipython/ipykernel Source: https://files.pythonhosted.org/packages/source/i/ipykernel/ipykernel-%{version}.tar.gz +# PATCH-FIX-UPSTREAM gh#ipython/ipykernel#1242 +Patch0: ignore-ipython-deprecationwarning.patch Provides: python-jupyter_ipykernel = %{version} Obsoletes: python-jupyter_ipykernel < %{version} Provides: %{python_module ipykernel-doc = %{version}}