Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-jupyter-server for openSUSE:Factory checked in at 2023-09-25 20:03:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jupyter-server (Old) and /work/SRC/openSUSE:Factory/.python-jupyter-server.new.1770 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyter-server" Mon Sep 25 20:03:18 2023 rev:34 rq:1113302 version:2.7.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jupyter-server/python-jupyter-server.changes 2023-08-30 10:23:32.150685362 +0200 +++ /work/SRC/openSUSE:Factory/.python-jupyter-server.new.1770/python-jupyter-server.changes 2023-09-25 20:58:33.410133407 +0200 @@ -1,0 +2,6 @@ +Sun Sep 24 18:04:17 UTC 2023 - Ben Greiner <c...@bnavigator.de> + +- Update to 2.7.3 + * Support external kernels #1305 (@davidbrochart) + +------------------------------------------------------------------- Old: ---- jupyter_server-2.7.2.tar.gz New: ---- jupyter_server-2.7.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jupyter-server.spec ++++++ --- /var/tmp/diff_new_pack.VaobqC/_old 2023-09-25 20:58:34.442170690 +0200 +++ /var/tmp/diff_new_pack.VaobqC/_new 2023-09-25 20:58:34.442170690 +0200 @@ -32,7 +32,7 @@ %endif Name: python-jupyter-server%{psuffix} -Version: 2.7.2 +Version: 2.7.3 Release: 0 Summary: The backend to Jupyter web applications License: BSD-3-Clause ++++++ jupyter_server-2.7.2.tar.gz -> jupyter_server-2.7.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_server-2.7.2/CHANGELOG.md new/jupyter_server-2.7.3/CHANGELOG.md --- old/jupyter_server-2.7.2/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_server-2.7.3/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100 @@ -4,6 +4,22 @@ <!-- <START NEW CHANGELOG ENTRY> --> +## 2.7.3 + +([Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/v2.7.2...e72bf7187e396605f46ba59567543ef6386e8920)) + +### New features added + +- Support external kernels [#1305](https://github.com/jupyter-server/jupyter_server/pull/1305) ([@davidbrochart](https://github.com/davidbrochart)) + +### Contributors to this release + +([GitHub contributors page for this release](https://github.com/jupyter-server/jupyter_server/graphs/contributors?from=2023-08-18&to=2023-08-31&type=c)) + +[@davidbrochart](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Adavidbrochart+updated%3A2023-08-18..2023-08-31&type=Issues) + +<!-- <END NEW CHANGELOG ENTRY> --> + ## 2.7.1 ([Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/v2.7.0...d8f4856c32b895106eac58c9c5768afd0e2f6465)) @@ -32,8 +48,6 @@ [@allstrive](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Aallstrive+updated%3A2023-06-27..2023-08-15&type=Issues) | [@bhperry](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Abhperry+updated%3A2023-06-27..2023-08-15&type=Issues) | [@blink1073](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Ablink1073+updated%3A2023-06-27..2023-08-15&type=Issues) | [@emmanuel-ferdman](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Aemmanuel-ferdman+updated%3A2023-06-27..2023-08-15&type=Issues) | [@Hind-M](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3AHind-M+updated%3A2023-06-27..2023-08-15&type=Issues) | [@kevin-bates](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Akevin-bates+updated%3A2023-06-27..2023-08-15&type=Issues) | [@krassowski](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Akra ssowski+updated%3A2023-06-27..2023-08-15&type=Issues) | [@mathbunnyru](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Amathbunnyru+updated%3A2023-06-27..2023-08-15&type=Issues) | [@matthewwiese](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Amatthewwiese+updated%3A2023-06-27..2023-08-15&type=Issues) | [@minrk](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Aminrk+updated%3A2023-06-27..2023-08-15&type=Issues) | [@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Apre-commit-ci+updated%3A2023-06-27..2023-08-15&type=Issues) | [@welcome](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Awelcome+updated%3A2023-06-27..2023-08-15&type=Issues) | [@wqj97](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_server+involves%3Awqj97+updated%3A2023-06-27..2023-08-15&type=Issues) | [@Zsailer](https://github.com/search?q=repo%3Ajup yter-server%2Fjupyter_server+involves%3AZsailer+updated%3A2023-06-27..2023-08-15&type=Issues) -<!-- <END NEW CHANGELOG ENTRY> --> - ## 2.7.0 ([Full Changelog](https://github.com/jupyter-server/jupyter_server/compare/v2.6.0...b652f8d08530bd60ecf4cfffe6c32939fd94eb41)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_server-2.7.2/PKG-INFO new/jupyter_server-2.7.3/PKG-INFO --- old/jupyter_server-2.7.2/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_server-2.7.3/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: jupyter_server -Version: 2.7.2 +Version: 2.7.3 Summary: The backendâi.e. core services, APIs, and REST endpointsâto Jupyter web applications. Project-URL: Homepage, https://jupyter-server.readthedocs.io Project-URL: Documentation, https://jupyter-server.readthedocs.io diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_server-2.7.2/jupyter_server/_version.py new/jupyter_server-2.7.3/jupyter_server/_version.py --- old/jupyter_server-2.7.2/jupyter_server/_version.py 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_server-2.7.3/jupyter_server/_version.py 2020-02-02 01:00:00.000000000 +0100 @@ -6,7 +6,7 @@ from typing import List # Version string must appear intact for automatic versioning -__version__ = "2.7.2" +__version__ = "2.7.3" # Build up version_info tuple for backwards compatibility pattern = r"(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_server-2.7.2/jupyter_server/serverapp.py new/jupyter_server-2.7.3/jupyter_server/serverapp.py --- old/jupyter_server-2.7.2/jupyter_server/serverapp.py 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_server-2.7.3/jupyter_server/serverapp.py 2020-02-02 01:00:00.000000000 +0100 @@ -24,7 +24,9 @@ import urllib import warnings from base64 import encodebytes +from pathlib import Path +import jupyter_client from jupyter_client.kernelspec import KernelSpecManager from jupyter_client.manager import KernelManager from jupyter_client.session import Session @@ -1638,6 +1640,26 @@ self.log.warning(_i18n("notebook_dir is deprecated, use root_dir")) self.root_dir = change["new"] + external_connection_dir = Unicode( + None, + allow_none=True, + config=True, + help=_i18n( + "The directory to look at for external kernel connection files, if allow_external_kernels is True. " + "Defaults to Jupyter runtime_dir/external_kernels. " + "Make sure that this directory is not filled with left-over connection files, " + "that could result in unnecessary kernel manager creations." + ), + ) + + allow_external_kernels = Bool( + False, + config=True, + help=_i18n( + "Whether or not to allow external kernels, whose connection files are placed in external_connection_dir." + ), + ) + root_dir = Unicode(config=True, help=_i18n("The directory to use for notebooks and kernels.")) _root_dir_set = False @@ -1873,12 +1895,26 @@ self.kernel_spec_manager = self.kernel_spec_manager_class( parent=self, ) - self.kernel_manager = self.kernel_manager_class( - parent=self, - log=self.log, - connection_dir=self.runtime_dir, - kernel_spec_manager=self.kernel_spec_manager, - ) + + kwargs = { + "parent": self, + "log": self.log, + "connection_dir": self.runtime_dir, + "kernel_spec_manager": self.kernel_spec_manager, + } + if jupyter_client.version_info > (8, 3, 0): + if self.allow_external_kernels: + external_connection_dir = self.external_connection_dir + if external_connection_dir is None: + external_connection_dir = str(Path(self.runtime_dir) / "external_kernels") + kwargs["external_connection_dir"] = external_connection_dir + elif self.allow_external_kernels: + self.log.warning( + "Although allow_external_kernels=True, external kernels are not supported " + "because jupyter-client's version does not allow them (should be >8.3.0)." + ) + + self.kernel_manager = self.kernel_manager_class(**kwargs) self.contents_manager = self.contents_manager_class( parent=self, log=self.log, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_server-2.7.2/jupyter_server/services/kernels/connection/channels.py new/jupyter_server-2.7.3/jupyter_server/services/kernels/connection/channels.py --- old/jupyter_server-2.7.2/jupyter_server/services/kernels/connection/channels.py 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_server-2.7.3/jupyter_server/services/kernels/connection/channels.py 2020-02-02 01:00:00.000000000 +0100 @@ -410,7 +410,10 @@ ) # start buffering instead of closing if this was the last connection - if self.multi_kernel_manager._kernel_connections[self.kernel_id] == 0: + if ( + self.kernel_id in self.multi_kernel_manager._kernel_connections + and self.multi_kernel_manager._kernel_connections[self.kernel_id] == 0 + ): self.multi_kernel_manager.start_buffering( self.kernel_id, self.session_key, self.channels )