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-10-27 22:21:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-spyder-kernels (Old)
and /work/SRC/openSUSE:Factory/.python-spyder-kernels.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-spyder-kernels"
Wed Oct 27 22:21:21 2021 rev:29 rq:927793 version:2.1.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-spyder-kernels/python-spyder-kernels.changes
2021-10-11 15:32:56.262971988 +0200
+++
/work/SRC/openSUSE:Factory/.python-spyder-kernels.new.1890/python-spyder-kernels.changes
2021-10-27 22:21:42.583214161 +0200
@@ -1,0 +2,7 @@
+Mon Oct 25 19:15:09 UTC 2021 - Ben Greiner <[email protected]>
+
+- Unpin jupyter_client<7
+ * spyder-kernels-pr328-unpin_jupyter-client.patch
+ * gh#spyder-ide/spyder-kernels#328
+
+-------------------------------------------------------------------
New:
----
spyder-kernels-pr328-unpin_jupyter-client.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-spyder-kernels.spec ++++++
--- /var/tmp/diff_new_pack.4IRgao/_old 2021-10-27 22:21:42.999214375 +0200
+++ /var/tmp/diff_new_pack.4IRgao/_new 2021-10-27 22:21:42.999214375 +0200
@@ -28,6 +28,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: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM spyder-kernels-pr328-unpin_jupyter-client.patch --
gh#spyder-ide/spyder-kernels#328
+Patch0:
https://github.com/spyder-ide/spyder-kernels/pull/328.patch#/spyder-kernels-pr328-unpin_jupyter-client.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -39,7 +41,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 with
%python-jupyter_client < 7}
+BuildRequires: %{python_module jupyter_client >= 5.3.4}
BuildRequires: %{python_module matplotlib}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pandas}
@@ -52,9 +54,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
@@ -70,7 +72,7 @@
all inside the IDE.
%prep
-%setup -q -n spyder-kernels-%{version}
+%autosetup -p1 -n spyder-kernels-%{version}
%build
%python_build
++++++ spyder-kernels-pr328-unpin_jupyter-client.patch ++++++
>From e009d4ca42957e76f4c41809a61cf63c3bc819b4 Mon Sep 17 00:00:00 2001
From: Ben Greiner <[email protected]>
Date: Mon, 25 Oct 2021 21:06:33 +0200
Subject: [PATCH] unpin jupyter_client<7: remove block kwarg
---
setup.py | 2 +-
.../console/tests/test_console_kernel.py | 62 +++++++++----------
2 files changed, 32 insertions(+), 32 deletions(-)
diff --git a/setup.py b/setup.py
index 4fcf9dc6..1da6e071 100644
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@ def get_version(module='spyder_kernels'):
'ipykernel>=5.3.0; python_version>="3"',
'ipython<6; python_version<"3"',
'ipython>=7.6.0; python_version>="3"',
- 'jupyter-client>=5.3.4,<7',
+ 'jupyter-client>=5.3.4',
'pyzmq>=17',
'wurlitzer>=1.0.3;platform_system!="Windows"',
]
diff --git a/spyder_kernels/console/tests/test_console_kernel.py
b/spyder_kernels/console/tests/test_console_kernel.py
index f020ebda..11a370f0 100644
--- a/spyder_kernels/console/tests/test_console_kernel.py
+++ b/spyder_kernels/console/tests/test_console_kernel.py
@@ -57,9 +57,9 @@ def setup_kernel(cmd):
This function was taken from the ipykernel project.
We plan to remove it when dropping support for python 2.
- Returns
+ Yields
-------
- kernel_manager: connected KernelManager instance
+ client: jupyter_client.BlockingKernelClient connected to the kernel
"""
kernel = Popen([sys.executable, '-c', cmd], stdout=PIPE, stderr=PIPE)
try:
@@ -423,7 +423,7 @@ def test_cwd_in_sys_path():
with setup_kernel(cmd) as client:
msg_id = client.execute("import sys; sys_path = sys.path",
user_expressions={'output':'sys_path'})
- reply = client.get_shell_msg(block=True, timeout=TIMEOUT)
+ reply = client.get_shell_msg(timeout=TIMEOUT)
# Transform value obtained through user_expressions
user_expressions = reply['content']['user_expressions']
@@ -447,7 +447,7 @@ def test_multiprocessing(tmpdir):
with setup_kernel(cmd) as client:
# Remove all variables
client.execute("%reset -f")
- client.get_shell_msg(block=True, timeout=TIMEOUT)
+ client.get_shell_msg(timeout=TIMEOUT)
# Write multiprocessing code to a file
code = """
@@ -465,11 +465,11 @@ def f(x):
# Run code
client.execute("runfile(r'{}')".format(to_text_string(p)))
- client.get_shell_msg(block=True, timeout=TIMEOUT)
+ client.get_shell_msg(timeout=TIMEOUT)
# Verify that the `result` variable is defined
client.inspect('result')
- msg = client.get_shell_msg(block=True, timeout=TIMEOUT)
+ msg = client.get_shell_msg(timeout=TIMEOUT)
content = msg['content']
assert content['found']
@@ -487,7 +487,7 @@ def test_dask_multiprocessing(tmpdir):
with setup_kernel(cmd) as client:
# Remove all variables
client.execute("%reset -f")
- client.get_shell_msg(block=True, timeout=TIMEOUT)
+ client.get_shell_msg(timeout=TIMEOUT)
# Write multiprocessing code to a file
# Runs two times to verify that in the second case it doesn't break
@@ -504,14 +504,14 @@ def test_dask_multiprocessing(tmpdir):
# Run code two times
client.execute("runfile(r'{}')".format(to_text_string(p)))
- client.get_shell_msg(block=True, timeout=TIMEOUT)
+ client.get_shell_msg(timeout=TIMEOUT)
client.execute("runfile(r'{}')".format(to_text_string(p)))
- client.get_shell_msg(block=True, timeout=TIMEOUT)
+ client.get_shell_msg(timeout=TIMEOUT)
# Verify that the `x` variable is defined
client.inspect('x')
- msg = client.get_shell_msg(block=True, timeout=TIMEOUT)
+ msg = client.get_shell_msg(timeout=TIMEOUT)
content = msg['content']
assert content['found']
@@ -527,7 +527,7 @@ def test_runfile(tmpdir):
with setup_kernel(cmd) as client:
# Remove all variables
client.execute("%reset -f")
- client.get_shell_msg(block=True, timeout=TIMEOUT)
+ client.get_shell_msg(timeout=TIMEOUT)
# Write defined variable code to a file
code = u"result = 'hello world'; error # make an error"
@@ -547,40 +547,40 @@ def test_runfile(tmpdir):
# Run code file `d` to define `result` even after an error
client.execute("runfile(r'{}', current_namespace=False)"
.format(to_text_string(d)))
- client.get_shell_msg(block=True, timeout=TIMEOUT)
+ client.get_shell_msg(timeout=TIMEOUT)
# Verify that `result` is defined in the current namespace
client.inspect('result')
- msg = client.get_shell_msg(block=True, timeout=TIMEOUT)
+ msg = client.get_shell_msg(timeout=TIMEOUT)
content = msg['content']
assert content['found']
# Run code file `u` without current namespace
client.execute("runfile(r'{}', current_namespace=False)"
.format(to_text_string(u)))
- client.get_shell_msg(block=True, timeout=TIMEOUT)
+ client.get_shell_msg(timeout=TIMEOUT)
# Verify that the variable `result2` is defined
client.inspect('result2')
- msg = client.get_shell_msg(block=True, timeout=TIMEOUT)
+ msg = client.get_shell_msg(timeout=TIMEOUT)
content = msg['content']
assert content['found']
# Run code file `u` with current namespace
client.execute("runfile(r'{}', current_namespace=True)"
.format(to_text_string(u)))
- msg = client.get_shell_msg(block=True, timeout=TIMEOUT)
+ msg = client.get_shell_msg(timeout=TIMEOUT)
content = msg['content']
# Verify that the variable `result3` is defined
client.inspect('result3')
- msg = client.get_shell_msg(block=True, timeout=TIMEOUT)
+ msg = client.get_shell_msg(timeout=TIMEOUT)
content = msg['content']
assert content['found']
# Verify that the variable `__file__` is undefined
client.inspect('__file__')
- msg = client.get_shell_msg(block=True, timeout=TIMEOUT)
+ msg = client.get_shell_msg(timeout=TIMEOUT)
content = msg['content']
assert not content['found']
@@ -601,14 +601,14 @@ def test_np_threshold(kernel):
suppress=True,
formatter={'float_kind':'{:0.2f}'.format})
""")
- client.get_shell_msg(block=True, timeout=TIMEOUT)
+ client.get_shell_msg(timeout=TIMEOUT)
# Create a big Numpy array and an array to check decimal format
client.execute("""
x = np.random.rand(75000,5);
a = np.array([123412341234.123412341234])
""")
- client.get_shell_msg(block=True, timeout=TIMEOUT)
+ client.get_shell_msg(timeout=TIMEOUT)
# Assert that NumPy threshold, suppress and formatter
# are the same as the ones set by the user
@@ -617,29 +617,29 @@ def test_np_threshold(kernel):
s = np.get_printoptions()['suppress'];
f = np.get_printoptions()['formatter']
""")
- client.get_shell_msg(block=True, timeout=TIMEOUT)
+ client.get_shell_msg(timeout=TIMEOUT)
# Check correct decimal format
client.inspect('a')
- msg = client.get_shell_msg(block=True, timeout=TIMEOUT)
+ msg = client.get_shell_msg(timeout=TIMEOUT)
content = msg['content']['data']['text/plain']
assert "123412341234.12" in content
# Check threshold value
client.inspect('t')
- msg = client.get_shell_msg(block=True, timeout=TIMEOUT)
+ msg = client.get_shell_msg(timeout=TIMEOUT)
content = msg['content']['data']['text/plain']
assert "inf" in content
# Check suppress value
client.inspect('s')
- msg = client.get_shell_msg(block=True, timeout=TIMEOUT)
+ msg = client.get_shell_msg(timeout=TIMEOUT)
content = msg['content']['data']['text/plain']
assert "True" in content
# Check formatter
client.inspect('f')
- msg = client.get_shell_msg(block=True, timeout=TIMEOUT)
+ msg = client.get_shell_msg(timeout=TIMEOUT)
content = msg['content']['data']['text/plain']
assert "{'float_kind': <built-in method format of str object" in
content
@@ -667,7 +667,7 @@ def test_turtle_launch(tmpdir):
with setup_kernel(cmd) as client:
# Remove all variables
client.execute("%reset -f")
- client.get_shell_msg(block=True, timeout=TIMEOUT)
+ client.get_shell_msg(timeout=TIMEOUT)
# Write turtle code to a file
code = """
@@ -692,11 +692,11 @@ def test_turtle_launch(tmpdir):
# Run code
client.execute("runfile(r'{}')".format(to_text_string(p)))
- client.get_shell_msg(block=True, timeout=TIMEOUT)
+ client.get_shell_msg(timeout=TIMEOUT)
# Verify that the `tess` variable is defined
client.inspect('tess')
- msg = client.get_shell_msg(block=True, timeout=TIMEOUT)
+ msg = client.get_shell_msg(timeout=TIMEOUT)
content = msg['content']
assert content['found']
@@ -708,11 +708,11 @@ def test_turtle_launch(tmpdir):
# Run code again
client.execute("runfile(r'{}')".format(to_text_string(p)))
- client.get_shell_msg(block=True, timeout=TIMEOUT)
+ client.get_shell_msg(timeout=TIMEOUT)
# Verify that the `a` variable is defined
client.inspect('a')
- msg = client.get_shell_msg(block=True, timeout=TIMEOUT)
+ msg = client.get_shell_msg(timeout=TIMEOUT)
content = msg['content']
assert content['found']
@@ -727,7 +727,7 @@ def test_matplotlib_inline(kernel):
# Get current backend
code = "import matplotlib; backend = matplotlib.get_backend()"
client.execute(code, user_expressions={'output': 'backend'})
- reply = client.get_shell_msg(block=True, timeout=TIMEOUT)
+ reply = client.get_shell_msg(timeout=TIMEOUT)
# Transform value obtained through user_expressions
user_expressions = reply['content']['user_expressions']