Hello community,

here is the log from the commit of package python-spyder-kernels for 
openSUSE:Factory checked in at 2019-05-22 10:58:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-spyder-kernels (Old)
 and      /work/SRC/openSUSE:Factory/.python-spyder-kernels.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-spyder-kernels"

Wed May 22 10:58:22 2019 rev:4 rq:695334 version:0.4.3

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-spyder-kernels/python-spyder-kernels.changes  
    2018-09-26 16:11:31.651475587 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-spyder-kernels.new.5148/python-spyder-kernels.changes
    2019-05-22 10:58:28.978881117 +0200
@@ -1,0 +2,55 @@
+Sun Apr  7 12:03:58 UTC 2019 - Sebastian Wagner <sebix+novell....@sebix.at>
+
+- add make-tk-optional.patch
+- add make-turtle-optional.patch
+- update to version 0.4.3:
+ - Issues closed:
+  - [Issue 91](https://github.com/spyder-ide/spyder-kernels/issues/91) - 
KeyError when running "%reset -f" programmatically ([PR 
96](https://github.com/spyder-ide/spyder-kernels/pull/96))
+ - Pull Requests Merged:
+  - [PR 96](https://github.com/spyder-ide/spyder-kernels/pull/96) - PR:  Avoid 
error when trying to pop __file__ out of the current namespace 
([91](https://github.com/spyder-ide/spyder-kernels/issues/91))
+  - [PR 92](https://github.com/spyder-ide/spyder-kernels/pull/92) - PR: 
Include user site-packages directory in the list of excluded paths by the UMR 
([8776](https://github.com/spyder-ide/spyder/issues/8776))
+  - [PR 90](https://github.com/spyder-ide/spyder-kernels/pull/90) - PR: Patch 
turtle.bye to make it work with multiple runnings of the same code 
([6278](https://github.com/spyder-ide/spyder/issues/6278))
+- update to version 0.4.2:
+ - Issues closed:
+  - [Issue 85](https://github.com/spyder-ide/spyder-kernels/issues/85) - 
NameError: name 'modpath' is not defined ([PR 
86](https://github.com/spyder-ide/spyder-kernels/pull/86))
+ - Pull Requests Merged:
+  - [PR 88](https://github.com/spyder-ide/spyder-kernels/pull/88) - PR: 
Improve Cython activation
+  - [PR 87](https://github.com/spyder-ide/spyder-kernels/pull/87) - PR: Fix 
running Cython files
+  - [PR 86](https://github.com/spyder-ide/spyder-kernels/pull/86) - PR: Fix 
problems with UMR's run method 
([85](https://github.com/spyder-ide/spyder-kernels/issues/85))
+- update to version 0.4.1:
+ - Pull Requests Merged:
+  - [PR 84](https://github.com/spyder-ide/spyder-kernels/pull/84) - PR: Better 
way to skip standard library and site-packages modules from UMR
+  - [PR 83](https://github.com/spyder-ide/spyder-kernels/pull/83) - PR: 
Blacklist tensorflow from the UMR 
([8697](https://github.com/spyder-ide/spyder/issues/8697))
+- update to version 0.4:
+ - New features:
+  - This release fixes several important issues that prevented
+    saving the current namespace to work as expected.
+ - Issues closed:
+  - [Issue 75](https://github.com/spyder-ide/spyder-kernels/issues/75) - 
Namespace serialization silently fails if any object is unserializable, e.g. a 
Python module ([PR 81](https://github.com/spyder-ide/spyder-kernels/pull/81))
+  - [Issue 9](https://github.com/spyder-ide/spyder-kernels/issues/9) - Spydata 
files won't import if the original filename is changed ([PR 
80](https://github.com/spyder-ide/spyder-kernels/pull/80))
+ - Pull Requests Merged:
+  - [PR 82](https://github.com/spyder-ide/spyder-kernels/pull/82) - PR: 
Enclose calls to load wurlitzer and autoreload in try/except's 
([8668](https://github.com/spyder-ide/spyder/issues/8668))
+  - [PR 81](https://github.com/spyder-ide/spyder-kernels/pull/81) - PR: Fix 
and improve saving of Spyder namespace with many types of objects 
([75](https://github.com/spyder-ide/spyder-kernels/issues/75))
+  - [PR 80](https://github.com/spyder-ide/spyder-kernels/pull/80) - PR: Fix 
loading Spydata file with changed filename and other edge-cases in load_dict 
([9](https://github.com/spyder-ide/spyder-kernels/issues/9))
+- update to version 0.3:
+ - New features:
+  - Add Wurlitzer as a new dependency on Posix systems.
+  - Add tests for the console kernel.
+ - Issues closed:
+  - [Issue 62](https://github.com/spyder-ide/spyder-kernels/issues/62) - Add 
support for AppVeyor ([PR 
63](https://github.com/spyder-ide/spyder-kernels/pull/63))
+  - [Issue 60](https://github.com/spyder-ide/spyder-kernels/issues/60) - Only 
load Wurlitzer in Posix systems ([PR 
64](https://github.com/spyder-ide/spyder-kernels/pull/64))
+  - [Issue 23](https://github.com/spyder-ide/spyder-kernels/issues/23) - Add 
tests for the console kernel ([PR 
37](https://github.com/spyder-ide/spyder-kernels/pull/37))
+ - Pull Requests Merged:
+  - [PR 64](https://github.com/spyder-ide/spyder-kernels/pull/64) - PR: Don't 
load Wurlitzer extension on Windows because it has no effect there 
([60](https://github.com/spyder-ide/spyder-kernels/issues/60))
+  - [PR 63](https://github.com/spyder-ide/spyder-kernels/pull/63) - PR: Test 
on Windows with Appveyor 
([62](https://github.com/spyder-ide/spyder-kernels/issues/62))
+  - [PR 61](https://github.com/spyder-ide/spyder-kernels/pull/61) - PR: Patch 
multiprocessing to make it work when all variables are removed 
([8128](https://github.com/spyder-ide/spyder/issues/8128))
+  - [PR 59](https://github.com/spyder-ide/spyder-kernels/pull/59) - PR: Filter 
deprecation warnings in ipykernel 
([8103](https://github.com/spyder-ide/spyder/issues/8103))
+  - [PR 56](https://github.com/spyder-ide/spyder-kernels/pull/56) - PR: Add 
Wurlitzer to Readme
+  - [PR 55](https://github.com/spyder-ide/spyder-kernels/pull/55) - PR: 
Exclude all tests from our tarballs
+  - [PR 54](https://github.com/spyder-ide/spyder-kernels/pull/54) - PR: Add 
the Wurlitzer package to capture stdout/stderr from C libraries 
([3777](https://github.com/spyder-ide/spyder/issues/3777))
+  - [PR 53](https://github.com/spyder-ide/spyder-kernels/pull/53) - PR: Remove 
current working directory from sys.path before starting the console kernel 
([8007](https://github.com/spyder-ide/spyder/issues/8007))
+  - [PR 37](https://github.com/spyder-ide/spyder-kernels/pull/37) - PR: 
Initial tests for the console kernel 
([23](https://github.com/spyder-ide/spyder-kernels/issues/23))
+  - [PR 36](https://github.com/spyder-ide/spyder-kernels/pull/36) - PR: Make 
tests to really fail in CircleCI
+  - [PR 21](https://github.com/spyder-ide/spyder-kernels/pull/21) - PR: Add 
AUTHORS.txt in MANIFEST.in to include in package 
+
+-------------------------------------------------------------------

Old:
----
  spyder-kernels-0.2.6.tar.gz

New:
----
  make-tk-optional.patch
  make-turtle-optional.patch
  python-spyder-kernels-0.4.3.tar.gz

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

Other differences:
------------------
++++++ python-spyder-kernels.spec ++++++
--- /var/tmp/diff_new_pack.sgEjoe/_old  2019-05-22 10:58:30.826879516 +0200
+++ /var/tmp/diff_new_pack.sgEjoe/_new  2019-05-22 10:58:30.870879478 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-spyder-kernels
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,19 +12,24 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-spyder-kernels
-Version:        0.2.6
+Version:        0.4.3
 Release:        0
 Summary:        Jupyter kernels for Spyder's console
 License:        MIT
 Group:          Development/Languages/Python
 Url:            https://github.com/spyder-ide/spyder-kernels
-Source:         
https://files.pythonhosted.org/packages/source/s/spyder-kernels/spyder-kernels-%{version}.tar.gz
+# PyPI tarballs do not include the tests: 
https://github.com/spyder-ide/spyder-kernels/issues/66
+Source:         
https://github.com/spyder-ide/spyder-kernels/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM make-turtle-optional.patch 
https://github.com/spyder-ide/spyder-kernels/issues/102
+Patch0:         
https://github.com/spyder-ide/spyder-kernels/pull/103.patch#/make-turtle-optional.patch
+# PATCH-FIX-UPSTREAM make-tk-optional.patch 
https://github.com/spyder-ide/spyder-kernels/issues/102
+Patch1:         
https://github.com/spyder-ide/spyder-kernels/pull/106.patch#/make-tk-optional.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -33,15 +38,18 @@
 BuildRequires:  %{python_module cloudpickle}
 BuildRequires:  %{python_module jupyter_client >= 5.2.3}
 BuildRequires:  %{python_module jupyter_ipykernel >= 4.8.2}
+BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module pandas}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module pyzmq >= 17}
+BuildRequires:  %{python_module wurlitzer}
 BuildRequires:  python-futures
 # /SECTION
 Requires:       python-cloudpickle
 Requires:       python-jupyter_client >= 5.2.3
 Requires:       python-jupyter_ipykernel >= 4.8.2
 Requires:       python-pyzmq >= 17
+Requires:       python-wurlitzer
 %ifpython2
 Requires:       python-futures
 %endif
@@ -61,6 +69,8 @@
 
 %prep
 %setup -q -n spyder-kernels-%{version}
+%patch0 -p1
+%patch1 -p1
 
 %build
 %python_build

++++++ make-tk-optional.patch ++++++
>From bd32fcff3fc02a40475d80a49b0c350acfac27fa Mon Sep 17 00:00:00 2001
From: Carlos Cordoba <ccordob...@gmail.com>
Date: Sun, 7 Apr 2019 18:47:42 +0200
Subject: [PATCH] Testing: Skip test_turtle_launch if Tk is not installed

---
 spyder_kernels/console/tests/test_console_kernel.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/spyder_kernels/console/tests/test_console_kernel.py 
b/spyder_kernels/console/tests/test_console_kernel.py
index ca7854d..b8f0fd5 100644
--- a/spyder_kernels/console/tests/test_console_kernel.py
+++ b/spyder_kernels/console/tests/test_console_kernel.py
@@ -35,6 +35,12 @@
 FILES_PATH = os.path.dirname(os.path.realpath(__file__))
 TIMEOUT = 15
 
+TKINTER_INSTALLED = False
+try:
+    import tkinter
+    TKINTER_INSTALLED = True
+except:
+    pass
 
 # =============================================================================
 # Fixtures
@@ -370,6 +376,8 @@ def f(x):
         assert content['found']
 
 
+@pytest.mark.skipif(not TKINTER_INSTALLED,
+                    reason="Doesn't work on Python installations without Tk")
 def test_turtle_launch(tmpdir):
     """Test turtle scripts running in the same kernel."""
     # Command to start the kernel
++++++ make-turtle-optional.patch ++++++
>From 428f78ffb50062d29f75c5991ce94b18daf2600d Mon Sep 17 00:00:00 2001
From: Carlos Cordoba <ccordob...@gmail.com>
Date: Thu, 4 Apr 2019 13:08:06 +0200
Subject: [PATCH] Customize: Enclose turtle customizations in a try/except to
 avoid a dependency on Tk

---
 spyder_kernels/customize/spydercustomize.py | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/spyder_kernels/customize/spydercustomize.py 
b/spyder_kernels/customize/spydercustomize.py
index 3be9e0f..54e818e 100644
--- a/spyder_kernels/customize/spydercustomize.py
+++ b/spyder_kernels/customize/spydercustomize.py
@@ -215,16 +215,19 @@ def __init__(self, *args, **kwargs):
 # This is needed to prevent turtle scripts crashes after multiple runs in the
 # same IPython Console instance.
 # See Spyder issue #6278
-import turtle
-from turtle import Screen, Terminator
+try:
+    import turtle
+    from turtle import Screen, Terminator
 
-def spyder_bye():
-    try:
-        Screen().bye()
-        turtle.TurtleScreen._RUNNING = True
-    except Terminator:
-        pass
-turtle.bye = spyder_bye
+    def spyder_bye():
+        try:
+            Screen().bye()
+            turtle.TurtleScreen._RUNNING = True
+        except Terminator:
+            pass
+    turtle.bye = spyder_bye
+except:
+    pass
 
 
 #==============================================================================

Reply via email to