- Add py3109-compat.patch to make it work with python 3.10.9.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-client?expand=0&rev=28
This commit is contained in:
parent
f206693b05
commit
b5a214fd31
19
py3109-compat.patch
Normal file
19
py3109-compat.patch
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
||||
@@ -13,12 +13,8 @@ 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:
|
||||
- loop = asyncio.new_event_loop()
|
||||
- asyncio.set_event_loop(loop)
|
||||
+ loop = asyncio.new_event_loop()
|
||||
+ asyncio.set_event_loop(loop)
|
||||
import nest_asyncio # type: ignore
|
||||
|
||||
nest_asyncio.apply(loop)
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 12 12:34:49 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Add py3109-compat.patch to make it work with python 3.10.9.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 28 18:51:36 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -34,6 +34,8 @@ 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
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: fdupes
|
||||
|
Loading…
Reference in New Issue
Block a user