python-jupyter-client/python-jupyter-client.spec
Markéta Machová 5a55a95806 Accepting request 902834 from home:bnavigator:branches:devel:languages:python:jupyter
- Update to 6.1.12
  * Shutdown request sequence has been modified to be more
    graceful, it now is preceded by interrupt, and will also send
    a SIGTERM before forcibly killing the kernel
  * Removal of ipython_genutils as a dependency. It was implicit
    before; but required by at least traitlets thus avoiding
    issues. We are working on completely removing it from all
    jupyter dependencies; as it might lead to issues packaging for
    Python 3.10, and was mostly used for compatibility with python
    2.
  * Address a race condition between shutdown_kernel and restarter.
- Release 6.1.11
  * Move jedi pinning to test requirements
- Release 6.1.10
  * Add change parameter needed for observer method of
    kernel_spec_manager trait
- Release 6.1.9
  * Pin jedi<=0.17.2
- Release 6.1.8
  * Doc updates
  * Fix path to the connection file
  * Code cleanup
  * Silence kill_kernel when no process is present
  * Remove extra_env and corresponding test
  * Add documentation dependencies to setup.py
  * Fix for Windows localhost IP addresses
  * Drop Travis CI, add GitHub Actions
  * Adapt KernelManager._kernel_spec_manager_changed to observe
  * Allow use ~/ in the kernel's command or its arguments
  * Change wait_for_ready logic

OBS-URL: https://build.opensuse.org/request/show/902834
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-client?expand=0&rev=10
2021-06-28 14:24:57 +00:00

129 lines
4.3 KiB
RPMSpec

#
# spec file
#
# 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
# 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/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jupyter-client%{psuffix}
Version: 6.1.12
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
# PATCH-FIX-UPSTREAM jupyter_client-pr646-remove-async_generator.patch -- gh#jupyter/jupyter_client#646
Patch1: jupyter_client-pr646-remove-async_generator.patch
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
%if %{with test}
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module ipykernel}
BuildRequires: %{python_module ipython}
BuildRequires: %{python_module jupyter-client = %{version}}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-timeout}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module traitlets}
# flaky is not an upstream dep, but for obs flakyness of parallel kernel test
BuildRequires: %{python_module flaky}
%endif
%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}
Provides: jupyter-jupyter-client-doc = %{version}
Obsoletes: jupyter-jupyter-client-doc < %{version}
%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
%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
%build
%python_build
%install
%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
pushd jupyter_client/tests
%pytest --force-flaky --max-runs=2 --no-success-flaky-report
popd
%endif
%if !%{with test}
%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
%endif
%changelog