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-09-03 21:26:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-spyder-kernels (Old)
 and      /work/SRC/openSUSE:Factory/.python-spyder-kernels.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-spyder-kernels"

Fri Sep  3 21:26:07 2021 rev:27 rq:916060 version:2.1.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-spyder-kernels/python-spyder-kernels.changes  
    2021-08-06 22:45:25.966001207 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-spyder-kernels.new.1899/python-spyder-kernels.changes
    2021-09-03 21:26:55.418229472 +0200
@@ -1,0 +2,9 @@
+Thu Sep  2 13:54:29 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Update to version 2.1.1
+  * Avoid runfile to be shadowed by other packages
+  * Remove dependency on ipython_genutils
+  * Memoize results of is_module_installed
+  * Restrict jupyter-client to be less than version 7
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ python-spyder-kernels.spec ++++++
--- /var/tmp/diff_new_pack.77LGFs/_old  2021-09-03 21:26:55.930230485 +0200
+++ /var/tmp/diff_new_pack.77LGFs/_new  2021-09-03 21:26:55.934230493 +0200
@@ -20,7 +20,7 @@
 %define skip_python2 1
 %define skip_python36 1
 Name:           python-spyder-kernels
-Version:        2.1.0
+Version:        2.1.1
 Release:        0
 Summary:        Jupyter kernels for Spyder's console
 License:        MIT
@@ -39,7 +39,7 @@
 BuildRequires:  %{python_module flaky}
 BuildRequires:  %{python_module ipykernel >= 5.3.0}
 BuildRequires:  %{python_module ipython >= 7.6.0}
-BuildRequires:  %{python_module jupyter_client >= 5.3.4}
+BuildRequires:  %{python_module jupyter_client >= 5.3.4 with 
%python-jupyter_client < 7}
 BuildRequires:  %{python_module matplotlib}
 BuildRequires:  %{python_module numpy}
 BuildRequires:  %{python_module pandas}
@@ -52,9 +52,9 @@
 Requires:       python-cloudpickle
 Requires:       python-ipykernel >= 5.3.0
 Requires:       python-ipython >= 7.6.0
-Requires:       python-jupyter_client >= 5.3.4
 Requires:       python-pyzmq >= 17
 Requires:       python-wurlitzer >= 1.0.3
+Requires:       (python-jupyter_client >= 5.3.4 with python-jupyter_client < 7)
 BuildArch:      noarch
 
 %python_subpackages

++++++ python-spyder-kernels-2.1.0.tar.gz -> python-spyder-kernels-2.1.1.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder-kernels-2.1.0/.github/workflows/linux-tests.yml 
new/spyder-kernels-2.1.1/.github/workflows/linux-tests.yml
--- old/spyder-kernels-2.1.0/.github/workflows/linux-tests.yml  2021-07-31 
20:21:53.000000000 +0200
+++ new/spyder-kernels-2.1.1/.github/workflows/linux-tests.yml  2021-09-01 
17:34:40.000000000 +0200
@@ -38,13 +38,14 @@
            python-version: ${{ matrix.PYTHON_VERSION }} 
       - name: Install package dependencies
         shell: bash -l {0}
-        run: conda install --file requirements/posix.txt -y -q
+        run: |
+          conda install --file requirements/posix.txt -y -q
+          if [ "$PYTHON_VERSION" = "2.7" ]; then conda install --file 
requirements/python-27.txt -y -q; fi
       - name: Install test dependencies
         shell: bash -l {0}
         run: |
           conda install nomkl -y -q
           conda install --file requirements/tests.txt -y -q
-          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.1.0/.github/workflows/macos-tests.yml 
new/spyder-kernels-2.1.1/.github/workflows/macos-tests.yml
--- old/spyder-kernels-2.1.0/.github/workflows/macos-tests.yml  2021-07-31 
20:21:53.000000000 +0200
+++ new/spyder-kernels-2.1.1/.github/workflows/macos-tests.yml  2021-09-01 
17:34:40.000000000 +0200
@@ -34,13 +34,14 @@
            python-version: ${{ matrix.PYTHON_VERSION }} 
       - name: Install package dependencies
         shell: bash -l {0}
-        run: conda install --file requirements/posix.txt -y -q
+        run: |
+          conda install --file requirements/posix.txt -y -q
+          if [ "$PYTHON_VERSION" = "2.7" ]; then conda install --file 
requirements/python-27.txt -y -q; fi
       - name: Install test dependencies
         shell: bash -l {0}
         run: |
           conda install nomkl -y -q
           conda install --file requirements/tests.txt -y -q
