From 4d45be2da74fdd4779a1aa095f1cda490666470ece7248d0fccbb599171646e4 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Wed, 3 Aug 2022 21:11:39 +0000 Subject: [PATCH] - 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 --- nbformat-5.2.0.tar.gz | 3 --- nbformat-5.4.0.tar.gz | 3 +++ python-nbformat.changes | 8 ++++++++ python-nbformat.spec | 24 +++++++++++------------- 4 files changed, 22 insertions(+), 16 deletions(-) delete mode 100644 nbformat-5.2.0.tar.gz create mode 100644 nbformat-5.4.0.tar.gz diff --git a/nbformat-5.2.0.tar.gz b/nbformat-5.2.0.tar.gz deleted file mode 100644 index 663ef71..0000000 --- a/nbformat-5.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6316813f0f3e447012cb467375b14967cb9327766b04f681c5481a0d9321e525 -size 133519 diff --git a/nbformat-5.4.0.tar.gz b/nbformat-5.4.0.tar.gz new file mode 100644 index 0000000..f7d0d4c --- /dev/null +++ b/nbformat-5.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:18d566dfbe3da5ab15e9b1a8ad37b161c1755b5dc3e330fd4ae2b1b049cfdf65 +size 134574 diff --git a/python-nbformat.changes b/python-nbformat.changes index 87a79ea..9b33eab 100644 --- a/python-nbformat.changes +++ b/python-nbformat.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Aug 3 21:00:07 UTC 2022 - Ben Greiner + +- 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 diff --git a/python-nbformat.spec b/python-nbformat.spec index 84908fe..f048255 100644 --- a/python-nbformat.spec +++ b/python-nbformat.spec @@ -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.