[packages/python3-jupyter_client] - updated to 8.6.3 (+patch to fix sphinx exception)

qboosh qboosh at pld-linux.org
Thu Nov 20 20:52:40 CET 2025


commit 94e34b7cda87e99887e9e50628e656d285542136
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Nov 20 20:52:39 2025 +0100

    - updated to 8.6.3 (+patch to fix sphinx exception)

 jupyter_client-sphinx.patch       | 30 ++++++++++++++++++
 python3-jupyter_client-mock.patch | 10 ------
 python3-jupyter_client.spec       | 66 ++++++++++++++++++++++++---------------
 3 files changed, 70 insertions(+), 36 deletions(-)
---
diff --git a/python3-jupyter_client.spec b/python3-jupyter_client.spec
index 85b30bf..917216e 100644
--- a/python3-jupyter_client.spec
+++ b/python3-jupyter_client.spec
@@ -1,46 +1,53 @@
 #
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
-%bcond_with	tests	# unit tests (disable for bootstrap: tests need ipykernel which requires jupyter_client; as of 5.3.3 two test_session tests fail)
+%bcond_with	tests	# unit tests (disable for bootstrap: tests need ipykernel which requires jupyter_client)
 
 Summary:	Reference implementation of the Jupyter protocol
 Summary(pl.UTF-8):	Referencyjna implementacja protokołu Jupyter
 Name:		python3-jupyter_client
-Version:	6.1.12
+Version:	8.6.3
 Release:	1
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/jupyter_client/
 Source0:	https://files.pythonhosted.org/packages/source/j/jupyter_client/jupyter_client-%{version}.tar.gz
-# Source0-md5:	6236c21716976fc94b4b452149c6d8e7
-Patch0:		%{name}-mock.patch
+# Source0-md5:	9d57963cc1cb5623c0cc1d051e63039b
+Patch0:		jupyter_client-sphinx.patch
 URL:		https://pypi.org/project/jupyter_client/
-BuildRequires:	python3-modules >= 1:3.5
-BuildRequires:	python3-setuptools
+BuildRequires:	python3-build
+BuildRequires:	python3-hatchling >= 1.5
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.8
 %if %{with tests}
-BuildRequires:	python3-async_generator
-BuildRequires:	python3-dateutil >= 2.1
-BuildRequires:	python3-ipykernel
+BuildRequires:	python3-dateutil >= 2.8.2
+%if "%{_ver_lt %{py3_ver} 3.10}" == "1"
+BuildRequires:	python3-importlib_metadata >= 4.8.3
+%endif
+BuildRequires:	python3-ipykernel >= 6.14
 BuildRequires:	python3-ipython
-BuildRequires:	python3-jupyter_core >= 4.6.0
-#BuildRequires:	python3-msgpack
+BuildRequires:	python3-jupyter_core >= 4.12.0
 BuildRequires:	python3-pytest
-BuildRequires:	python3-pytest-asyncio
+BuildRequires:	python3-pytest-jupyter >= 0.4.1
+#BuildRequires:	python3-pytest-asyncio
 BuildRequires:	python3-pytest-timeout
-BuildRequires:	python3-traitlets
-BuildRequires:	python3-tornado >= 4.1
-BuildRequires:	python3-zmq >= 13
+BuildRequires:	python3-traitlets >= 5.3
+BuildRequires:	python3-tornado >= 6.2
+BuildRequires:	python3-zmq >= 23.0
 %endif
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	rpmbuild(macros) >= 2.044
 %if %{with doc}
 #BuildRequires:	python3-ipykernel
-BuildRequires:	python3-sphinx_rtd_theme
+BuildRequires:	python3-myst_parser
+BuildRequires:	python3-pydata_sphinx_theme
+BuildRequires:	python3-sphinx_autodoc_typehints
+BuildRequires:	python3-sphinxcontrib-spelling
 BuildRequires:	python3-sphinxcontrib_github_alt
