1
0

Accepting request 1197749 from devel:languages:python:jupyter

- Update to 6.29.5
  * Fix use of "%matplotlib osx" #1237 (@ianthomas23)
- Drop ignore-ipython-deprecationwarning.patch

OBS-URL: https://build.opensuse.org/request/show/1197749
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipykernel?expand=0&rev=50
This commit is contained in:
Dominique Leuenberger 2024-09-01 17:20:53 +00:00 committed by Git OBS Bridge
commit cd8a64f260
5 changed files with 11 additions and 32 deletions

View File

@ -1,25 +0,0 @@
From e2827a6ee80767a815b1f9a6b913faf4f2b731c4 Mon Sep 17 00:00:00 2001
From: Steve Kowalik <steven@wedontsleep.org>
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 <socket.socket:ResourceWarning",

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3d44070060f9475ac2092b760123fadf105d2e2493c24848b6691a7c4f42af5c
size 162958

3
ipykernel-6.29.5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f093a22c4a40f8828f8e330a9c297cb93dcab13bd9678ded6de8e5cf81c56215
size 163367

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Aug 30 09:27:37 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Update to 6.29.5
* Fix use of "%matplotlib osx" #1237 (@ianthomas23)
- Drop ignore-ipython-deprecationwarning.patch
-------------------------------------------------------------------
Tue May 28 06:16:03 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@ -18,14 +18,12 @@
%{?sle15_python_module_pythons}
Name: python-ipykernel
Version: 6.29.4
Version: 6.29.5
Release: 0
Summary: IPython Kernel for Jupyter
License: BSD-3-Clause
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}}
@ -91,7 +89,6 @@ This package provides the IPython kernel for Jupyter.
%prep
%autosetup -p1 -n ipykernel-%{version}
sed -i -e 's/, "--color=yes"//' pyproject.toml
sed -i -e '/ignore:.* current event loop:DeprecationWarning/ a \ "ignore:pytest-asyncio detected an unclosed event loop:DeprecationWarning",' pyproject.toml
%build
%pyproject_wheel