Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-jupyter-client for 
openSUSE:Factory checked in at 2022-12-12 18:59:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyter-client (Old)
 and      /work/SRC/openSUSE:Factory/.python-jupyter-client.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jupyter-client"

Mon Dec 12 18:59:13 2022 rev:12 rq:1042422 version:7.3.4

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-jupyter-client/python-jupyter-client.changes  
    2022-07-07 12:56:02.735205479 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jupyter-client.new.1835/python-jupyter-client.changes
    2022-12-12 18:59:15.396002251 +0100
@@ -1,0 +2,10 @@
+Mon Dec 12 16:30:43 UTC 2022 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Update py3109-compat.patch to work with python 3.10.8 and lower.
+
+-------------------------------------------------------------------
+Mon Dec 12 12:34:49 UTC 2022 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Add py3109-compat.patch to make it work with python 3.10.9. 
+
+-------------------------------------------------------------------

New:
----
  py3109-compat.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-jupyter-client.spec ++++++
--- /var/tmp/diff_new_pack.32pWRd/_old  2022-12-12 18:59:16.088006149 +0100
+++ /var/tmp/diff_new_pack.32pWRd/_new  2022-12-12 18:59:16.092006171 +0100
@@ -34,6 +34,8 @@
 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

++++++ py3109-compat.patch ++++++
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

Reply via email to