-BuildRequires:	python3-zmq >= 13
-BuildRequires:	sphinx-pdg-3 >= 1.3.6
+BuildRequires:	python3-zmq >= 23.0
+BuildRequires:	sphinx-pdg-3 >= 4
 %endif
-Requires:	python3-modules >= 1:3.5
+Requires:	python3-modules >= 1:3.8
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -69,7 +76,12 @@ Dokumentacja API modułu Pythona jupyter_client.
 %patch -P0 -p1
 
 %build
-%py3_build %{?with_tests:test}
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
+%endif
 
 %if %{with doc}
 PYTHONPATH=$(pwd) \
@@ -80,25 +92,27 @@ PYTHONPATH=$(pwd) \
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%py3_install
+%py3_install_pyproject
 
 for f in $RPM_BUILD_ROOT%{_bindir}/jupyter-* ; do
 	%{__mv} "$f" "${f}-3"
+	ln -sf "$(basename ${f})-3" "$f"
 done
 
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/jupyter_client/tests
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc COPYING.md README.md
+%doc CHANGELOG.md LICENSE README.md
 %attr(755,root,root) %{_bindir}/jupyter-kernel-3
 %attr(755,root,root) %{_bindir}/jupyter-kernelspec-3
 %attr(755,root,root) %{_bindir}/jupyter-run-3
+%{_bindir}/jupyter-kernel
+%{_bindir}/jupyter-kernelspec
+%{_bindir}/jupyter-run
 %{py3_sitescriptdir}/jupyter_client
-%{py3_sitescriptdir}/jupyter_client-%{version}-py*.egg-info
+%{py3_sitescriptdir}/jupyter_client-%{version}.dist-info
 
 %if %{with doc}
 %files apidocs
diff --git a/jupyter_client-sphinx.patch b/jupyter_client-sphinx.patch
new file mode 100644
index 0000000..08dde9f
--- /dev/null
+++ b/jupyter_client-sphinx.patch
@@ -0,0 +1,30 @@
+--- jupyter_client-8.6.3/jupyter_client/client.py.orig	2020-02-02 01:00:00.000000000 +0100
++++ jupyter_client-8.6.3/jupyter_client/client.py	2025-11-20 20:34:38.964696790 +0100
+@@ -9,6 +9,7 @@ import typing as t
+ from functools import partial
+ from getpass import getpass
+ from queue import Empty
++from textwrap import dedent
+ 
+ import zmq.asyncio
+ from jupyter_core.utils import ensure_async
+@@ -51,7 +52,7 @@ def reqrep(wrapped: t.Callable, meth: t.
+         ----------
+         """
+         )
+-    parts.append(
++    parts.append(dedent(
+         """
+         reply: bool (default: False)
+             Whether to wait for and return reply
+@@ -64,8 +65,8 @@ def reqrep(wrapped: t.Callable, meth: t.
+             The msg_id of the request sent, if reply=False (default)
+         reply: dict
+             The reply message for this request, if reply=True
+-    """
+-    )
++        """
++    ))
+     wrapped.__doc__ = "\n".join(parts)
+     return wrapped
+ 
diff --git a/python3-jupyter_client-mock.patch b/python3-jupyter_client-mock.patch
deleted file mode 100644
index 0c68bfb..0000000
--- a/python3-jupyter_client-mock.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- jupyter_client-6.1.12/setup.py.orig	2021-03-07 23:59:11.000000000 +0100
-+++ jupyter_client-6.1.12/setup.py	2025-04-21 22:30:27.232270203 +0200
-@@ -82,7 +82,6 @@
-             'ipykernel',
-             'ipython',
-             'jedi<0.18; python_version<="3.6"',
--            'mock',
-             'pytest-asyncio',
-             'pytest-timeout',
-             'pytest',
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-jupyter_client.git/commitdiff/94e34b7cda87e99887e9e50628e656d285542136




More information about the pld-cvs-commit mailing list