2019-11-12 18:30:04 +01:00
|
|
|
#
|
2021-06-28 16:24:57 +02:00
|
|
|
# spec file
|
2019-11-12 18:30:04 +01:00
|
|
|
#
|
2021-06-28 16:24:57 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-11-12 18:30:04 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-02-24 18:17:03 +01:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2019-11-12 18:30:04 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-02-24 18:17:03 +01:00
|
|
|
Name: python-jupyter-client%{psuffix}
|
2021-06-28 16:24:57 +02:00
|
|
|
Version: 6.1.12
|
2019-11-12 18:30:04 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Jupyter protocol implementation and client libraries
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
URL: https://github.com/jupyter/jupyter_client
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/j/jupyter_client/jupyter_client-%{version}.tar.gz
|
2021-06-28 16:24:57 +02:00
|
|
|
# PATCH-FIX-UPSTREAM jupyter_client-pr646-remove-async_generator.patch -- gh#jupyter/jupyter_client#646
|
|
|
|
Patch1: jupyter_client-pr646-remove-async_generator.patch
|
2019-11-12 18:30:04 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: jupyter-jupyter_client = %{version}
|
|
|
|
Requires: python-jupyter-core >= 4.6.0
|
|
|
|
Requires: python-python-dateutil >= 2.1
|
|
|
|
Requires: python-pyzmq >= 13
|
|
|
|
Requires: python-tornado >= 4.1
|
|
|
|
Requires: python-traitlets
|
|
|
|
Provides: python-jupyter_client = %{version}
|
|
|
|
Obsoletes: python-jupyter_client < %{version}
|
|
|
|
BuildArch: noarch
|
2020-02-24 18:17:03 +01:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module Sphinx}
|
2021-08-12 13:46:37 +02:00
|
|
|
BuildRequires: %{python_module ipykernel}
|
2020-09-05 22:15:38 +02:00
|
|
|
BuildRequires: %{python_module ipython}
|
2021-06-28 16:24:57 +02:00
|
|
|
BuildRequires: %{python_module jupyter-client = %{version}}
|
2020-09-05 22:15:38 +02:00
|
|
|
BuildRequires: %{python_module pytest-asyncio}
|
|
|
|
BuildRequires: %{python_module pytest-timeout}
|
2020-02-24 18:17:03 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
2021-06-28 16:24:57 +02:00
|
|
|
BuildRequires: %{python_module traitlets}
|
|
|
|
# flaky is not an upstream dep, but for obs flakyness of parallel kernel test
|
|
|
|
BuildRequires: %{python_module flaky}
|
2021-08-12 10:00:32 +02:00
|
|
|
# Workaround until python-ipykernel 6 lands in Factory and openSUSE:Tumbleweed/dod, removing python36-ipykernel
|
|
|
|
# (see https://lists.opensuse.org/archives/list/packaging@lists.opensuse.org/message/742CEMJ57YWNVESAPWJ6HHZBZZ4RMJFP )
|
|
|
|
#!BuildIgnore: python36-ipykernel:jupyter-ipykernel
|
2020-02-24 18:17:03 +01:00
|
|
|
%endif
|
2019-11-12 18:30:04 +01:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the reference implementation of the Jupyter protocol.
|
|
|
|
It also provides client and kernel management APIs for working with kernels.
|
|
|
|
|
|
|
|
It also provides the jupyter kernelspec entrypoint for installing kernelspecs
|
|
|
|
for use with Jupyter frontends.
|
|
|
|
|
|
|
|
This package provides the python interface.
|
|
|
|
|
|
|
|
%package -n jupyter-jupyter-client
|
|
|
|
Summary: Jupyter protocol implementation and client libraries
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Requires: python3-jupyter-client = %{version}
|
|
|
|
Provides: jupyter-jupyter_client = %{version}
|
|
|
|
Obsoletes: jupyter-jupyter_client < %{version}
|
2020-02-24 18:17:03 +01:00
|
|
|
Provides: jupyter-jupyter-client-doc = %{version}
|
|
|
|
Obsoletes: jupyter-jupyter-client-doc < %{version}
|
2019-11-12 18:30:04 +01:00
|
|
|
|
|
|
|
%description -n jupyter-jupyter-client
|
|
|
|
This package contains the reference implementation of the Jupyter protocol.
|
|
|
|
It also provides client and kernel management APIs for working with kernels.
|
|
|
|
|
|
|
|
It also provides the jupyter kernelspec entrypoint for installing kernelspecs
|
|
|
|
for use with Jupyter frontends.
|
|
|
|
|
|
|
|
This package provides the jupyter components.
|
|
|
|
|
|
|
|
%prep
|
2021-06-28 16:24:57 +02:00
|
|
|
%autosetup -p1 -n jupyter_client-%{version}
|
|
|
|
|
|
|
|
# obs is a bit slow (fixed upstream in >= 6.1.13)
|
|
|
|
sed -i -E 's/(^\s+)break/\1time.sleep(1)\n\1break/' \
|
|
|
|
jupyter_client/tests/test_kernelapp.py
|
2019-11-12 18:30:04 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
2020-02-24 18:17:03 +01:00
|
|
|
%if !%{with test}
|
2019-11-12 18:30:04 +01:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2020-02-24 18:17:03 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
|
|
|
pushd jupyter_client/tests
|
2021-08-12 13:46:37 +02:00
|
|
|
%pytest --force-flaky --max-runs=3 --no-success-flaky-report
|
2020-02-24 18:17:03 +01:00
|
|
|
popd
|
|
|
|
%endif
|
2019-11-12 18:30:04 +01:00
|
|
|
|
2020-02-24 18:17:03 +01:00
|
|
|
%if !%{with test}
|
2019-11-12 18:30:04 +01:00
|
|
|
%files %{python_files}
|
|
|
|
%license COPYING.md
|
|
|
|
%{python_sitelib}/jupyter_client-%{version}-py*.egg-info
|
|
|
|
%{python_sitelib}/jupyter_client/
|
|
|
|
|
|
|
|
%files -n jupyter-jupyter-client
|
|
|
|
%license COPYING.md
|
|
|
|
%doc CONTRIBUTING.md README.md
|
|
|
|
%{_bindir}/jupyter-kernel
|
|
|
|
%{_bindir}/jupyter-kernelspec
|
|
|
|
%{_bindir}/jupyter-run
|
2020-02-24 18:17:03 +01:00
|
|
|
%endif
|
2019-11-12 18:30:04 +01:00
|
|
|
|
|
|
|
%changelog
|