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-06-14 23:11:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-spyder-kernels (Old)
 and      /work/SRC/openSUSE:Factory/.python-spyder-kernels.new.32437 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-spyder-kernels"

Mon Jun 14 23:11:24 2021 rev:25 rq:899995 version:2.0.4

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-spyder-kernels/python-spyder-kernels.changes  
    2021-05-21 21:50:43.966055358 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-spyder-kernels.new.32437/python-spyder-kernels.changes
   2021-06-14 23:11:55.472841415 +0200
@@ -1,0 +2,6 @@
+Mon Jun 14 14:48:16 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Update to version 2.0.4
+  * Support decorator >= 5 (PR 301 by @ccordoba12)
+
+-------------------------------------------------------------------

Old:
----
  python-spyder-kernels-2.0.3.tar.gz

New:
----
  python-spyder-kernels-2.0.4.tar.gz

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

Other differences:
------------------
++++++ python-spyder-kernels.spec ++++++
--- /var/tmp/diff_new_pack.5jEDwh/_old  2021-06-14 23:11:55.844842087 +0200
+++ /var/tmp/diff_new_pack.5jEDwh/_new  2021-06-14 23:11:55.848842095 +0200
@@ -20,7 +20,7 @@
 %define skip_python2 1
 %define skip_python36 1
 Name:           python-spyder-kernels
-Version:        2.0.3
+Version:        2.0.4
 Release:        0
 Summary:        Jupyter kernels for Spyder's console
 License:        MIT
@@ -36,7 +36,6 @@
 BuildRequires:  %{python_module Pillow}
 BuildRequires:  %{python_module cloudpickle}
 BuildRequires:  %{python_module dask-distributed}
-BuildRequires:  %{python_module decorator < 5}
 BuildRequires:  %{python_module flaky}
 BuildRequires:  %{python_module ipykernel >= 5.3.0}
 BuildRequires:  %{python_module ipython >= 7.6.0}
@@ -51,7 +50,6 @@
 BuildRequires:  %{python_module xarray}
 # /SECTION
 Requires:       python-cloudpickle
-Requires:       python-decorator < 5
 Requires:       python-ipykernel >= 5.3.0
 Requires:       python-ipython >= 7.6.0
 Requires:       python-jupyter_client >= 5.3.4

++++++ python-spyder-kernels-2.0.3.tar.gz -> python-spyder-kernels-2.0.4.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder-kernels-2.0.3/.github/workflows/linux-tests.yml 
new/spyder-kernels-2.0.4/.github/workflows/linux-tests.yml
--- old/spyder-kernels-2.0.3/.github/workflows/linux-tests.yml  2021-05-15 
20:14:29.000000000 +0200
+++ new/spyder-kernels-2.0.4/.github/workflows/linux-tests.yml  2021-06-11 
00:53:30.000000000 +0200
@@ -45,6 +45,7 @@
           conda install nomkl -y -q
           conda install --file requirements/tests.txt -y -q
           if [ "$PYTHON_VERSION" != "2.7" ]; then conda install -y -q 
jedi=0.17.2; fi
+          if [ "$PYTHON_VERSION" = "2.7" ]; then conda install -y -q click=7; 
fi
       - name: Install Package
         shell: bash -l {0}
         run: pip install -e .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder-kernels-2.0.3/.github/workflows/macos-tests.yml 
new/spyder-kernels-2.0.4/.github/workflows/macos-tests.yml
--- old/spyder-kernels-2.0.3/.github/workflows/macos-tests.yml  2021-05-15 
20:14:29.000000000 +0200
+++ new/spyder-kernels-2.0.4/.github/workflows/macos-tests.yml  2021-06-11 
00:53:30.000000000 +0200
@@ -41,6 +41,7 @@
           conda install nomkl -y -q
           conda install --file requirements/tests.txt -y -q
           if [ "$PYTHON_VERSION" != "2.7" ]; then conda install -y -q 
jedi=0.17.2; fi
+          if [ "$PYTHON_VERSION" = "2.7" ]; then conda install -y -q click=7; 
fi
       - name: Install Package
         shell: bash -l {0}
         run: pip install -e .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder-kernels-2.0.3/CHANGELOG.md 
new/spyder-kernels-2.0.4/CHANGELOG.md
--- old/spyder-kernels-2.0.3/CHANGELOG.md       2021-05-15 20:14:29.000000000 
+0200
+++ new/spyder-kernels-2.0.4/CHANGELOG.md       2021-06-11 00:53:30.000000000 
+0200
@@ -1,5 +1,29 @@
 # History of changes
 
