- Update to 5.4.0

* Fix import nbformat.current by @shadchin in #269
  * Add mypy support by @blink1073 in #270
  * Packaging updates

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbformat?expand=0&rev=24
This commit is contained in:
Benjamin Greiner 2022-08-03 21:11:39 +00:00 committed by Git OBS Bridge
parent 782364eb91
commit 4d45be2da7
4 changed files with 22 additions and 16 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6316813f0f3e447012cb467375b14967cb9327766b04f681c5481a0d9321e525
size 133519

3
nbformat-5.4.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:18d566dfbe3da5ab15e9b1a8ad37b161c1755b5dc3e330fd4ae2b1b049cfdf65
size 134574

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Aug 3 21:00:07 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to 5.4.0
* Fix import nbformat.current by @shadchin in #269
* Add mypy support by @blink1073 in #270
* Packaging updates
-------------------------------------------------------------------
Wed Mar 23 19:04:57 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -18,28 +18,25 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define doc_ver 5.2.0
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
Name: python-nbformat
Version: 5.2.0
Version: 5.4.0
Release: 0
Summary: The Jupyter Notebook format
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/jupyter/nbformat
# PyPI sdist has only some schema tests, get the full test suite from GitHub sources
Source: %{url}/archive/%{version}.tar.gz#/nbformat-%{version}.tar.gz
Source: https://github.com/jupyter/nbformat/archive/%{version}.tar.gz#/nbformat-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210929
BuildRequires: unzip
Requires: jupyter-nbformat = %{version}
Requires: python-jsonschema > 2.5.0
Requires: python-fastjsonschema
Requires: python-jsonschema > 2.6
Requires: python-jupyter_core
Requires: python-traitlets >= 4.1
Requires: python-traitlets >= 5.1
Provides: python-jupyter_nbformat = %{version}
Obsoletes: python-jupyter_nbformat < %{version}
BuildArch: noarch
@ -52,11 +49,12 @@ Requires(postun):update-alternatives
%endif
# SECTION test requirements
BuildRequires: %{pythons}
BuildRequires: %{python_module jsonschema > 2.5.0}
BuildRequires: %{python_module fastjsonschema}
BuildRequires: %{python_module jsonschema > 2.6}
BuildRequires: %{python_module jupyter_core}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module testpath}
BuildRequires: %{python_module traitlets >= 4.1}
BuildRequires: %{python_module traitlets >= 5.1}
# /SECTION
%python_subpackages
@ -83,6 +81,7 @@ This package provides the jupyter components.
%prep
%setup -q -n nbformat-%{version}
sed -i 's/--color=yes//' pyproject.toml
%build
%python_build
@ -95,8 +94,7 @@ This package provides the jupyter components.
%fdupes %{buildroot}%{_docdir}/jupyter-nbformat/
%check
# we don't have the alternative validator, cannot fallback from it
%pytest -k "not (fastjsonschema or test_fallback_validator_with_iter_errors_using_ref)"
%pytest
%pre
# If libalternatives is used: Removing old update-alternatives entries.