Accepting request 1045755 from devel:languages:python:jupyter

- Update to 7.4.8
  * Make sure loop is marked with nest_asyncio #893 (@impact27)
- Release 7.4.7
  * Fix connection reconciliation to handle restarts #882
    (@kevin-bates)
- Release 7.4.6
  * Reconcile connection information #879 (@kevin-bates)
- Release 7.4.5
  * [7.x] Handle Jupyter Core Warning #875 (@blink1073)
- Release 7.4.4
  * Workaround for launch bug #861 (@blink1073)
- Release 7.4.3
  * Defer creation of ready future #858 (@blink1073)
- Release 7.4.2
  * Fix ready promise and session send #852 (@blink1073)
  * Fix pending kernels backported and reverted: #848 #851
- Release 7.3.5
  * add AsyncKernelClient to doc/api/client.rst #819 (@helioz11)
  * Use tornado 6.2's PeriodicCallback in restarter #822 (@vidartf)
  * Make _stdin_hook_default async #814 (@davidbrochart)
- Replace py3109-compat.patch by py310-ignore-deprecation.patch
  gh#jupyter/jupyter_client#713

OBS-URL: https://build.opensuse.org/request/show/1045755
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jupyter-client?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2022-12-31 10:22:49 +00:00 committed by Git OBS Bridge
commit 635af77495
6 changed files with 49 additions and 40 deletions

View File

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

View File

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

View File

@ -0,0 +1,14 @@
Index: jupyter_client-7.4.8/pyproject.toml
===================================================================
--- jupyter_client-7.4.8.orig/pyproject.toml
+++ jupyter_client-7.4.8/pyproject.toml
@@ -136,6 +136,9 @@ filterwarnings= [
# when there is a running event loop.
"ignore:There is no current event loop:DeprecationWarning:zmq",
+ # https://github.com/jupyter/jupyter_client/issues/713
+ "ignore:There is no current event loop:DeprecationWarning",
+
# Workaround for jupyter_core warning.
"module:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning",
]

View File

@ -1,31 +0,0 @@
Index: jupyter_client-7.3.4/jupyter_client/utils.py
===================================================================
--- jupyter_client-7.3.4.orig/jupyter_client/utils.py
+++ jupyter_client-7.3.4/jupyter_client/utils.py
@@ -6,6 +6,7 @@ utils:
import asyncio
import inspect
import os
+import sys
def run_sync(coro):
@@ -13,10 +14,14 @@ def run_sync(coro):
try:
loop = asyncio.get_running_loop()
except RuntimeError:
- # Workaround for bugs.python.org/issue39529.
- try:
- loop = asyncio.get_event_loop_policy().get_event_loop()
- except RuntimeError:
+ if sys.version_info <= (3, 10, 8):
+ # Workaround for bugs.python.org/issue39529.
+ try:
+ loop = asyncio.get_event_loop_policy().get_event_loop()
+ except RuntimeError:
+ loop = asyncio.new_event_loop()
+ asyncio.set_event_loop(loop)
+ else:
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
import nest_asyncio # type: ignore

View File

@ -1,3 +1,29 @@
-------------------------------------------------------------------
Wed Dec 14 21:10:50 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to 7.4.8
* Make sure loop is marked with nest_asyncio #893 (@impact27)
- Release 7.4.7
* Fix connection reconciliation to handle restarts #882
(@kevin-bates)
- Release 7.4.6
* Reconcile connection information #879 (@kevin-bates)
- Release 7.4.5
* [7.x] Handle Jupyter Core Warning #875 (@blink1073)
- Release 7.4.4
* Workaround for launch bug #861 (@blink1073)
- Release 7.4.3
* Defer creation of ready future #858 (@blink1073)
- Release 7.4.2
* Fix ready promise and session send #852 (@blink1073)
* Fix pending kernels backported and reverted: #848 #851
- Release 7.3.5
* add AsyncKernelClient to doc/api/client.rst #819 (@helioz11)
* Use tornado 6.2's PeriodicCallback in restarter #822 (@vidartf)
* Make _stdin_hook_default async #814 (@davidbrochart)
- Replace py3109-compat.patch by py310-ignore-deprecation.patch
gh#jupyter/jupyter_client#713
-------------------------------------------------------------------
Mon Dec 12 16:30:43 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -24,18 +24,18 @@
%define psuffix %{nil}
%bcond_with test
%endif
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-jupyter-client%{psuffix}
Version: 7.3.4
Version: 7.4.8
Release: 0
Summary: Jupyter protocol implementation and client libraries
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/jupyter/jupyter_client
Source: https://files.pythonhosted.org/packages/source/j/jupyter_client/jupyter_client-%{version}.tar.gz
# PATCH-FIX-OPENSUSE py3109-compat.patch
Patch0: py3109-compat.patch
# PATCH-FIX-UPSTREAM py310-ignore-deprecation.patch gh#jupyter/jupyter_client#713
Patch0: py310-ignore-deprecation.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
@ -46,7 +46,7 @@ Requires: python-jupyter-core >= 4.9.2
Requires: python-nest-asyncio >= 1.5.4
Requires: python-python-dateutil >= 2.8.2
Requires: python-pyzmq >= 23.0
Requires: python-tornado >= 6.0
Requires: python-tornado >= 6.2
Requires: python-traitlets
Provides: python-jupyter_client = %{version}
Obsoletes: python-jupyter_client < %{version}