-          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.1.0/CHANGELOG.md 
new/spyder-kernels-2.1.1/CHANGELOG.md
--- old/spyder-kernels-2.1.0/CHANGELOG.md       2021-07-31 20:21:53.000000000 
+0200
+++ new/spyder-kernels-2.1.1/CHANGELOG.md       2021-09-01 17:34:40.000000000 
+0200
@@ -1,5 +1,21 @@
 # History of changes
 
+## Version 2.1.1 (2021-09-01)
+
+
+### Pull Requests Merged
+
+* [PR 318](https://github.com/spyder-ide/spyder-kernels/pull/318) - PR: Avoid 
runfile to be shadowed by other packages, by 
[@ccordoba12](https://github.com/ccordoba12)
+* [PR 314](https://github.com/spyder-ide/spyder-kernels/pull/314) - PR: Remove 
dependency on ipython_genutils, by [@Carreau](https://github.com/Carreau)
+* [PR 313](https://github.com/spyder-ide/spyder-kernels/pull/313) - PR: 
Memoize results of is_module_installed, by 
[@ccordoba12](https://github.com/ccordoba12)
+* [PR 309](https://github.com/spyder-ide/spyder-kernels/pull/309) - PR: 
Restrict jupyter-client to be less than version 7, by 
[@ccordoba12](https://github.com/ccordoba12)
+
+In this release 4 pull requests were closed.
+
+
+----
+
+
 ## Version 2.1.0 (2021-07-31)
 
 ### New features
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder-kernels-2.1.0/requirements/python-27.txt 
new/spyder-kernels-2.1.1/requirements/python-27.txt
--- old/spyder-kernels-2.1.0/requirements/python-27.txt 1970-01-01 
01:00:00.000000000 +0100
+++ new/spyder-kernels-2.1.1/requirements/python-27.txt 2021-09-01 
17:34:40.000000000 +0200
@@ -0,0 +1,2 @@
+click =7
+backports.functools_lru_cache
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder-kernels-2.1.0/setup.py 
new/spyder-kernels-2.1.1/setup.py
--- old/spyder-kernels-2.1.0/setup.py   2021-07-31 20:21:53.000000000 +0200
+++ new/spyder-kernels-2.1.1/setup.py   2021-09-01 17:34:40.000000000 +0200
@@ -36,12 +36,13 @@
 
 
 REQUIREMENTS = [
+    'backports.functools-lru-cache; python_version<"3"',
     'cloudpickle',
     'ipykernel<5; python_version<"3"',
     'ipykernel>=5.3.0; python_version>="3"',
     'ipython<6; python_version<"3"',
     'ipython>=7.6.0; python_version>="3"',
-    'jupyter-client>=5.3.4',
+    'jupyter-client>=5.3.4,<7',
     'pyzmq>=17',
     'wurlitzer>=1.0.3;platform_system!="Windows"',
 ]
@@ -91,6 +92,7 @@
         'Programming Language :: Python :: 3.6',
         'Programming Language :: Python :: 3.7',
         'Programming Language :: Python :: 3.8',
+        'Programming Language :: Python :: 3.9',
         'Topic :: Software Development :: Interpreters',
     ]
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder-kernels-2.1.0/spyder_kernels/_version.py 
new/spyder-kernels-2.1.1/spyder_kernels/_version.py
--- old/spyder-kernels-2.1.0/spyder_kernels/_version.py 2021-07-31 
20:21:53.000000000 +0200
+++ new/spyder-kernels-2.1.1/spyder_kernels/_version.py 2021-09-01 
17:34:40.000000000 +0200
@@ -8,5 +8,5 @@
 
 """Version File."""
 
-VERSION_INFO = (2, 1, 0)
+VERSION_INFO = (2, 1, 1)
 __version__ = '.'.join(map(str, VERSION_INFO))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder-kernels-2.1.0/spyder_kernels/console/start.py 
new/spyder-kernels-2.1.1/spyder_kernels/console/start.py
--- old/spyder-kernels-2.1.0/spyder_kernels/console/start.py    2021-07-31 
20:21:53.000000000 +0200
+++ new/spyder-kernels-2.1.1/spyder_kernels/console/start.py    2021-09-01 
17:34:40.000000000 +0200
@@ -46,7 +46,7 @@
 
     # Import our customizations
     site.addsitedir(customize_dir)
-    import spydercustomize
+    import spydercustomize  # noqa
 
     # Remove our customize path from sys.path
     try:
@@ -109,9 +109,18 @@
     # 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"
+    clear_argv = "import sys; sys.argv = ['']; del sys"
     spy_cfg.IPKernelApp.exec_lines = [clear_argv]
 
+    # Set our runfile in builtins here to prevent other packages shadowing it.
+    # This started to be a problem since IPykernel 6.3.0.
+    if not PY2:
+        spy_cfg.IPKernelApp.exec_lines.append(
+            "import builtins; "
+            "builtins.runfile = builtins.spyder_runfile; "
+            "del builtins.spyder_runfile; del builtins"
+        )
+
     # Run lines of code at startup
     run_lines_o = os.environ.get('SPY_RUN_LINES_O')
     if run_lines_o is not None:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder-kernels-2.1.0/spyder_kernels/console/tests/test_console_kernel.py 
new/spyder-kernels-2.1.1/spyder_kernels/console/tests/test_console_kernel.py
--- 
old/spyder-kernels-2.1.0/spyder_kernels/console/tests/test_console_kernel.py    
    2021-07-31 20:21:53.000000000 +0200
+++ 
new/spyder-kernels-2.1.1/spyder_kernels/console/tests/test_console_kernel.py    
    2021-09-01 17:34:40.000000000 +0200
@@ -27,7 +27,6 @@
 from flaky import flaky
 from jupyter_core import paths
 from jupyter_client import BlockingKernelClient
-from ipython_genutils import py3compat
 import numpy as np
 
 # Local imports
@@ -77,7 +76,8 @@
 
         if kernel.poll() is not None:
             o,e = kernel.communicate()
-            e = py3compat.cast_unicode(e)
+            if not PY3 and isinstance(e, bytes):
+                e = e.decode()
             raise IOError("Kernel failed to start:\n%s" % e)
 
         if not os.path.exists(connection_file):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder-kernels-2.1.0/spyder_kernels/customize/spydercustomize.py 
new/spyder-kernels-2.1.1/spyder_kernels/customize/spydercustomize.py
--- old/spyder-kernels-2.1.0/spyder_kernels/customize/spydercustomize.py        
2021-07-31 20:21:53.000000000 +0200
+++ new/spyder-kernels-2.1.1/spyder_kernels/customize/spydercustomize.py        
2021-09-01 17:34:40.000000000 +0200
@@ -580,7 +580,13 @@
         sys.argv = ['']
 
 
-builtins.runfile = runfile
+# IPykernel 6.3.0+ shadows our runfile because it depends on the Pydev
+# debugger, which adds its own runfile to builtins. So we replace it with
+# our own using exec_lines in start.py
+if PY2:
+    builtins.runfile = runfile
+else:
+    builtins.spyder_runfile = runfile
 
 
 def debugfile(filename=None, args=None, wdir=None, post_mortem=False,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder-kernels-2.1.0/spyder_kernels/py3compat.py 
new/spyder-kernels-2.1.1/spyder_kernels/py3compat.py
--- old/spyder-kernels-2.1.0/spyder_kernels/py3compat.py        2021-07-31 
20:21:53.000000000 +0200
+++ new/spyder-kernels-2.1.1/spyder_kernels/py3compat.py        2021-09-01 
17:34:40.000000000 +0200
@@ -258,6 +258,7 @@
     import string
     str_lower = string.lower
     from itertools import izip_longest as zip_longest
+    from backports.functools_lru_cache import lru_cache
 else:
     # Python 3
     getcwd = os.getcwd
@@ -265,6 +266,7 @@
         return (a > b) - (a < b)
     str_lower = str.lower
     from itertools import zip_longest
+    from functools import lru_cache
 
 def qbytearray_to_str(qba):
     """Convert QByteArray object to str in a way compatible with Python 2/3"""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder-kernels-2.1.0/spyder_kernels/utils/misc.py 
new/spyder-kernels-2.1.1/spyder_kernels/utils/misc.py
--- old/spyder-kernels-2.1.0/spyder_kernels/utils/misc.py       2021-07-31 
20:21:53.000000000 +0200
+++ new/spyder-kernels-2.1.1/spyder_kernels/utils/misc.py       2021-09-01 
17:34:40.000000000 +0200
@@ -10,7 +10,10 @@
 
 import re
 
+from spyder_kernels.py3compat import lru_cache
 
+
+@lru_cache(maxsize=100)
 def is_module_installed(module_name):
     """
     Simpler version of spyder.utils.programs.is_module_installed.

Reply via email to