Hello community,

here is the log from the commit of package python-octave-kernel for 
openSUSE:Factory checked in at 2019-08-13 13:24:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-octave-kernel (Old)
 and      /work/SRC/openSUSE:Factory/.python-octave-kernel.new.9556 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-octave-kernel"

Tue Aug 13 13:24:58 2019 rev:3 rq:722803 version:0.31.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-octave-kernel/python-octave-kernel.changes    
    2019-06-13 23:04:08.159352248 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-octave-kernel.new.9556/python-octave-kernel.changes
      2019-08-13 13:25:00.793359194 +0200
@@ -1,0 +2,8 @@
+Sun Aug 11 03:27:44 UTC 2019 - Todd R <[email protected]>
+
+- Switch from wheel to sdist.
+- Add fix_octave5.patch
+  Fix tests to work with octave 5 
+  From: gh#Calysto/octave_kernel#160
+
+-------------------------------------------------------------------

Old:
----
  octave_kernel-0.31.0-py3-none-any.whl

New:
----
  fix_octave5.patch
  octave_kernel-0.31.0.tar.gz

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

Other differences:
------------------
++++++ python-octave-kernel.spec ++++++
--- /var/tmp/diff_new_pack.trccjT/_old  2019-08-13 13:25:02.037358866 +0200
+++ /var/tmp/diff_new_pack.trccjT/_new  2019-08-13 13:25:02.041358865 +0200
@@ -24,14 +24,20 @@
 Summary:        A Jupyter kernel for Octave
 Url:            http://github.com/Calysto/octave_kernel
 Group:          Development/Languages/Python
-Source:         
https://files.pythonhosted.org/packages/py3/o/octave-kernel/octave_kernel-%{version}-py3-none-any.whl
+Source:         
https://files.pythonhosted.org/packages/source/o/octave-kernel/octave_kernel-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM fix_octave5.patch -- gh#Calysto/octave_kernel#160
+Patch0:         fix_octave5.patch
 BuildRequires:  %{python_module ipykernel}
 BuildRequires:  %{python_module jupyter_client >= 4.3.0}
 BuildRequires:  %{python_module metakernel >= 0.24.0}
-BuildRequires:  %{python_module pip}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  jupyter-notebook-filesystem
 BuildRequires:  python-rpm-macros
+# SECTION test requirements
+BuildRequires:  %{python_module jupyter_kernel_test}
+BuildRequires:  octave-cli
+# /SECTION
 Requires:       python-ipykernel
 Requires:       python-jupyter_client >= 4.3.0
 Requires:       python-metakernel >= 0.24.0
@@ -62,30 +68,29 @@
 This package provides the jupyter notebook extension.
 
 %prep
-%setup -q -c -T
+%setup -q -n octave_kernel-%{version}
+%patch0 -p1
 
 %build
-# Not needed
+%python_build
 
 %install
-%python_expand pip%{$python_bin_suffix} install --root=%{buildroot} %{SOURCE0}
+%python_install
 sed -i "s|\"python\"|\"python3\"|" 
%{buildroot}%{_jupyter_kernel_dir}/octave/kernel.json
 
-cp 
%{buildroot}%{python_sitelib}/octave_kernel-%{version}.dist-info/LICENSE.txt .
-
 %fdupes %{buildroot}%{_jupyter_prefix}
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-# Tests require a GUI
-# %%check
-# export PYTHONPATH=%%{buildroot}%%{python3_sitelib}
-# %%python_exec test_octave_kernel.py
-# %%endif
+%check
+export JUPYTER_PATH=%{buildroot}%{_jupyter_prefix}
+%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
+$python test_octave_kernel.py}
 
 %files %{python_files}
-%license %{python_sitelib}/octave_kernel-%{version}.dist-info/LICENSE.txt
+%license LICENSE.txt
+%doc README.rst
 %{python_sitelib}/octave_kernel/
-%{python_sitelib}/octave_kernel-%{version}.dist-info/
+%{python_sitelib}/octave_kernel-%{version}-py*.egg-info
 
 %files -n jupyter-octave-kernel
 %license LICENSE.txt

++++++ fix_octave5.patch ++++++
>From 175c72d97d073a64714cebef05bd37f0221f94fa Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <[email protected]>
Date: Mon, 22 Jul 2019 02:03:20 -0400
Subject: [PATCH] Fix tests with Octave 5.

---
 test_octave_kernel.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test_octave_kernel.py b/test_octave_kernel.py
index 5ef93d3..750d1a8 100644
--- a/test_octave_kernel.py
+++ b/test_octave_kernel.py
@@ -19,8 +19,8 @@ class OctaveKernelTests(jkt.KernelTests):
 
     completion_samples = [
         {
-            'text': 'one',
-            'matches': {'ones', 'onenormest'},
+            'text': 'acos',
+            'matches': {'acos', 'acosd', 'acosh'},
         },
     ]
 

Reply via email to