From 9f2262945256921d7011768db2d8e092ad38b42efceef889e89bf39491166251 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Tue, 13 Sep 2022 17:02:15 +0000 Subject: [PATCH] Accepting request 1003362 from home:apersaud:branches:devel:languages:python:jupyter update to latest version OBS-URL: https://build.opensuse.org/request/show/1003362 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbformat?expand=0&rev=26 --- nbformat-5.4.0.tar.gz | 3 --- nbformat-5.5.0.tar.gz | 3 +++ python-nbformat.changes | 27 +++++++++++++++++++++++++++ python-nbformat.spec | 15 +++++++++------ 4 files changed, 39 insertions(+), 9 deletions(-) delete mode 100644 nbformat-5.4.0.tar.gz create mode 100644 nbformat-5.5.0.tar.gz diff --git a/nbformat-5.4.0.tar.gz b/nbformat-5.4.0.tar.gz deleted file mode 100644 index f7d0d4c..0000000 --- a/nbformat-5.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:18d566dfbe3da5ab15e9b1a8ad37b161c1755b5dc3e330fd4ae2b1b049cfdf65 -size 134574 diff --git a/nbformat-5.5.0.tar.gz b/nbformat-5.5.0.tar.gz new file mode 100644 index 0000000..6dc390a --- /dev/null +++ b/nbformat-5.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d6bd882a6fb60e1204e7b9310846b790c710b138e21643750f6420b7aa09d6c +size 136656 diff --git a/python-nbformat.changes b/python-nbformat.changes index 9b33eab..ce1ee56 100644 --- a/python-nbformat.changes +++ b/python-nbformat.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Tue Sep 13 15:43:42 UTC 2022 - Arun Persaud + +- specfile: + * changed to pyproject.toml build using flit-core + * require python-pep440 for tests + +- update to version 5.5.0: + * The biggest change in nbformat 5.5.0 is the deprecation of + arguments to validate() that try to fix notebooks errors during + validation. + validate() is a function that is core to the security model of + Jupyter, and is assumed in a number of places to not mutate it's + argument, or try to fix notebooks passed to it. + Auto fixing of notebook in validate can also hide subtle bugs, and + will therefore be updated in a near future to not take any of the + argument related to auto-fixing, and fail instead of silently + modifying its parameters on invalid notebooks. + nbformat now contain a normalize function that will return a + normalized copy of a notebook that is suitable for + validation. While offered as a convenience we discourage its use + and suggest library make sure to generate valid notebooks. + * Other changes + + nbformat is now built with flit, and uses pyproject.toml + + Documentation and Deprecations have been updated with version + number and stack levels. + ------------------------------------------------------------------- Wed Aug 3 21:00:07 UTC 2022 - Ben Greiner diff --git a/python-nbformat.spec b/python-nbformat.spec index f048255..caf00f1 100644 --- a/python-nbformat.spec +++ b/python-nbformat.spec @@ -20,7 +20,7 @@ %define doc_ver 5.2.0 %bcond_without libalternatives Name: python-nbformat -Version: 5.4.0 +Version: 5.5.0 Release: 0 Summary: The Jupyter Notebook format License: BSD-3-Clause @@ -29,7 +29,9 @@ URL: https://github.com/jupyter/nbformat # PyPI sdist has only some schema tests, get the full test suite from GitHub sources 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: %{python_module flit-core >= 3.2} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210929 Requires: jupyter-nbformat = %{version} @@ -48,13 +50,14 @@ Requires(post): update-alternatives Requires(postun):update-alternatives %endif # SECTION test requirements -BuildRequires: %{pythons} BuildRequires: %{python_module fastjsonschema} BuildRequires: %{python_module jsonschema > 2.6} BuildRequires: %{python_module jupyter_core} +BuildRequires: %{python_module pep440} BuildRequires: %{python_module pytest} BuildRequires: %{python_module testpath} BuildRequires: %{python_module traitlets >= 5.1} +BuildRequires: %{pythons} # /SECTION %python_subpackages @@ -84,10 +87,10 @@ This package provides the jupyter components. sed -i 's/--color=yes//' pyproject.toml %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/jupyter-trust %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -110,8 +113,8 @@ sed -i 's/--color=yes//' pyproject.toml %license COPYING.md %doc README.md %python_alternative jupyter-trust -%{python_sitelib}/nbformat-%{version}-py*.egg-info %{python_sitelib}/nbformat/ +%{python_sitelib}/nbformat-%{version}.dist-info/ %files -n jupyter-nbformat %license COPYING.md