1
0

- Update to 5.3.2

* Fix event loop handling #362 (@blink1073)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-core?expand=0&rev=42
This commit is contained in:
2023-10-07 13:35:18 +00:00
committed by Git OBS Bridge
parent 02d3f3e8a7
commit 006b071179
5 changed files with 34 additions and 13 deletions

View File

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

View File

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

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Oct 7 13:07:45 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Update to 5.3.2
* Fix event loop handling #362 (@blink1073)
-------------------------------------------------------------------
Sat Jul 1 16:37:15 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@@ -32,7 +32,7 @@
%endif
Name: python-jupyter-core%{psuffix}
Version: 5.3.1
Version: 5.3.2
Release: 0
Summary: Base package on which Jupyter projects rely
License: BSD-3-Clause
@@ -84,9 +84,9 @@ as a dependency by packages that require it.
%prep
%autosetup -p1 -n jupyter_core-%{version}
# Set the appropriate hardcoded paths dynamically
sed -i "s|@_datadir_jupyter_@|\"%{_datadir}/jupyter\"|" jupyter_core/paths.py
sed -i "s|@_distconfdir_jupyter_@|\"%{_distconfdir}/jupyter\"|" jupyter_core/paths.py
sed -i "/addopts/ s/--color=yes//" pyproject.toml
sed -i "s|@_datadir_jupyter_@|%{_datadir}/jupyter|" jupyter_core/paths.py
sed -i "s|@_distconfdir_jupyter_@|%{_distconfdir}/jupyter|" jupyter_core/paths.py
sed -i "/addopts/,/]/ s/--color=yes//" pyproject.toml
%if !%{with test}
%build

View File

@@ -7,10 +7,10 @@ system paths in the .spec file.
---
Index: jupyter_core-5.1.1/jupyter_core/paths.py
Index: jupyter_core-5.3.2/jupyter_core/paths.py
===================================================================
--- jupyter_core-5.1.1.orig/jupyter_core/paths.py
+++ jupyter_core-5.1.1/jupyter_core/paths.py
--- jupyter_core-5.3.2.orig/jupyter_core/paths.py
+++ jupyter_core-5.3.2/jupyter_core/paths.py
@@ -219,10 +219,7 @@ else:
else: # PROGRAMDATA is not defined by default on XP.
SYSTEM_JUPYTER_PATH = [os.path.join(sys.prefix, "share", "jupyter")]
@@ -19,11 +19,26 @@ Index: jupyter_core-5.1.1/jupyter_core/paths.py
- "/usr/local/share/jupyter",
- "/usr/share/jupyter",
- ]
+ SYSTEM_JUPYTER_PATH = [ @_datadir_jupyter_@ ]
+ SYSTEM_JUPYTER_PATH = [ "@_datadir_jupyter_@" ]
ENV_JUPYTER_PATH: List[str] = [os.path.join(sys.prefix, "share", "jupyter")]
@@ -301,10 +298,7 @@ else:
@@ -243,10 +240,10 @@ def jupyter_path(*subdirs: str) -> List[
Examples:
- >>> jupyter_path()
- ['~/.local/jupyter', '/usr/local/share/jupyter']
- >>> jupyter_path('kernels')
- ['~/.local/jupyter/kernels', '/usr/local/share/jupyter/kernels']
+ >>> jupyter_path() # doctest: +SKIP
+ ['~/.local/share/jupyter', '@_datadir_jupyter_@']
+ >>> jupyter_path('kernels') # doctest: +SKIP
+ ['~/.local/share/jupyter/kernels', '@_datadir_jupyter_@/kernels']
"""
paths: List[str] = []
@@ -298,10 +295,7 @@ else: # noqa: PLR5501
else: # PROGRAMDATA is not defined by default on XP.
SYSTEM_CONFIG_PATH = []
else:
@@ -31,7 +46,7 @@ Index: jupyter_core-5.1.1/jupyter_core/paths.py
- "/usr/local/etc/jupyter",
- "/etc/jupyter",
- ]
+ SYSTEM_CONFIG_PATH = [ @_distconfdir_jupyter_@ ]
+ SYSTEM_CONFIG_PATH = [ "@_distconfdir_jupyter_@" ]
ENV_CONFIG_PATH: List[str] = [os.path.join(sys.prefix, "etc", "jupyter")]