Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-spyder-kernels for openSUSE:Factory checked in at 2021-05-12 19:31:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-spyder-kernels (Old) and /work/SRC/openSUSE:Factory/.python-spyder-kernels.new.2988 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-spyder-kernels" Wed May 12 19:31:50 2021 rev:23 rq:892127 version:2.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-spyder-kernels/python-spyder-kernels.changes 2021-04-10 15:28:44.978475315 +0200 +++ /work/SRC/openSUSE:Factory/.python-spyder-kernels.new.2988/python-spyder-kernels.changes 2021-05-12 19:32:17.935021614 +0200 @@ -1,0 +2,8 @@ +Sun May 2 21:22:50 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Update to version 2.0.2 + * PR 289 - PR: Fix setting tight layout in inline figures + * PR 287 - PR: Close comm on shutdown + * PR 282 - PR: Fix numpy.complex deprecation warning in tests + +------------------------------------------------------------------- Old: ---- python-spyder-kernels-2.0.1.tar.gz New: ---- python-spyder-kernels-2.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-spyder-kernels.spec ++++++ --- /var/tmp/diff_new_pack.lCtc48/_old 2021-05-12 19:32:18.415019696 +0200 +++ /var/tmp/diff_new_pack.lCtc48/_new 2021-05-12 19:32:18.415019696 +0200 @@ -20,7 +20,7 @@ %define skip_python2 1 %define skip_python36 1 Name: python-spyder-kernels -Version: 2.0.1 +Version: 2.0.2 Release: 0 Summary: Jupyter kernels for Spyder's console License: MIT ++++++ python-spyder-kernels-2.0.1.tar.gz -> python-spyder-kernels-2.0.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spyder-kernels-2.0.1/.github/workflows/linux-tests.yml new/spyder-kernels-2.0.2/.github/workflows/linux-tests.yml --- old/spyder-kernels-2.0.1/.github/workflows/linux-tests.yml 2021-04-02 20:27:40.000000000 +0200 +++ new/spyder-kernels-2.0.2/.github/workflows/linux-tests.yml 2021-05-02 19:36:28.000000000 +0200 @@ -4,9 +4,11 @@ push: branches: - master + - 2.x pull_request: branches: - master + - 2.x jobs: linux: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spyder-kernels-2.0.1/.github/workflows/macos-tests.yml new/spyder-kernels-2.0.2/.github/workflows/macos-tests.yml --- old/spyder-kernels-2.0.1/.github/workflows/macos-tests.yml 2021-04-02 20:27:40.000000000 +0200 +++ new/spyder-kernels-2.0.2/.github/workflows/macos-tests.yml 2021-05-02 19:36:28.000000000 +0200 @@ -4,9 +4,11 @@ push: branches: - master + - 2.x pull_request: branches: - master + - 2.x jobs: macos: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spyder-kernels-2.0.1/.github/workflows/windows-tests.yml new/spyder-kernels-2.0.2/.github/workflows/windows-tests.yml --- old/spyder-kernels-2.0.1/.github/workflows/windows-tests.yml 2021-04-02 20:27:40.000000000 +0200 +++ new/spyder-kernels-2.0.2/.github/workflows/windows-tests.yml 2021-05-02 19:36:28.000000000 +0200 @@ -4,9 +4,11 @@ push: branches: - master + - 2.x pull_request: branches: - master + - 2.x jobs: windows: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spyder-kernels-2.0.1/CHANGELOG.md new/spyder-kernels-2.0.2/CHANGELOG.md --- old/spyder-kernels-2.0.1/CHANGELOG.md 2021-04-02 20:27:40.000000000 +0200 +++ new/spyder-kernels-2.0.2/CHANGELOG.md 2021-05-02 19:36:28.000000000 +0200 @@ -1,5 +1,19 @@ # History of changes +## Version 2.0.2 (2021-05-02) + +### Pull Requests Merged + +* [PR 289](https://github.com/spyder-ide/spyder-kernels/pull/289) - PR: Fix setting tight layout in inline figures, by [@ccordoba12](https://github.com/ccordoba12) +* [PR 287](https://github.com/spyder-ide/spyder-kernels/pull/287) - PR: Close comm on shutdown, by [@impact27](https://github.com/impact27) +* [PR 282](https://github.com/spyder-ide/spyder-kernels/pull/282) - PR: Fix numpy.complex deprecation warning in tests, by [@ArchangeGabriel](https://github.com/ArchangeGabriel) + +In this release 3 pull requests were closed. + + +---- + + ## Version 2.0.1 (2021-04-02) * This release also contains all fixes present in version 1.10.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spyder-kernels-2.0.1/RELEASE.md new/spyder-kernels-2.0.2/RELEASE.md --- old/spyder-kernels-2.0.1/RELEASE.md 2021-04-02 20:27:40.000000000 +0200 +++ new/spyder-kernels-2.0.2/RELEASE.md 2021-05-02 19:36:28.000000000 +0200 @@ -28,11 +28,11 @@ * git add . && git commit -m 'Back to work' -* git checkout 2.x +* git checkout master * git merge 2.x -* git push upstream 2.x +* git push upstream master * git push upstream 2.x diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spyder-kernels-2.0.1/spyder_kernels/_version.py new/spyder-kernels-2.0.2/spyder_kernels/_version.py --- old/spyder-kernels-2.0.1/spyder_kernels/_version.py 2021-04-02 20:27:40.000000000 +0200 +++ new/spyder-kernels-2.0.2/spyder_kernels/_version.py 2021-05-02 19:36:28.000000000 +0200 @@ -8,5 +8,5 @@ """Version File.""" -VERSION_INFO = (2, 0, 1) +VERSION_INFO = (2, 0, 2) __version__ = '.'.join(map(str, VERSION_INFO)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spyder-kernels-2.0.1/spyder_kernels/comms/frontendcomm.py new/spyder-kernels-2.0.2/spyder_kernels/comms/frontendcomm.py --- old/spyder-kernels-2.0.1/spyder_kernels/comms/frontendcomm.py 2021-04-02 20:27:40.000000000 +0200 +++ new/spyder-kernels-2.0.2/spyder_kernels/comms/frontendcomm.py 2021-05-02 19:36:28.000000000 +0200 @@ -63,6 +63,8 @@ self.register_call_handler('_send_comm_config', self._send_comm_config) + self.comm_lock = threading.Lock() + # self.kernel.parent is IPKernelApp unless we are in tests if self.kernel.parent: # Create a new socket @@ -95,6 +97,16 @@ self.kernel.parent.close = close + def close(self, comm_id=None): + """Close the comm and notify the other side.""" + with self.comm_lock: + return super(FrontendComm, self).close(comm_id) + + def _send_message(self, *args, **kwargs): + """Publish custom messages to the other side.""" + with self.comm_lock: + return super(FrontendComm, self)._send_message(*args, **kwargs) + def close_thread(self): """Close comm.""" self.comm_thread_close.set() @@ -128,6 +140,7 @@ if msg_type == 'shutdown_request': self.comm_thread_close.set() + self._comm_close(msg) return handler = self.kernel.shell_handlers.get(msg_type, None) @@ -208,10 +221,9 @@ def _comm_close(self, msg): """Close comm.""" comm_id = msg['content']['comm_id'] - comm = self._comms[comm_id]['comm'] - # Pretend it is already closed to avoid problems when closing - comm._closed = True - del self._comms[comm_id] + # Send back a close message confirmation + # Fixes spyder-ide/spyder#15356 + self.close(comm_id) def _async_error(self, error_wrapper): """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spyder-kernels-2.0.1/spyder_kernels/console/kernel.py new/spyder-kernels-2.0.2/spyder_kernels/console/kernel.py --- old/spyder-kernels-2.0.1/spyder_kernels/console/kernel.py 2021-04-02 20:27:40.000000000 +0200 +++ new/spyder-kernels-2.0.2/spyder_kernels/console/kernel.py 2021-05-02 19:36:28.000000000 +0200 @@ -20,6 +20,7 @@ import ipykernel from ipykernel.ipkernel import IPythonKernel from ipykernel.zmqshell import ZMQInteractiveShell +from traitlets.config.loader import LazyConfigValue # Local imports from spyder_kernels.py3compat import TEXT_TYPES, to_text_string @@ -456,7 +457,7 @@ """ Set inline print figure bbox inches. - The change is done by updating the ??rint_figure_kwargs' config dict. + The change is done by updating the 'print_figure_kwargs' config dict. """ from IPython.core.getipython import get_ipython config = get_ipython().kernel.config @@ -468,6 +469,14 @@ bbox_inches_dict = { 'bbox_inches': 'tight' if bbox_inches else None} print_figure_kwargs.update(bbox_inches_dict) + + # This seems to be necessary for newer versions of Traitlets because + # print_figure_kwargs doesn't return a dict. + if isinstance(print_figure_kwargs, LazyConfigValue): + figure_kwargs_dict = print_figure_kwargs.to_dict().get('update') + if figure_kwargs_dict: + print_figure_kwargs = figure_kwargs_dict + self._set_config_option( 'InlineBackend.print_figure_kwargs', print_figure_kwargs) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spyder-kernels-2.0.1/spyder_kernels/utils/tests/test_iofuncs.py new/spyder-kernels-2.0.2/spyder_kernels/utils/tests/test_iofuncs.py --- old/spyder-kernels-2.0.1/spyder_kernels/utils/tests/test_iofuncs.py 2021-04-02 20:27:40.000000000 +0200 +++ new/spyder-kernels-2.0.2/spyder_kernels/utils/tests/test_iofuncs.py 2021-05-02 19:36:28.000000000 +0200 @@ -87,7 +87,7 @@ A = 1 B = 'ham' C = np.eye(3) - D = {'a': True, 'b': np.eye(4, dtype=np.complex)} + D = {'a': True, 'b': np.eye(4, dtype=np.complex128)} E = [np.eye(2, dtype=np.int64), 42.0, np.eye(3, dtype=np.bool_)] return {'A': A, 'B': B, 'C': C, 'D': D, 'E': E} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spyder-kernels-2.0.1/spyder_kernels/utils/tests/test_nsview.py new/spyder-kernels-2.0.2/spyder_kernels/utils/tests/test_nsview.py --- old/spyder-kernels-2.0.1/spyder_kernels/utils/tests/test_nsview.py 2021-04-02 20:27:40.000000000 +0200 +++ new/spyder-kernels-2.0.2/spyder_kernels/utils/tests/test_nsview.py 2021-05-02 19:36:28.000000000 +0200 @@ -68,7 +68,7 @@ df = pd.Index([1,2,3]) assert get_size(df) == (3,) - arr = np.array([[1,2,3], [1,2,3]], dtype=np.complex) + arr = np.array([[1,2,3], [1,2,3]], dtype=np.complex128) assert get_size(arr) == (2, 3) img = PIL.Image.new('RGB', (256,256))