python-nbclient/python-nbclient.spec

95 lines
2.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-nbclient
#
# 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-%{**}}
Accepting request 808468 from home:apersaud:branches:devel:languages:python:jupyter - update to version 0.3.1: * Fixes + Check that a kernel manager exists before cleaning up the kernel #61 + Force client class to be async when kernel manager is MultiKernelManager #55 + Replace pip install with conda install in Binder #54 - changes from version 0.3.0: * Major Changes + The (async_)start_new_kernel_client method now supports starting a new client when its kernel manager (self.km) is a MultiKernelManager. The method now returns the kernel id in addition to the kernel client. If the kernel manager was a KernelManager, the returned kernel id is None. #51 + Added sphinx-book-theme for documentation. Added a CircleCI job to let us preview the built documentation in a PR. #50 + Added reset_kc option to reset_execution_trackers, so that the kernel client can be reset and a new one created in calls to (async_)execute #44 * Docs + Fixed documentation #46 #47 + Added documentation status badge to the README + Removed conda from documentation build - specfile: * only build for python 3, add skip_python2 * updated requirement versions, add async_generator * be more specific in %files section - update to version 0.2.0: * Major Changes + Async support is now available on the client. Methods that support async have an async_ prefix and can be awaited #10 #35 #37 #38 + Dropped support for Python 3.5 due to async compatability issues #34 + Notebook documents now include the new kernel timing fields #32 * Fixes + Memory and process leaks from nbclient should now be fixed #34 + Notebook execution exceptions now include error information in addition to the message #41 * Docs + Added binder examples / tests #7 + Added changelog to docs #22 + Doc typo fixes #27 #30 OBS-URL: https://build.opensuse.org/request/show/808468 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclient?expand=0&rev=4
2020-05-24 09:52:13 +02:00
%define skip_python2 1
Name: python-nbclient
Version: 0.5.3
Release: 0
Summary: A client library for executing notebooks
License: BSD-3-Clause
URL: https://github.com/jupyter/nbclient
Source: https://files.pythonhosted.org/packages/source/n/nbclient/nbclient-%{version}.tar.gz
BuildRequires: %{python_module setuptools >= 38.6.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Accepting request 808468 from home:apersaud:branches:devel:languages:python:jupyter - update to version 0.3.1: * Fixes + Check that a kernel manager exists before cleaning up the kernel #61 + Force client class to be async when kernel manager is MultiKernelManager #55 + Replace pip install with conda install in Binder #54 - changes from version 0.3.0: * Major Changes + The (async_)start_new_kernel_client method now supports starting a new client when its kernel manager (self.km) is a MultiKernelManager. The method now returns the kernel id in addition to the kernel client. If the kernel manager was a KernelManager, the returned kernel id is None. #51 + Added sphinx-book-theme for documentation. Added a CircleCI job to let us preview the built documentation in a PR. #50 + Added reset_kc option to reset_execution_trackers, so that the kernel client can be reset and a new one created in calls to (async_)execute #44 * Docs + Fixed documentation #46 #47 + Added documentation status badge to the README + Removed conda from documentation build - specfile: * only build for python 3, add skip_python2 * updated requirement versions, add async_generator * be more specific in %files section - update to version 0.2.0: * Major Changes + Async support is now available on the client. Methods that support async have an async_ prefix and can be awaited #10 #35 #37 #38 + Dropped support for Python 3.5 due to async compatability issues #34 + Notebook documents now include the new kernel timing fields #32 * Fixes + Memory and process leaks from nbclient should now be fixed #34 + Notebook execution exceptions now include error information in addition to the message #41 * Docs + Added binder examples / tests #7 + Added changelog to docs #22 + Doc typo fixes #27 #30 OBS-URL: https://build.opensuse.org/request/show/808468 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclient?expand=0&rev=4
2020-05-24 09:52:13 +02:00
Requires: python-async_generator
Requires: python-jupyter-client >= 6.1.5
Requires: python-nbformat >= 5.0
Requires: python-nest-asyncio
Requires: python-traitlets >= 4.2
BuildArch: noarch
%if %{with test}
Accepting request 808468 from home:apersaud:branches:devel:languages:python:jupyter - update to version 0.3.1: * Fixes + Check that a kernel manager exists before cleaning up the kernel #61 + Force client class to be async when kernel manager is MultiKernelManager #55 + Replace pip install with conda install in Binder #54 - changes from version 0.3.0: * Major Changes + The (async_)start_new_kernel_client method now supports starting a new client when its kernel manager (self.km) is a MultiKernelManager. The method now returns the kernel id in addition to the kernel client. If the kernel manager was a KernelManager, the returned kernel id is None. #51 + Added sphinx-book-theme for documentation. Added a CircleCI job to let us preview the built documentation in a PR. #50 + Added reset_kc option to reset_execution_trackers, so that the kernel client can be reset and a new one created in calls to (async_)execute #44 * Docs + Fixed documentation #46 #47 + Added documentation status badge to the README + Removed conda from documentation build - specfile: * only build for python 3, add skip_python2 * updated requirement versions, add async_generator * be more specific in %files section - update to version 0.2.0: * Major Changes + Async support is now available on the client. Methods that support async have an async_ prefix and can be awaited #10 #35 #37 #38 + Dropped support for Python 3.5 due to async compatability issues #34 + Notebook documents now include the new kernel timing fields #32 * Fixes + Memory and process leaks from nbclient should now be fixed #34 + Notebook execution exceptions now include error information in addition to the message #41 * Docs + Added binder examples / tests #7 + Added changelog to docs #22 + Doc typo fixes #27 #30 OBS-URL: https://build.opensuse.org/request/show/808468 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclient?expand=0&rev=4
2020-05-24 09:52:13 +02:00
BuildRequires: %{python_module async_generator}
BuildRequires: %{python_module ipython}
BuildRequires: %{python_module ipywidgets}
BuildRequires: %{python_module jupyter-client >= 6.1.5}
BuildRequires: %{python_module nbconvert}
BuildRequires: %{python_module nbformat >= 5.0}
BuildRequires: %{python_module nest-asyncio}
BuildRequires: %{python_module pytest >= 4.1}
BuildRequires: %{python_module testpath}
Accepting request 808468 from home:apersaud:branches:devel:languages:python:jupyter - update to version 0.3.1: * Fixes + Check that a kernel manager exists before cleaning up the kernel #61 + Force client class to be async when kernel manager is MultiKernelManager #55 + Replace pip install with conda install in Binder #54 - changes from version 0.3.0: * Major Changes + The (async_)start_new_kernel_client method now supports starting a new client when its kernel manager (self.km) is a MultiKernelManager. The method now returns the kernel id in addition to the kernel client. If the kernel manager was a KernelManager, the returned kernel id is None. #51 + Added sphinx-book-theme for documentation. Added a CircleCI job to let us preview the built documentation in a PR. #50 + Added reset_kc option to reset_execution_trackers, so that the kernel client can be reset and a new one created in calls to (async_)execute #44 * Docs + Fixed documentation #46 #47 + Added documentation status badge to the README + Removed conda from documentation build - specfile: * only build for python 3, add skip_python2 * updated requirement versions, add async_generator * be more specific in %files section - update to version 0.2.0: * Major Changes + Async support is now available on the client. Methods that support async have an async_ prefix and can be awaited #10 #35 #37 #38 + Dropped support for Python 3.5 due to async compatability issues #34 + Notebook documents now include the new kernel timing fields #32 * Fixes + Memory and process leaks from nbclient should now be fixed #34 + Notebook execution exceptions now include error information in addition to the message #41 * Docs + Added binder examples / tests #7 + Added changelog to docs #22 + Doc typo fixes #27 #30 OBS-URL: https://build.opensuse.org/request/show/808468 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclient?expand=0&rev=4
2020-05-24 09:52:13 +02:00
BuildRequires: %{python_module traitlets >= 4.2}
BuildRequires: %{python_module xmltodict}
%endif
%python_subpackages
%description
A client library for executing notebooks. Formally nbconvert's
ExecutePreprocessor.
NBClient is a tool for parameterizing andexecuting Jupyter Notebooks.
%prep
%setup -q -n nbclient-%{version}
rm -r nbclient/tests/files/.ipynb_checkpoints
%build
%python_build
%if ! %{with test}
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
# test_many_parallel_notebooks randomly fails - https://github.com/jupyter/nbclient/pull/74#issuecomment-635929953
%pytest -k 'not test_many_parallel_notebooks'
%endif
%if ! %{with test}
%files %{python_files}
%doc CHANGELOG.md README.md
%license LICENSE
Accepting request 808468 from home:apersaud:branches:devel:languages:python:jupyter - update to version 0.3.1: * Fixes + Check that a kernel manager exists before cleaning up the kernel #61 + Force client class to be async when kernel manager is MultiKernelManager #55 + Replace pip install with conda install in Binder #54 - changes from version 0.3.0: * Major Changes + The (async_)start_new_kernel_client method now supports starting a new client when its kernel manager (self.km) is a MultiKernelManager. The method now returns the kernel id in addition to the kernel client. If the kernel manager was a KernelManager, the returned kernel id is None. #51 + Added sphinx-book-theme for documentation. Added a CircleCI job to let us preview the built documentation in a PR. #50 + Added reset_kc option to reset_execution_trackers, so that the kernel client can be reset and a new one created in calls to (async_)execute #44 * Docs + Fixed documentation #46 #47 + Added documentation status badge to the README + Removed conda from documentation build - specfile: * only build for python 3, add skip_python2 * updated requirement versions, add async_generator * be more specific in %files section - update to version 0.2.0: * Major Changes + Async support is now available on the client. Methods that support async have an async_ prefix and can be awaited #10 #35 #37 #38 + Dropped support for Python 3.5 due to async compatability issues #34 + Notebook documents now include the new kernel timing fields #32 * Fixes + Memory and process leaks from nbclient should now be fixed #34 + Notebook execution exceptions now include error information in addition to the message #41 * Docs + Added binder examples / tests #7 + Added changelog to docs #22 + Doc typo fixes #27 #30 OBS-URL: https://build.opensuse.org/request/show/808468 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclient?expand=0&rev=4
2020-05-24 09:52:13 +02:00
%{python_sitelib}/nbclient
%{python_sitelib}/nbclient-%{version}-py*.egg-info/
%endif
%changelog