Hello community,
here is the log from the commit of package python-spyder-kernels for
openSUSE:Factory checked in at 2019-06-03 18:51:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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"
Mon Jun 3 18:51:04 2019 rev:5 rq:706950 version:0.4.4
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-spyder-kernels/python-spyder-kernels.changes
2019-05-22 10:58:28.978881117 +0200
+++
/work/SRC/openSUSE:Factory/.python-spyder-kernels.new.5148/python-spyder-kernels.changes
2019-06-03 18:51:06.856521844 +0200
@@ -1,0 +2,18 @@
+Sun Jun 2 20:44:32 UTC 2019 - Sebastian Wagner <[email protected]>
+
+- actually remove the unneeded patches
+- add 818a6b5f619ef917f4c3413c9522212cd9b2fdfd.patch for a numpy change
+
+-------------------------------------------------------------------
+Sat May 4 09:36:33 UTC 2019 - Sebastian Wagner <[email protected]>
+
+- remove make-tk-optional.patch, included already
+- remove make-turtle-optional.patch, included already
+- update to version 0.4.4:
+ * Issues Closed
+ * Issue 102 - Tkinter is now required for version 0.4.3 after patching the
turtle code (PR 103)
+ * Pull Requests Merged
+ * PR 106 - PR: Skip test_turtle_launch if Tk is not installed
+ * PR 103 - PR: Enclose turtle customizations in a try/except to avoid a
dependency on Tk (102)
+
+-------------------------------------------------------------------
Old:
----
make-tk-optional.patch
make-turtle-optional.patch
python-spyder-kernels-0.4.3.tar.gz
New:
----
818a6b5f619ef917f4c3413c9522212cd9b2fdfd.patch
python-spyder-kernels-0.4.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-spyder-kernels.spec ++++++
--- /var/tmp/diff_new_pack.VA390E/_old 2019-06-03 18:51:07.764521532 +0200
+++ /var/tmp/diff_new_pack.VA390E/_new 2019-06-03 18:51:07.768521531 +0200
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-spyder-kernels
-Version: 0.4.3
+Version: 0.4.4
Release: 0
Summary: Jupyter kernels for Spyder's console
License: MIT
@@ -26,10 +26,8 @@
Url: https://github.com/spyder-ide/spyder-kernels
# 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
+# PATCH-FIX-UPSTREAM 818a6b5f619ef917f4c3413c9522212cd9b2fdfd.patch
+Patch0:
https://github.com/spyder-ide/spyder-kernels/commit/818a6b5f619ef917f4c3413c9522212cd9b2fdfd.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -70,7 +68,6 @@
%prep
%setup -q -n spyder-kernels-%{version}
%patch0 -p1
-%patch1 -p1
%build
%python_build
++++++ 818a6b5f619ef917f4c3413c9522212cd9b2fdfd.patch ++++++
>From 818a6b5f619ef917f4c3413c9522212cd9b2fdfd Mon Sep 17 00:00:00 2001
From: Carlos Cordoba <[email protected]>
Date: Thu, 25 Apr 2019 14:32:42 +0200
Subject: [PATCH] Testing: Fix real_values fixture
---
spyder_kernels/utils/tests/test_iofuncs.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/spyder_kernels/utils/tests/test_iofuncs.py
b/spyder_kernels/utils/tests/test_iofuncs.py
index 9777e9b..524670b 100644
--- a/spyder_kernels/utils/tests/test_iofuncs.py
+++ b/spyder_kernels/utils/tests/test_iofuncs.py
@@ -107,7 +107,7 @@ def real_values():
like other structs, matrices and Cell Arrays.
"""
path = os.path.join(LOCATION, 'numpy_data.npz')
- file_s = np.load(path)
+ file_s = np.load(path, allow_pickle=True)
A = file_s['A'].item()
B = file_s['B']
C = file_s['C']
++++++ python-spyder-kernels-0.4.3.tar.gz -> python-spyder-kernels-0.4.4.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/spyder-kernels-0.4.3/CHANGELOG.md
new/spyder-kernels-0.4.4/CHANGELOG.md
--- old/spyder-kernels-0.4.3/CHANGELOG.md 2019-03-31 20:00:56.000000000
+0200
+++ new/spyder-kernels-0.4.4/CHANGELOG.md 2019-04-08 11:49:16.000000000
+0200
@@ -1,5 +1,22 @@
# History of changes
+## Version 0.4.4 (2019-04-08)
+
+### Issues Closed
+
+* [Issue 102](https://github.com/spyder-ide/spyder-kernels/issues/102) -
Tkinter is now required for version 0.4.3 after patching the turtle code ([PR
103](https://github.com/spyder-ide/spyder-kernels/pull/103))
+
+In this release 1 issue was closed.
+
+### Pull Requests Merged
+
+* [PR 106](https://github.com/spyder-ide/spyder-kernels/pull/106) - PR: Skip
test_turtle_launch if Tk is not installed
+* [PR 103](https://github.com/spyder-ide/spyder-kernels/pull/103) - PR:
Enclose turtle customizations in a try/except to avoid a dependency on Tk
([102](https://github.com/spyder-ide/spyder-kernels/issues/102))
+
+In this release 2 pull requests were closed.
+
+----
+
## Version 0.4.3 (2019-03-31)
### Issues Closed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/spyder-kernels-0.4.3/spyder_kernels/_version.py
new/spyder-kernels-0.4.4/spyder_kernels/_version.py
--- old/spyder-kernels-0.4.3/spyder_kernels/_version.py 2019-03-31
20:00:56.000000000 +0200
+++ new/spyder-kernels-0.4.4/spyder_kernels/_version.py 2019-04-08
11:49:16.000000000 +0200
@@ -8,5 +8,5 @@
"""Version File."""
-VERSION_INFO = (0, 4, 3)
+VERSION_INFO = (0, 4, 4)
__version__ = '.'.join(map(str, VERSION_INFO))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/spyder-kernels-0.4.3/spyder_kernels/console/tests/test_console_kernel.py
new/spyder-kernels-0.4.4/spyder_kernels/console/tests/test_console_kernel.py
---
old/spyder-kernels-0.4.3/spyder_kernels/console/tests/test_console_kernel.py
2019-03-31 20:00:56.000000000 +0200
+++
new/spyder-kernels-0.4.4/spyder_kernels/console/tests/test_console_kernel.py
2019-04-08 11:49:16.000000000 +0200
@@ -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 @@
assert content['found']
[email protected](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
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/spyder-kernels-0.4.3/spyder_kernels/customize/spydercustomize.py
new/spyder-kernels-0.4.4/spyder_kernels/customize/spydercustomize.py
--- old/spyder-kernels-0.4.3/spyder_kernels/customize/spydercustomize.py
2019-03-31 20:00:56.000000000 +0200
+++ new/spyder-kernels-0.4.4/spyder_kernels/customize/spydercustomize.py
2019-04-08 11:49:16.000000000 +0200
@@ -215,16 +215,19 @@
# 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
#==============================================================================