1
0
python-nbclient/python-nbclient.spec
Benjamin Greiner 9c1f591eb1 Accepting request 944953 from home:bnavigator:branches:devel:languages:python:jupyter
- Do not build on SLE/Leap <= 15.3
- Deselect all 4 flaky parallel_notebooks tests
- Update to version 0.5.9
  * Remove jupyter-run, keep jupyter-execute #180 (@davidbrochart)
- Switch to libalternatives
- Update to version 0.5.8
  * Prepare for use with Jupyter Releaser #175 (@davidbrochart)
  * Move IPYKERNEL_CELL_NAME from tox to pytest #172
    (@frenzymadness)
  * Added CLI to README #170 (@palewire)
  * Add "jupyter execute" command-line interface #165 (@palewire)
  * Fix: updating buffers overwrote previous buffers #169
    (@maartenbreddels)
  * Fix tests for ipykernel without debugpy #166 (@frenzymadness)
  * gitignore Pipfile #164 (@palewire)
  * Fixed CONTRIBUTING.md link #163 (@palewire)
  * Fix typo #162 (@The-Compiler)
  * Move format & lint to pre-commit #161 (@chrisjsewell)
  * Add skip-execution cell tag functionality #151 (@chrisjsewell)
- Not enabling new jupyter-run entrypoint due to conflict with
  jupyter_client
- Fix async_parallel_notebooks deselection expression
- Add IPYKERNEL_CELL_NAME env var for test sanitization
- Only require async_generator for Python < 3.7
- update to version 0.5.4:
  * Replace km.cleanup with km.cleanup_resources #152 (@davidbrochart)
  * Use async generator backport only on old python #154 (@mkoeppe)
  * Support parsing of IPython dev version #150 (@cphyc)
  * Set IPYKERNEL_CELL_NAME = <IPY-INPUT> #147 (@davidbrochart)
  * Print useful error message on exception #142 (@certik)
- Actually break the cycle: test flavor needs a psuffix
- test in multibuild flavor in order to break runtime and build
  dependency cycle with nbconvert.
- update to version 0.5.3:
  * Fix ipykernel's stop_on_error value to take into account
    raises-exception tag and force_raise_errors #137
- specfile:
  * update copyright year
- update to version 0.5.2:
  * Set minimum python version supported to 3.6.1 to avoid 3.6.0
    issues
  * CellExecutionError is now unpickleable
  * Added testing for python 3.9
  * Changed travis tests to github actions
  * Documentation referencing an old model instead of NotebookClient
    was fixed
  * allow_error_names option was added for a more specific scope of
    allow_errors to be applied
- update to version 0.5.1:
  * Update kernel client class JIT if it's the synchronous version
  * Several documentation fixes / improvements
- specfile:
  * update required version
- update to version 0.5.0:
  * Move language_info retrieval before cell execution #102
  * HistoryManager setting for ipython kernels no longer applies twice
    (fix for 5.0 trailets release)
  * Improved error handling around language_info missing
    (async_)start_new_kernel_client is now split into (async_)start_new_kernel and (async_)start_new_kernel_client
- update to version 0.4.1:
  * Python type hinting added to most interfaces! #83
  * Several documentation fixes and improvements were made #86
  * An asynchronous heart beat check was added to correctly raise a
    DeadKernelError when kernels die unexpectantly #90
- Update to 0.4.0
  * Use KernelManager's graceful shutdown rather than KILLing kernels
  * Mimic an Output widget at the frontend so that the Output widget behaves correctly
  * Nested asyncio is automatic, and works with Tornado
  * async_execute now has a reset_kc argument to control if the client is reset upon execution request
- Update to 0.3.1:
  * 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 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
  * 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
- 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
- initial version

OBS-URL: https://build.opensuse.org/request/show/944953
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclient?expand=0&rev=28
2022-01-08 20:20:14 +00:00

126 lines
3.6 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
%if 0%{suse_version} <= 1500 && 0%{?sle_version} <= 150300
# The requirements are not available in the correct versions
# remove this if you see the :flavor build succeeding
ExclusiveArch: donotbuild
%endif
%endif
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-nbclient%{psuffix}
Version: 0.5.9
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
%if 0%{?python_version_nodots} < 37
Requires: python-async_generator
%endif
Requires: python-jupyter-client >= 6.1.5
Requires: python-nbformat >= 5.0
Requires: python-nest-asyncio
Requires: python-traitlets >= 4.2
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(postun):update-alternatives
%endif
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module async_generator if %python-base < 3.7}
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}
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}
%build
%python_build
%if ! %{with test}
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/jupyter-execute
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
export IPYKERNEL_CELL_NAME="<IPY-INPUT>"
# tests on parallel notebooks randomly fail (4 tests) - https://github.com/jupyter/nbclient/pull/74#issuecomment-635929953
%pytest -k 'not parallel_notebooks'
%endif
%if ! %{with test}
%pre
%python_libalternatives_reset_alternative jupyter-execute
%post
%python_install_alternative jupyter-execute
%postun
%python_uninstall_alternative jupyter-execute
%files %{python_files}
%doc CHANGELOG.md README.md
%license LICENSE
%python_alternative %{_bindir}/jupyter-execute
%{python_sitelib}/nbclient
%{python_sitelib}/nbclient-%{version}*-info/
%endif
%changelog