public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-metakernel] f43: Support ipython < 9.16 for Fedora 43 and 44
@ 2026-08-17 12:18 Mattias Ellert
0 siblings, 0 replies; only message in thread
From: Mattias Ellert @ 2026-08-17 12:18 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-metakernel
Branch : f43
Commit : dcd802b73a1ba52a5e3a493fee081cc714daef6e
Author : Mattias Ellert <mattias.ellert@physics.uu.se>
Date : 2026-08-17T14:17:35+02:00
Stats : +68/-3 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-metakernel/c/dcd802b73a1ba52a5e3a493fee081cc714daef6e?branch=f43
Log:
Support ipython < 9.16 for Fedora 43 and 44
---
diff --git a/python-metakernel-old-ipython.patch b/python-metakernel-old-ipython.patch
new file mode 100644
index 0000000..fae09a5
--- /dev/null
+++ b/python-metakernel-old-ipython.patch
@@ -0,0 +1,57 @@
+diff --git a/metakernel/magic.py b/metakernel/magic.py
+index f16db3b..4aa2f8c 100644
+--- a/metakernel/magic.py
++++ b/metakernel/magic.py
+@@ -8,7 +8,7 @@ import sys
+ import traceback
+ from ast import literal_eval as safe_eval
+ from collections.abc import Callable
+-from typing import TYPE_CHECKING, Any, NoReturn, TypeVar
++from typing import TYPE_CHECKING, Any, NoReturn, TypeVar, cast
+
+ if TYPE_CHECKING:
+ from IPython.core.interactiveshell import InteractiveShell
+@@ -154,7 +154,7 @@ def get_ipython() -> InteractiveShell | None:
+ """Return the running IPython shell instance, or None if not in IPython."""
+ from IPython import get_ipython as _get_ipython # type: ignore[attr-defined]
+
+- return _get_ipython()
++ return cast("InteractiveShell | None", _get_ipython()) # type: ignore[no-untyped-call]
+
+
+ def option(*args: Any, **kwargs: Any) -> Callable[[_F], _F]:
+diff --git a/metakernel_python/pyproject.toml b/metakernel_python/pyproject.toml
+index d7a56a3..d18a82a 100644
+--- a/metakernel_python/pyproject.toml
++++ b/metakernel_python/pyproject.toml
+@@ -11,7 +11,7 @@ classifiers = [
+ "Programming Language :: Python :: 3",
+ "Topic :: System :: Shells",
+ ]
+-dependencies = ["metakernel", "jedi", "ipython >=9.16"]
++dependencies = ["metakernel", "jedi", "ipython"]
+ dynamic = ["description", "version"]
+
+ [project.readme]
+diff --git a/pyproject.toml b/pyproject.toml
+index 7b6e12f..4d53654 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -39,7 +39,7 @@ parallel = ["ipyparallel >=8.5.1"] # parallel magic
+ dev-extra = ["pre-commit", "jupyter-console (>=6.6.3,<7.0.0)"]
+ dev = [{ include-group = "test" }, { include-group = "dev-extra" }]
+ test = [
+- "ipython >=9.16",
++ "ipython >=9.0",
+ "jupyter_kernel_test >=0.6.0",
+ "ipywidgets >=8.0.5",
+ "pytest >=9.0",
+@@ -76,7 +76,7 @@ include = [
+
+ [tool.poetry.group.test.dependencies]
+ metakernel_python = {path = "./metakernel_python", develop = true}
+-ipython = {version = ">=9.16"}
++ipython = {version = ">=9.0"}
+
+ [tool.pytest.ini_options]
+ minversion = "9.0"
diff --git a/python-metakernel.spec b/python-metakernel.spec
index e49d5d1..fd8c3ca 100644
--- a/python-metakernel.spec
+++ b/python-metakernel.spec
@@ -4,7 +4,7 @@ Name: python-metakernel
# Running rpmdev-bumpspec on this specfile will update all the
# release tags automatically
Version: 1.0.6
-Release: 1%{?dist}
+Release: 2%{?dist}
%global pkgversion %{version}
%global pkgrelease %{release}
Summary: Metakernel for Jupyter
@@ -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
+# Support ipython < 9.16 for Fedora 43 and 44
+Patch0: python-metakernel-old-ipython.patch
BuildArch: noarch
# For metakernel_echo and metakernel_python
@@ -47,7 +49,7 @@ distributed processing, downloads, and much more).
%package -n python3-metakernel-python
Version: 0.19.1
-Release: 87%{?dist}
+Release: 88%{?dist}
Summary: A Python kernel for Jupyter/IPython
%py_provides python3-metakernel-python
Requires: python3-metakernel = %{pkgversion}-%{pkgrelease}
@@ -58,7 +60,7 @@ A Python kernel for Jupyter/IPython, based on MetaKernel.
%package -n python3-metakernel-echo
Version: 0.19.1
-Release: 87%{?dist}
+Release: 88%{?dist}
Summary: A simple echo kernel for Jupyter/IPython
%py_provides python3-metakernel-echo
Requires: python3-metakernel = %{pkgversion}-%{pkgrelease}
@@ -69,6 +71,9 @@ A simple echo kernel for Jupyter/IPython, based on MetaKernel.
%prep
%setup -q -n metakernel-%{pkgversion}
+%if %{?fedora}%{!?fedora:0} == 43 || %{?fedora}%{!?fedora:0} == 44
+%patch -P0 -p1
+%endif
# Allow older pytest versions
sed -e /minversion/d -e /strict/d -i pyproject.toml
@@ -123,6 +128,9 @@ wait $pid
%{_datadir}/jupyter/kernels/metakernel_echo
%changelog
+* Mon Aug 17 2026 Mattias Ellert <mattias.ellert@physics.uu.se> - 1.0.6-2
+- Support ipython < 9.16 for Fedora 43 and 44
+
* Mon Aug 17 2026 Mattias Ellert <mattias.ellert@physics.uu.se> - 1.0.6-1
- Update to version 1.0.4
- Drop patch accepted upstream
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-17 12:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-17 12:18 [rpms/python-metakernel] f43: Support ipython < 9.16 for Fedora 43 and 44 Mattias Ellert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox