public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-metakernel] rawhide: Ignore DeprecationWarning from Python 3.15
@ 2026-06-05 20:42 Mattias Ellert
  0 siblings, 0 replies; only message in thread
From: Mattias Ellert @ 2026-06-05 20:42 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-metakernel
Branch : rawhide
Commit : a5ef023859bc9c5928434aa029169b7a9e45d930
Author : Mattias Ellert <mattias.ellert@physics.uu.se>
Date   : 2026-06-05T22:41:55+02:00
Stats  : +31/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-metakernel/c/a5ef023859bc9c5928434aa029169b7a9e45d930?branch=rawhide

Log:
Ignore DeprecationWarning from Python 3.15

---
diff --git a/0001-Ignore-DeprecationWarning-from-Python-3.15.patch b/0001-Ignore-DeprecationWarning-from-Python-3.15.patch
new file mode 100644
index 0000000..879f602
--- /dev/null
+++ b/0001-Ignore-DeprecationWarning-from-Python-3.15.patch
@@ -0,0 +1,25 @@
+From 530590b5a05e59e2bbccfd836bf1265e42738b84 Mon Sep 17 00:00:00 2001
+From: Mattias Ellert <mattias.ellert@physics.uu.se>
+Date: Mon, 4 May 2026 21:14:36 +0200
+Subject: [PATCH] Ignore DeprecationWarning from Python 3.15
+
+---
+ pyproject.toml | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 1ea1bdc..5341606 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -100,6 +100,8 @@ filterwarnings= [
+   "module:'setParseAction' deprecated - use 'set_parse_action':DeprecationWarning",
+   # This is resolved in newer versions of Jupyter Core that removed the warning.
+   "module:Jupyter is migrating its paths:DeprecationWarning",
++  # Warning from Python 3.15 (/usr/lib64/python3.15/pty.py)
++  "module:This process \\(pid=.*\\) is multi-threaded, use of forkpty\\(\\) may lead to deadlocks in the child:DeprecationWarning:pty",
+ ]
+ 
+ [tool.coverage.report]
+-- 
+2.54.0
+

diff --git a/python-metakernel.spec b/python-metakernel.spec
index d97d01e..7486286 100644
--- a/python-metakernel.spec
+++ b/python-metakernel.spec
@@ -12,6 +12,8 @@ Summary:	Metakernel for Jupyter
 License:	BSD-3-Clause
 URL:		https://github.com/Calysto/metakernel
 Source0:	%{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+#		https://github.com/Calysto/metakernel/pull/439
+Patch0:		0001-Ignore-DeprecationWarning-from-Python-3.15.patch
 BuildArch:	noarch
 
 #		For metakernel_echo and metakernel_python
@@ -69,6 +71,7 @@ A simple echo kernel for Jupyter/IPython, based on MetaKernel.
 
 %prep
 %setup -q -n metakernel-%{pkgversion}
+%patch -P0 -p1
 
 # Allow older pytest versions
 sed -e /minversion/d -e /strict/d -i pyproject.toml
@@ -123,6 +126,9 @@ wait $pid
 %{_datadir}/jupyter/kernels/metakernel_echo
 
 %changelog
+* Fri Jun 05 2026 Mattias Ellert <mattias.ellert@physics.uu.se> - 1.0.4-2
+- Ignore DeprecationWarning from Python 3.15
+
 * Thu Jun 04 2026 Python Maint <python-maint@redhat.com> - 1.0.4-2
 - Rebuilt for Python 3.15
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-05 20:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-05 20:42 [rpms/python-metakernel] rawhide: Ignore DeprecationWarning from Python 3.15 Mattias Ellert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox