Accepting request 1287584 from devel:languages:python:jupyter

- Update to 5.8.1
  * Fixes a regression in 5.8.0 for code which may assume
    SYSTEM_CONFIG_PATH is non-empty (Jupyter Server).
- Release
  * Fixes CVE-2025-30167 / GHSA-33p9-3p43-82vq on Windows (advisory
    to be published 2025-06-02)
  * fix: handle RuntimeError correctly in run_sync #425
    (@hugokerstens)

OBS-URL: https://build.opensuse.org/request/show/1287584
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jupyter-core?expand=0&rev=28
This commit is contained in:
2025-06-23 12:55:54 +00:00
committed by Git OBS Bridge
5 changed files with 34 additions and 21 deletions

View File

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

View File

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

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sat Jun 21 15:50:34 UTC 2025 - Ben Greiner <code@bnavigator.de>
- Update to 5.8.1
* Fixes a regression in 5.8.0 for code which may assume
SYSTEM_CONFIG_PATH is non-empty (Jupyter Server).
- Release
* Fixes CVE-2025-30167 / GHSA-33p9-3p43-82vq on Windows (advisory
to be published 2025-06-02)
* fix: handle RuntimeError correctly in run_sync #425
(@hugokerstens)
-------------------------------------------------------------------
Wed Sep 25 08:33:08 UTC 2024 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-jupyter-core
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -32,7 +32,7 @@
%endif
%{?sle15_python_module_pythons}
Name: python-jupyter-core%{psuffix}
Version: 5.7.2
Version: 5.8.1
Release: 0
Summary: Base package on which Jupyter projects rely
License: BSD-3-Clause
@@ -114,7 +114,7 @@ donttest="test_jupyter_path_prefer_env or test_jupyter_config_path_prefer_env"
donttest="$donttest or test_config_dir_linux"
# async failure
donttest="$donttest or test_ensure_async"
%pytest --import-mode=importlib -k "not ($donttest)"
%pytest --import-mode=importlib -k "not ($donttest)" --ignore docs
%endif
%pre

View File

@@ -7,12 +7,12 @@ system paths in the .spec file.
---
Index: jupyter_core-5.5.1/jupyter_core/paths.py
Index: jupyter_core-5.8.1/jupyter_core/paths.py
===================================================================
--- jupyter_core-5.5.1.orig/jupyter_core/paths.py
+++ jupyter_core-5.5.1/jupyter_core/paths.py
@@ -221,10 +221,7 @@ else:
else: # PROGRAMDATA is not defined by default on XP.
--- jupyter_core-5.8.1.orig/jupyter_core/paths.py
+++ jupyter_core-5.8.1/jupyter_core/paths.py
@@ -241,10 +241,7 @@ else:
else:
SYSTEM_JUPYTER_PATH = [str(Path(sys.prefix, "share", "jupyter"))]
else:
- SYSTEM_JUPYTER_PATH = [
@@ -23,7 +23,7 @@ Index: jupyter_core-5.5.1/jupyter_core/paths.py
ENV_JUPYTER_PATH: list[str] = [str(Path(sys.prefix, "share", "jupyter"))]
@@ -245,10 +242,10 @@ def jupyter_path(*subdirs: str) -> list[
@@ -286,10 +283,10 @@ def jupyter_path(*subdirs: str) -> list[
Examples:
@@ -38,13 +38,14 @@ Index: jupyter_core-5.5.1/jupyter_core/paths.py
"""
paths: list[str] = []
@@ -301,8 +298,7 @@ else:
SYSTEM_CONFIG_PATH = []
else:
SYSTEM_CONFIG_PATH = [
- "/usr/local/etc/jupyter",
- "/etc/jupyter",
+ "@_distconfdir_jupyter_@"
]
ENV_CONFIG_PATH: list[str] = [str(Path(sys.prefix, "etc", "jupyter"))]
@@ -383,8 +380,8 @@ def jupyter_config_path() -> list[str]:
Examples:
- >>> jupyter_config_path()
- ['~/.jupyter', '~/.local/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter']
+ >>> jupyter_config_path() # doctest: +SKIP
+ ['~/.jupyter', '~/.local/etc/jupyter', "@_distconfdir_jupyter_@"]
"""
if os.environ.get("JUPYTER_NO_CONFIG"):