spec-cleaner
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbformat?expand=0&rev=2
This commit is contained in:
parent
e52c484ffd
commit
4775e60170
@ -16,30 +16,29 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without tests
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define doc_ver 4.4.0
|
||||
%bcond_without tests
|
||||
Name: python-nbformat-doc
|
||||
Version: 4.4.0
|
||||
%define doc_ver 4.4.0
|
||||
Release: 0
|
||||
Summary: Documentation for the Jupyter Notebook format
|
||||
License: BSD-3-Clause
|
||||
Group: Documentation/Other
|
||||
Url: https://github.com/jupyter/nbformat
|
||||
URL: https://github.com/jupyter/nbformat
|
||||
Source0: https://files.pythonhosted.org/packages/source/n/nbformat/nbformat-%{version}.tar.gz
|
||||
Source1: https://buildmedia.readthedocs.org/media/pdf/nbformat/%{doc_ver}/nbformat.pdf
|
||||
Source2: https://buildmedia.readthedocs.org/media/htmlzip/nbformat/%{doc_ver}/nbformat.zip
|
||||
BuildRequires: %{python_module jupyter_nbformat}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: unzip
|
||||
BuildRequires: %{python_module jupyter_nbformat}
|
||||
BuildArch: noarch
|
||||
%if %{with tests}
|
||||
# Test Requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module testpath}
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
This package contains documentation and help files for the Jupyter
|
||||
@ -79,12 +78,12 @@ cp -r docs/html %{buildroot}%{_docdir}/jupyter-nbformat/
|
||||
%if %{with tests}
|
||||
%check
|
||||
pushd scripts
|
||||
%python_expand py.test-%{$python_bin_suffix} -k "not TestNotary and not SQLiteSignatureStoreTests" %{$python_sitelib}/nbformat
|
||||
%pytest -k "not TestNotary and not SQLiteSignatureStoreTests" %{$python_sitelib}/nbformat
|
||||
popd
|
||||
%endif
|
||||
|
||||
%files -n jupyter-nbformat-doc
|
||||
%doc COPYING.md
|
||||
%license COPYING.md
|
||||
%{_docdir}/jupyter-nbformat/
|
||||
|
||||
%changelog
|
||||
|
@ -23,18 +23,18 @@ Release: 0
|
||||
Summary: The Jupyter Notebook format
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/jupyter/nbformat
|
||||
URL: https://github.com/jupyter/nbformat
|
||||
Source: https://files.pythonhosted.org/packages/source/n/nbformat/nbformat-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: jupyter-nbformat = %{version}
|
||||
Requires: python-ipython_genutils
|
||||
Requires: python-jsonschema > 2.5.0
|
||||
Requires: python-jupyter_core
|
||||
Requires: python-traitlets >= 4.1
|
||||
Provides: python-jupyter_nbformat = %{version}
|
||||
Obsoletes: python-jupyter_nbformat <= %{version}
|
||||
Requires: jupyter-nbformat = %{version}
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@ -46,8 +46,8 @@ This package provides the python interface.
|
||||
|
||||
%package -n jupyter-nbformat
|
||||
Summary: The Jupyter Notebook format
|
||||
Requires: python3-nbformat = %{version}
|
||||
Requires: jupyter-jupyter_core
|
||||
Requires: python3-nbformat = %{version}
|
||||
|
||||
%description -n jupyter-nbformat
|
||||
This package contains the base implementation of the Jupyter Notebook format,
|
||||
|
Loading…
x
Reference in New Issue
Block a user