Hello community,
here is the log from the commit of package python-metakernel for
openSUSE:Factory checked in at 2019-08-13 13:19:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-metakernel (Old)
and /work/SRC/openSUSE:Factory/.python-metakernel.new.9556 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-metakernel"
Tue Aug 13 13:19:34 2019 rev:4 rq:722218 version:0.24.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-metakernel/python-metakernel.changes
2019-06-13 23:04:04.363355547 +0200
+++
/work/SRC/openSUSE:Factory/.python-metakernel.new.9556/python-metakernel.changes
2019-08-13 13:20:44.085426747 +0200
@@ -1,0 +2,7 @@
+Thu Aug 8 09:39:19 AM UTC 2019 - John Vandenberg <[email protected]>
+
+- Activate test suite
+- Remove unnecessary indirect dependencies
+- Remove tests from runtime package
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-metakernel.spec ++++++
--- /var/tmp/diff_new_pack.XgqKAg/_old 2019-08-13 13:20:44.593426614 +0200
+++ /var/tmp/diff_new_pack.XgqKAg/_new 2019-08-13 13:20:44.597426613 +0200
@@ -17,7 +17,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_with test
Name: python-metakernel
Version: 0.24.2
Release: 0
@@ -29,11 +28,15 @@
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+# SECTION test requirements
+BuildRequires: %{python_module ipykernel}
+BuildRequires: %{python_module ipyparallel}
+BuildRequires: %{python_module pexpect >= 4.2}
+BuildRequires: %{python_module pytest}
+BuildRequires: man
+# /SECTION
Requires: python-ipykernel
Requires: python-ipyparallel
-Requires: python-ipython
-Requires: python-jupyter_client
-Requires: python-jupyter_core
Requires: python-pexpect >= 4.2
Provides: python-jupyter_metakernel = %{version}
Obsoletes: python-jupyter_metakernel < %{version}
@@ -41,6 +44,7 @@
%ifpython3
Provides: jupyter-metakernel = %{version}
%endif
+
%python_subpackages
%description
@@ -50,29 +54,23 @@
%prep
%setup -q -n metakernel-%{version}
+touch ~/.bashrc
%build
%python_build
%install
%python_install
-
-%{python_expand chmod a+x
%{buildroot}%{$python_sitelib}/metakernel/tests/test_expect.py
-sed -i "s|^#!%{_bindir}/env python$|#!%__$python|"
%{buildroot}%{$python_sitelib}/metakernel/tests/test_expect.py
-$python -m compileall -d %{$python_sitelib}
%{buildroot}%{$python_sitelib}/metakernel/tests/
-$python -O -m compileall -d %{$python_sitelib}
%{buildroot}%{$python_sitelib}/metakernel/tests/
+%{python_expand rm -r %{buildroot}%{$python_sitelib}/metakernel/tests/
%fdupes %{buildroot}%{$python_sitelib}
}
-# Tests require an active terminal
-# %%check
-# %%python_exec setup.py test
-# %%endif
+%check
+%pytest metakernel/tests
%files %{python_files}
%doc CONTRIBUTORS.rst HISTORY.rst README.rst
%license LICENSE.txt
-%{python_sitelib}/metakernel/
-%{python_sitelib}/metakernel-%{version}-py*.egg-info
+%{python_sitelib}/*
%changelog