Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-jupyter_console for
openSUSE:Factory checked in at 2021-02-15 23:14:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyter_console (Old)
and /work/SRC/openSUSE:Factory/.python-jupyter_console.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyter_console"
Mon Feb 15 23:14:48 2021 rev:15 rq:871189 version:6.1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-jupyter_console/python-jupyter_console.changes
2020-10-26 16:14:40.586846729 +0100
+++
/work/SRC/openSUSE:Factory/.python-jupyter_console.new.28504/python-jupyter_console.changes
2021-02-15 23:16:56.575453396 +0100
@@ -1,0 +2,9 @@
+Wed Feb 10 23:30:30 UTC 2021 - Benjamin Greiner <[email protected]>
+
+- Force to import setuptools so that we get the entrypoint
+ gh#jupyter/jupyter_console#222
+- Install entrypoint under update-alternatives control
+- Drop empty jupyter-jupyter_console package, provide it in primary
+ python3 package
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jupyter_console.spec ++++++
--- /var/tmp/diff_new_pack.ij33Hl/_old 2021-02-15 23:16:57.183454303 +0100
+++ /var/tmp/diff_new_pack.ij33Hl/_new 2021-02-15 23:16:57.187454310 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-jupyter_console
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -46,49 +46,50 @@
Requires: python-jupyter-client
Requires: python-prompt_toolkit >= 2
Requires: python-pyzmq
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+Provides: python-jupyter-console = %{version}-%{release}
+%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
+Provides: jupyter-jupyter_console = %{version}-%{release}
+Obsoletes: jupyter-jupyter_console < %{version}-%{release}
+Provides: jupyter-jupyter_console-doc = %{version}-%{release}
+Obsoletes: jupyter-jupyter_console-doc < %{version}-%{release}
+%endif
BuildArch: noarch
-
%python_subpackages
%description
-A terminal-based console frontend for Jupter kernels.
-This code is based on the single-process IPython terminal.
-
-This package provides the python components.
-
-%package -n jupyter-jupyter_console
-Summary: Jupyter terminal console
-Requires: python3-jupyter_console = %{version}
-Provides: jupyter-jupyter_console-doc = %{version}
-Obsoletes: jupyter-jupyter_console-doc < %{version}
-
-%description -n jupyter-jupyter_console
-A terminal-based console frontend for Jupter kernels.
+A terminal-based console frontend for Jupyter kernels.
This code is based on the single-process IPython terminal.
-This package provides the jupyter components.
-
%prep
%setup -q -n jupyter_console-%{version}
%patch0 -p1
+# always build and install with setuptools: it is needed to get the entrypoint
gh#jupyter/jupyter_console#222
+sed -i '/import sys/ a import setuptools' setup.py
%build
%python_build
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/jupyter-console
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest -s --force-flaky --max-runs=10
+%post
+%python_install_alternative jupyter-console
+
+%postun
+%python_uninstall_alternative jupyter-console
+
%files %{python_files}
%doc CONTRIBUTING.md README.md
%license COPYING.md
+%python_alternative %{_bindir}/jupyter-console
%{python_sitelib}/jupyter_console
-%{python_sitelib}/jupyter_console-%{version}-*.egg-info
-
-%files -n jupyter-jupyter_console
-%license COPYING.md
+%{python_sitelib}/jupyter_console-%{version}*-info
%changelog