Blame python-nbclient.spec

01df364
# Unset -s on python shebang - ensure that extensions installed with pip
01df364
# to user locations are seen and properly loaded
58daef3
%global py3_shebang_flags %(echo %py3_shebang_flags | sed s/s//)
01df364
10f6bcc
%global pypi_name nbclient
10f6bcc
10f6bcc
%global _description %{expand:
10f6bcc
NBClient, a client library for programmatic notebook execution, is a tool for 
10f6bcc
running Jupyter Notebooks in different execution contexts. NBClient was spun 
10f6bcc
out of nbconvert (formerly ExecutePreprocessor). NBClient lets you execute notebooks.
10f6bcc
}
10f6bcc
10f6bcc
Name:           python-%{pypi_name}
58c6239
Version:        0.10.0
d3a7451
Release:        %autorelease
10f6bcc
Summary:        A client library for executing notebooks
10f6bcc
10f6bcc
License:        BSD
10f6bcc
URL:            https://jupyter.org
10f6bcc
Source0:        %{pypi_source}
10f6bcc
BuildArch:      noarch
10f6bcc
10f6bcc
BuildRequires:  python3-devel
10f6bcc
76bef09
%bcond_without check
76bef09
10f6bcc
%description
10f6bcc
%_description
10f6bcc
10f6bcc
%package -n     python3-%{pypi_name}
10f6bcc
Summary:        %{summary}
10f6bcc
%py_provides python3-%{pypi_name}
10f6bcc
10f6bcc
%description -n python3-%{pypi_name}
10f6bcc
%_description
10f6bcc
10f6bcc
%prep
1a80ac4
%autosetup -p1 -n %{pypi_name}-%{version}
10f6bcc
# Remove bundled egg-info
10f6bcc
rm -rf %{pypi_name}.egg-info
7e6ef07
# Drop version limit from pytest
7e6ef07
sed -i "/pytest/s/,<8//" pyproject.toml
10f6bcc
68527cb
%generate_buildrequires
68527cb
%pyproject_buildrequires %{?with_check:-x test}
68527cb
10f6bcc
%build
68527cb
%pyproject_wheel
10f6bcc
10f6bcc
%install
68527cb
%pyproject_install
68527cb
%pyproject_save_files %{pypi_name}
10f6bcc
76bef09
%if %{with check}
10f6bcc
%check
ee55bf8
%pytest -vv
76bef09
%endif
10f6bcc
68527cb
%files -n python3-%{pypi_name} -f %{pyproject_files}
10f6bcc
%doc README.md
70569ad
%{_bindir}/jupyter-execute
10f6bcc
10f6bcc
10f6bcc
%changelog
d3a7451
%autochangelog