+## Version 2.0.4 (2021-06-10)
+
+### Issues Closed
+
+* [Issue 288](https://github.com/spyder-ide/spyder-kernels/issues/288) - 
Support decorator >= 5 ([PR 
301](https://github.com/spyder-ide/spyder-kernels/pull/301) by 
[@ccordoba12](https://github.com/ccordoba12))
+
+In this release 1 issue was closed.
+
+### Pull Requests Merged
+
+* [PR 301](https://github.com/spyder-ide/spyder-kernels/pull/301) - PR: Remove 
pin on decorator because the Cython magic is working fine again, by 
[@ccordoba12](https://github.com/ccordoba12) 
([288](https://github.com/spyder-ide/spyder-kernels/issues/288))
+* [PR 299](https://github.com/spyder-ide/spyder-kernels/pull/299) - PR: Clear 
argv before adding the exec lines that come from Spyder, by 
[@ccordoba12](https://github.com/ccordoba12)
+* [PR 298](https://github.com/spyder-ide/spyder-kernels/pull/298) - PR: Use 
backslash instead of slash for UMR path regex detection, by 
[@dalthviz](https://github.com/dalthviz)
+* [PR 297](https://github.com/spyder-ide/spyder-kernels/pull/297) - PR: Don't 
report skipped frames for IPython 7.24+ (Debugger), by 
[@ccordoba12](https://github.com/ccordoba12)
+* [PR 296](https://github.com/spyder-ide/spyder-kernels/pull/296) - PR: 
Redefine comm_manager method to avoid showing warning, by 
[@ccordoba12](https://github.com/ccordoba12)
+* [PR 295](https://github.com/spyder-ide/spyder-kernels/pull/295) - PR: Fix 
recursive debugger, by [@impact27](https://github.com/impact27)
+* [PR 293](https://github.com/spyder-ide/spyder-kernels/pull/293) - PR: 
Install click 7 to run our tests in Python 2, by 
[@ccordoba12](https://github.com/ccordoba12)
+
+In this release 7 pull requests were closed.
+
+
+----
+
+
 ## Version 2.0.3 (2021-05-15)
 
 ### Pull Requests Merged
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder-kernels-2.0.3/setup.py 
new/spyder-kernels-2.0.4/setup.py
--- old/spyder-kernels-2.0.3/setup.py   2021-05-15 20:14:29.000000000 +0200
+++ new/spyder-kernels-2.0.4/setup.py   2021-06-11 00:53:30.000000000 +0200
@@ -37,7 +37,6 @@
 
 REQUIREMENTS = [
     'cloudpickle',
-    'decorator<5',  # Higher versions break the Cython magic
     'ipykernel<5; python_version<"3"',
     'ipykernel>=5.3.0; python_version>="3"',
     'ipython<6; python_version<"3"',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder-kernels-2.0.3/spyder_kernels/_version.py 
new/spyder-kernels-2.0.4/spyder_kernels/_version.py
--- old/spyder-kernels-2.0.3/spyder_kernels/_version.py 2021-05-15 
20:14:29.000000000 +0200
+++ new/spyder-kernels-2.0.4/spyder_kernels/_version.py 2021-06-11 
00:53:30.000000000 +0200
@@ -8,5 +8,5 @@
 
 """Version File."""
 
-VERSION_INFO = (2, 0, 3)
+VERSION_INFO = (2, 0, 4)
 __version__ = '.'.join(map(str, VERSION_INFO))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder-kernels-2.0.3/spyder_kernels/console/kernel.py 
new/spyder-kernels-2.0.4/spyder_kernels/console/kernel.py
--- old/spyder-kernels-2.0.3/spyder_kernels/console/kernel.py   2021-05-15 
20:14:29.000000000 +0200
+++ new/spyder-kernels-2.0.4/spyder_kernels/console/kernel.py   2021-06-11 
00:53:30.000000000 +0200
@@ -64,6 +64,7 @@
     def __init__(self, *args, **kwargs):
         super(SpyderKernel, self).__init__(*args, **kwargs)
 
+        self.comm_manager.get_comm = self._get_comm
         self.frontend_comm = FrontendComm(self)
 
         # All functions that can be called through the comm
@@ -839,3 +840,16 @@
                 get_ipython().run_line_magic('reload_ext', 'wurlitzer')
             except Exception:
                 pass
+
+    def _get_comm(self, comm_id):
+        """
+        We need to redefine this method from ipykernel.comm_manager to
+        avoid showing a warning when the comm corresponding to comm_id
+        is not present.
+
+        Fixes spyder-ide/spyder#15498
+        """
+        try:
+            return self.comm_manager.comms[comm_id]
+        except KeyError:
+            pass
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder-kernels-2.0.3/spyder_kernels/console/start.py 
new/spyder-kernels-2.0.4/spyder_kernels/console/start.py
--- old/spyder-kernels-2.0.3/spyder_kernels/console/start.py    2021-05-15 
20:14:29.000000000 +0200
+++ new/spyder-kernels-2.0.4/spyder_kernels/console/start.py    2021-06-11 
00:53:30.000000000 +0200
@@ -98,16 +98,20 @@
     if not PY2:
         spy_cfg.IPCompleter.use_jedi = jedi_o
 
+    # Clear terminal arguments input.
+    # This needs to be done before adding the exec_lines that come from
+    # Spyder, to avoid deleting the sys module if users want to import
+    # it through them.
+    # See spyder-ide/spyder#15788
+    clear_argv = "import sys;sys.argv = [''];del sys"
+    spy_cfg.IPKernelApp.exec_lines = [clear_argv]
+
     # Run lines of code at startup
     run_lines_o = os.environ.get('SPY_RUN_LINES_O')
     if run_lines_o is not None:
-        spy_cfg.IPKernelApp.exec_lines = [x.strip() for x in 
run_lines_o.split(';')]
-    else:
-        spy_cfg.IPKernelApp.exec_lines = []
-
-    # Clean terminal arguments input
-    clear_argv = "import sys;sys.argv = [''];del sys"
-    spy_cfg.IPKernelApp.exec_lines.append(clear_argv)
+        spy_cfg.IPKernelApp.exec_lines += (
+            [x.strip() for x in run_lines_o.split(';')]
+        )
 
     # Load %autoreload magic
     spy_cfg.IPKernelApp.exec_lines.append(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder-kernels-2.0.3/spyder_kernels/customize/spyderpdb.py 
new/spyder-kernels-2.0.4/spyder_kernels/customize/spyderpdb.py
--- old/spyder-kernels-2.0.3/spyder_kernels/customize/spyderpdb.py      
2021-05-15 20:14:29.000000000 +0200
+++ new/spyder-kernels-2.0.4/spyder_kernels/customize/spyderpdb.py      
2021-06-11 00:53:30.000000000 +0200
@@ -15,8 +15,8 @@
 from collections import namedtuple
 
 from IPython.core.autocall import ZMQExitAutocall
-from IPython.core.getipython import get_ipython
 from IPython.core.debugger import Pdb as ipyPdb
+from IPython.core.getipython import get_ipython
 
 from spyder_kernels.comms.frontendcomm import CommError, frontend_request
 from spyder_kernels.customize.utils import path_is_library
@@ -92,6 +92,10 @@
         self._pdb_breaking = False
         self._frontend_notified = False
 
+        # Don't report hidden frames for IPython 7.24+. This attribute
+        # has no effect in previous versions.
+        self.report_skipped = False
+
     # --- Methods overriden for code execution
     def print_exclamation_warning(self):
         """Print pdb warning for exclamation mark."""
@@ -511,7 +515,19 @@
         argument (which is an arbitrary expression or statement to be
         executed in the current environment).
         """
-        super(SpyderPdb, self).do_debug(arg)
+        try:
+            super(SpyderPdb, self).do_debug(arg)
+        except Exception:
+            if PY2:
+                t, v = sys.exc_info()[:2]
+                if type(t) == type(''):
+                    exc_type_name = t
+                else: exc_type_name = t.__name__
+                print >>self.stdout, '***', exc_type_name + ':', v
+            else:
+                exc_info = sys.exc_info()[:2]
+                self.error(
+                    traceback.format_exception_only(*exc_info)[-1].strip())
         kernel = get_ipython().kernel
         kernel._register_pdb_session(self)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder-kernels-2.0.3/spyder_kernels/customize/utils.py 
new/spyder-kernels-2.0.4/spyder_kernels/customize/utils.py
--- old/spyder-kernels-2.0.3/spyder_kernels/customize/utils.py  2021-05-15 
20:14:29.000000000 +0200
+++ new/spyder-kernels-2.0.4/spyder_kernels/customize/utils.py  2021-06-11 
00:53:30.000000000 +0200
@@ -68,7 +68,7 @@
         # library or installed to site-packages.
         return True
     elif os.name == 'nt':
-        if re.search(r'.*/pkgs/.*', path):
+        if re.search(r'.*\\pkgs\\.*', path):
             return True
         else:
             return False

Reply via email to