python-nbformat/python-nbformat.spec
Todd R 751d8da2f9 Accepting request 773195 from home:TheBlackCat:branches:devel:languages:python:jupyter
- Update to 5.0.4
  * Fixed issue causing python 2 to pick up 5.0.x releases.
- Drop doc subpackage.  This was a leftover from when the tests
  were run in another package and keeping up with the
  rapidly-changing readthedocs download URLs is difficult.
- Update to 5.0.3
  * Removed debug print statements from project.
- Update to 5.0.2
  * Added schema validation files for older versions. This was breaking notebook generation.
- Update to 5.0
  * Starting with 5.0, ``nbformat`` is now Python 3 only (>= 3.5)
  * Add execution timings in code cell metadata for v4 spec.
    ``"metadata": { "execution": {...}}`` should be populated with kernel-specific
    timing information.
  * Documentation for how markup is used in notebooks added
  * Link to json schema docs from format page added
  * Documented the editable metadata flag
  * Update description for collapsed field
  * Documented nbformat versions 4.0-4.3 with accurate json schema specification files
  * Clarified info about :ref:`name`'s meaning for cells
  * Added a default execution_count of None for new_output_cell('execute_result')
  * Added support for handling nbjson kwargs
  * Wheels now correctly have a LICENSE file
  * Travis builds now have a few more execution environments

OBS-URL: https://build.opensuse.org/request/show/773195
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbformat?expand=0&rev=10
2020-02-10 18:52:03 +00:00

98 lines
3.1 KiB
RPMSpec

#
# spec file for package python-nbformat
#
# Copyright (c) 2020 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-nbformat
Version: 5.0.4
Release: 0
%define doc_ver 5.0.4
Summary: The Jupyter Notebook format
License: BSD-3-Clause
Group: Development/Languages/Python
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
BuildRequires: unzip
# SECTION test requirements
BuildRequires: %{python_module ipython_genutils}
BuildRequires: %{python_module jsonschema > 2.5.0}
BuildRequires: %{python_module jupyter_core}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module testpath}
BuildRequires: %{python_module traitlets >= 4.1}
# /SECTION
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}
BuildArch: noarch
%python_subpackages
%description
This package contains the base implementation of the Jupyter Notebook format,
and Python APIs for working with notebooks.
This package provides the python interface.
%package -n jupyter-nbformat
Summary: The Jupyter Notebook format
Group: Development/Languages/Python
Requires: jupyter-jupyter_core
Requires: python3-nbformat = %{version}
Conflicts: python3-jupyter_nbformat < 5.0
Provides: jupyter-nbformat-doc = %{version}
Obsoletes: jupyter-nbformat-doc < %{version}
%description -n jupyter-nbformat
This package contains the base implementation of the Jupyter Notebook format,
and Python APIs for working with notebooks.
This package provides the jupyter components.
%prep
%setup -q -n nbformat-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%fdupes %{buildroot}%{_docdir}/jupyter-nbformat/
%check
%pytest -k "not TestNotary and not SQLiteSignatureStoreTests"
%files %{python_files}
%license COPYING.md
%doc README.md
%{python_sitelib}/nbformat-%{version}-py*.egg-info
%{python_sitelib}/nbformat/
%files -n jupyter-nbformat
%license COPYING.md
%changelog