[packages/python3-jupyter_core] Up to 5.9.1
arekm
arekm at pld-linux.org
Thu Nov 12 09:08:00 CET 2026
commit fe1c4c6b19dd29e0554896f67a88cffcad6a760f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 12 02:11:23 2026 +0100
Up to 5.9.1
Fixes CVE-2025-30167.
python-jupyter_core-completions.patch | 10 +++++-----
python-jupyter_core-tests.patch | 8 ++++----
python3-jupyter_core.spec | 25 +++++++++++++++----------
sphinx8.patch | 11 -----------
4 files changed, 24 insertions(+), 30 deletions(-)
---
diff --git a/python3-jupyter_core.spec b/python3-jupyter_core.spec
index 3740cdf..0c5d3b2 100644
--- a/python3-jupyter_core.spec
+++ b/python3-jupyter_core.spec
@@ -6,35 +6,39 @@
Summary: Core common functionality of Jupyter projects
Summary(pl.UTF-8): Główna, wspólna funkcjonalność projektów Jupyter
Name: python3-jupyter_core
-Version: 5.7.2
-Release: 2
+Version: 5.9.1
+Release: 1
License: BSD
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/jupyter_core/
Source0: https://files.pythonhosted.org/packages/source/j/jupyter_core/jupyter_core-%{version}.tar.gz
-# Source0-md5: cd669418f83d14d6a1c2140b5fb36391
+# Source0-md5: f22161c66a8f83926e5e275bf2c2e8bc
Patch0: python-jupyter_core-tests.patch
Patch1: python-jupyter_core-completions.patch
-Patch2: sphinx8.patch
URL: https://pypi.org/project/jupyter_core/
BuildRequires: python3-build
BuildRequires: python3-hatchling >= 1.4
BuildRequires: python3-installer
-BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-modules >= 1:3.10
%if %{with tests}
BuildRequires: python3-pip
+BuildRequires: python3-platformdirs >= 2.5
BuildRequires: python3-pytest
-BuildRequires: python3-traitlets >= 4.0
+BuildRequires: python3-traitlets >= 5.3
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 2.044
%if %{with doc}
+BuildRequires: python3-intersphinx_registry
+BuildRequires: python3-myst_parser
+BuildRequires: python3-platformdirs >= 2.5
+BuildRequires: python3-pydata_sphinx_theme
BuildRequires: python3-sphinx_autodoc_typehints
-BuildRequires: python3-sphinxcontrib_github_alt
-BuildRequires: python3-traitlets >= 4.0
+BuildRequires: python3-sphinxcontrib-spelling
+BuildRequires: python3-traitlets >= 5.3
BuildRequires: sphinx-pdg-3 >= 8
%endif
-Requires: python3-modules >= 1:3.8
+Requires: python3-modules >= 1:3.10
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -87,7 +91,6 @@ Dopełnianie parametrów w zsh dla poleceń jupyter.
%setup -q -n jupyter_core-%{version}
%patch -P 0 -p1
%patch -P 1 -p1
-%patch -P 2 -p1
%{__sed} -i -e '1s,/usr/bin/env python,%{__python3},' jupyter_core/troubleshoot.py
@@ -95,6 +98,8 @@ Dopełnianie parametrów w zsh dla poleceń jupyter.
%py3_build_pyproject
%if %{with tests}
+install -d test-home
+HOME=$(pwd)/test-home \
PYTHONPATH=$(pwd) \
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%{__python3} -m pytest --ignore=tests/test_paths.py tests
diff --git a/python-jupyter_core-completions.patch b/python-jupyter_core-completions.patch
index 4fc881e..47a5a48 100644
--- a/python-jupyter_core-completions.patch
+++ b/python-jupyter_core-completions.patch
@@ -1,13 +1,13 @@
---- jupyter_core-4.5.0/examples/jupyter-completion.bash.orig 2018-11-07 18:10:19.000000000 +0100
-+++ jupyter_core-4.5.0/examples/jupyter-completion.bash 2019-09-29 13:08:48.722306509 +0200
-@@ -89,4 +89,4 @@
+--- jupyter_core-5.9.1/examples/jupyter-completion.bash.orig
++++ jupyter_core-5.9.1/examples/jupyter-completion.bash
+@@ -94,4 +94,4 @@
fi
}
-complete -o default -o nospace -F _jupyter jupyter
+complete -o default -o nospace -F _jupyter jupyter jupyter-3
---- jupyter_core-4.5.0/examples/completions-zsh.orig 2017-08-05 11:25:59.000000000 +0200
-+++ jupyter_core-4.5.0/examples/completions-zsh 2019-09-29 13:18:28.779164072 +0200
+--- jupyter_core-5.9.1/examples/completions-zsh.orig
++++ jupyter_core-5.9.1/examples/completions-zsh
@@ -1,4 +1,4 @@
-#compdef jupyter
+#compdef jupyter jupyter-3
diff --git a/python-jupyter_core-tests.patch b/python-jupyter_core-tests.patch
index 8ad1096..29647bb 100644
--- a/python-jupyter_core-tests.patch
+++ b/python-jupyter_core-tests.patch
@@ -1,6 +1,6 @@
---- jupyter_core-5.7.2/tests/test_command.py.orig 2020-02-02 01:00:00.000000000 +0100
-+++ jupyter_core-5.7.2/tests/test_command.py 2025-04-22 11:02:21.088549672 +0200
-@@ -196,6 +196,8 @@
+--- jupyter_core-5.9.1/tests/test_command.py.orig
++++ jupyter_core-5.9.1/tests/test_command.py
+@@ -197,6 +197,8 @@
env = {"PATH": ""}
if "SYSTEMROOT" in os.environ: # Windows http://bugs.python.org/issue20614
env["SYSTEMROOT"] = os.environ["SYSTEMROOT"]
@@ -9,7 +9,7 @@
if sys.platform == "win32":
env["PATHEXT"] = ".EXE"
# This won't work on windows unless
-@@ -221,6 +223,8 @@
+@@ -222,6 +224,8 @@
env = {"PATH": str(b)}
if "SYSTEMROOT" in os.environ: # Windows http://bugs.python.org/issue20614
env["SYSTEMROOT"] = os.environ["SYSTEMROOT"]
diff --git a/sphinx8.patch b/sphinx8.patch
deleted file mode 100644
index 7c9b8d1..0000000
--- a/sphinx8.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- jupyter_core-4.6.3/docs/conf.py.orig 2019-09-14 00:09:00.000000000 +0200
-+++ jupyter_core-4.6.3/docs/conf.py 2025-04-19 15:06:52.296934881 +0200
-@@ -294,7 +294,7 @@
-
-
- # Example configuration for intersphinx: refer to the Python standard library.
--intersphinx_mapping = {"https://docs.python.org/3/": None}
-+intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)}
-
-
- def setup(_):
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-jupyter_core.git/commitdiff/fe1c4c6b19dd29e0554896f67a88cffcad6a760f
More information about the pld-cvs-commit
mailing list