From 014bf327dfc0de382719b6031dd6e4e58abb90231c2edc9fce8d79892a8d124c Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Wed, 14 Dec 2022 22:20:15 +0000 Subject: [PATCH 1/5] Accepting request 1043000 from home:bnavigator:branches: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/1043000 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-client?expand=0&rev=31 --- jupyter_client-7.3.4.tar.gz | 3 --- jupyter_client-7.4.8.tar.gz | 3 +++ py310-ignore-deprecation.patch | 14 ++++++++++++++ py3109-compat.patch | 31 ------------------------------- python-jupyter-client.changes | 26 ++++++++++++++++++++++++++ python-jupyter-client.spec | 12 ++++++------ 6 files changed, 49 insertions(+), 40 deletions(-) delete mode 100644 jupyter_client-7.3.4.tar.gz create mode 100644 jupyter_client-7.4.8.tar.gz create mode 100644 py310-ignore-deprecation.patch delete mode 100644 py3109-compat.patch diff --git a/jupyter_client-7.3.4.tar.gz b/jupyter_client-7.3.4.tar.gz deleted file mode 100644 index 10b645e..0000000 --- a/jupyter_client-7.3.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aa9a6c32054b290374f95f73bb0cae91455c58dfb84f65c8591912b8f65e6d56 -size 329871 diff --git a/jupyter_client-7.4.8.tar.gz b/jupyter_client-7.4.8.tar.gz new file mode 100644 index 0000000..7bbcca0 --- /dev/null +++ b/jupyter_client-7.4.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:109a3c33b62a9cf65aa8325850a0999a795fac155d9de4f7555aef5f310ee35a +size 328958 diff --git a/py310-ignore-deprecation.patch b/py310-ignore-deprecation.patch new file mode 100644 index 0000000..db32493 --- /dev/null +++ b/py310-ignore-deprecation.patch @@ -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", + ] diff --git a/py3109-compat.patch b/py3109-compat.patch deleted file mode 100644 index 34f81ac..0000000 --- a/py3109-compat.patch +++ /dev/null @@ -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 diff --git a/python-jupyter-client.changes b/python-jupyter-client.changes index 76fa720..a078e01 100644 --- a/python-jupyter-client.changes +++ b/python-jupyter-client.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Wed Dec 14 21:10:50 UTC 2022 - Ben Greiner + +- 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 diff --git a/python-jupyter-client.spec b/python-jupyter-client.spec index bfd662b..91b4aff 100644 --- a/python-jupyter-client.spec +++ b/python-jupyter-client.spec @@ -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} From 90bf2239d12a6a039816628adb47b02ba6c1d3cb62f188dc18321ec47d8f5d02 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Wed, 14 Dec 2022 22:20:55 +0000 Subject: [PATCH 2/5] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-client?expand=0&rev=32 --- python-jupyter-client.changes | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python-jupyter-client.changes b/python-jupyter-client.changes index a078e01..0b4a124 100644 --- a/python-jupyter-client.changes +++ b/python-jupyter-client.changes @@ -1,3 +1,7 @@ + +### NOTE: Do not submit to Factory yet, it breaks voila ### +### https://github.com/voila-dashboards/voila/issues/1253 ### + ------------------------------------------------------------------- Wed Dec 14 21:10:50 UTC 2022 - Ben Greiner From 6406475e29bfd655d4a05d134318e37f660c7f1f113f74870cc3cb2ac0db0ce8 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Mon, 19 Dec 2022 21:55:55 +0000 Subject: [PATCH 3/5] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-client?expand=0&rev=33 --- python-jupyter-client.changes | 4 ---- 1 file changed, 4 deletions(-) diff --git a/python-jupyter-client.changes b/python-jupyter-client.changes index 0b4a124..a078e01 100644 --- a/python-jupyter-client.changes +++ b/python-jupyter-client.changes @@ -1,7 +1,3 @@ - -### NOTE: Do not submit to Factory yet, it breaks voila ### -### https://github.com/voila-dashboards/voila/issues/1253 ### - ------------------------------------------------------------------- Wed Dec 14 21:10:50 UTC 2022 - Ben Greiner From 1c6bb4f741aa475435fcf0b6f16b9cac02ed2c55c12ddbfb9261153c3dfb8519 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Tue, 20 Dec 2022 16:50:54 +0000 Subject: [PATCH 4/5] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-client?expand=0&rev=34 --- python-jupyter-client.changes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python-jupyter-client.changes b/python-jupyter-client.changes index a078e01..206611b 100644 --- a/python-jupyter-client.changes +++ b/python-jupyter-client.changes @@ -1,3 +1,5 @@ +#### don't submit, python-voila is not fixed #### + ------------------------------------------------------------------- Wed Dec 14 21:10:50 UTC 2022 - Ben Greiner From 8082ca6056cf27c76f859569574ebf5523665bcb2c5f68a04271f121b3864aff Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Thu, 29 Dec 2022 22:21:26 +0000 Subject: [PATCH 5/5] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-client?expand=0&rev=35 --- python-jupyter-client.changes | 2 -- 1 file changed, 2 deletions(-) diff --git a/python-jupyter-client.changes b/python-jupyter-client.changes index 206611b..a078e01 100644 --- a/python-jupyter-client.changes +++ b/python-jupyter-client.changes @@ -1,5 +1,3 @@ -#### don't submit, python-voila is not fixed #### - ------------------------------------------------------------------- Wed Dec 14 21:10:50 UTC 2022 - Ben Greiner