Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37710292
en ru br
ALT Linux repos
S:0.8.0-alt3

Group :: Development/Python3
RPM: python3-module-nbclient

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

%define oname nbclient

%def_with check

Name: python3-module-%oname
Version: 0.8.0
Release: alt2
Summary: A client library for executing notebooks. Formally nbconvert's ExecutePreprocessor
License: BSD-3-Clause
Group: Development/Python3
Url: https://pypi.org/project/nbclient/
VCS: https://github.com/jupyter/nbclient.git
BuildArch: noarch

Source: %name-%version.tar

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-hatchling
BuildRequires: python3(jupyter_client)
BuildRequires: python3(nbformat)
BuildRequires: python3(traitlets)
%if_with check
BuildRequires: python3(async_generator)
BuildRequires: python3(nest_asyncio)
BuildRequires: python3(xmltodict)
BuildRequires: python3(nbconvert)
BuildRequires: python3(ipywidgets)
BuildRequires: python3(flaky)
BuildRequires: python3(pytest_asyncio)
BuildRequires: /proc
BuildRequires: python3(ipykernel)
%endif

%description
NBClient, a client library for programmatic notebook execution,
is a tool for running Jupyter Notebooks in different execution contexts.
NBClient was spun out of nbconvert's former ExecutePreprocessor.

NBClient lets you execute notebooks.

%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: %name = %EVR

%description tests
This package contains tests for %oname


%prep
%setup

%build
%pyproject_build

%install
%pyproject_install

%check
# test_many_parallel_notebooks randomly fail
%pyproject_run_pytest -v --color=no -k 'not test_many_parallel_notebooks'

%files
%doc LICENSE
%doc CHANGELOG.md CONTRIBUTING.md README.md
%_bindir/jupyter-execute
%python3_sitelibdir/%oname
%python3_sitelibdir/%oname-*.dist-info
%exclude %python3_sitelibdir/%oname/tests

%files tests
%python3_sitelibdir/%oname/tests

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin