Accepting request 871015 from home:bnavigator:branches:devel:languages:python:jupyter
- 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 OBS-URL: https://build.opensuse.org/request/show/871015 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter_console?expand=0&rev=29
This commit is contained in:
parent
f93b57dcf1
commit
5c5709bb50
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 10 23:30:30 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 2 14:15:27 UTC 2020 - pgajdos@suse.com
|
Fri Oct 2 14:15:27 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-jupyter_console
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -46,49 +46,50 @@ Requires: python-ipython
|
|||||||
Requires: python-jupyter-client
|
Requires: python-jupyter-client
|
||||||
Requires: python-prompt_toolkit >= 2
|
Requires: python-prompt_toolkit >= 2
|
||||||
Requires: python-pyzmq
|
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
|
BuildArch: noarch
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
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 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.
|
|
||||||
This code is based on the single-process IPython terminal.
|
|
||||||
|
|
||||||
This package provides the jupyter components.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n jupyter_console-%{version}
|
%setup -q -n jupyter_console-%{version}
|
||||||
%patch0 -p1
|
%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
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/jupyter-console
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest -s --force-flaky --max-runs=10
|
%pytest -s --force-flaky --max-runs=10
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative jupyter-console
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative jupyter-console
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CONTRIBUTING.md README.md
|
%doc CONTRIBUTING.md README.md
|
||||||
%license COPYING.md
|
%license COPYING.md
|
||||||
|
%python_alternative %{_bindir}/jupyter-console
|
||||||
%{python_sitelib}/jupyter_console
|
%{python_sitelib}/jupyter_console
|
||||||
%{python_sitelib}/jupyter_console-%{version}-*.egg-info
|
%{python_sitelib}/jupyter_console-%{version}*-info
|
||||||
|
|
||||||
%files -n jupyter-jupyter_console
|
|
||||||
%license COPYING.md
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user