[packages/python3-nbformat] up to 5.10.4

atler atler at pld-linux.org
Tue Apr 22 14:12:50 CEST 2025


commit 80e9b1ecfec0ae61afd3414689349e401d506802
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Apr 22 13:24:34 2025 +0200

    up to 5.10.4

 python-3.12.patch                     | 15 ---------------
 python3-nbformat-use_setuptools.patch | 11 -----------
 python3-nbformat.spec                 | 33 +++++++++++++++++----------------
 3 files changed, 17 insertions(+), 42 deletions(-)
---
diff --git a/python3-nbformat.spec b/python3-nbformat.spec
index 7e58d58..4658821 100644
--- a/python3-nbformat.spec
+++ b/python3-nbformat.spec
@@ -6,29 +6,32 @@
 Summary:	The Jupyter Notebook Format
 Summary(pl.UTF-8):	Format Jupyter Notebook
 Name:		python3-nbformat
-Version:	5.0.5
-Release:	7
+Version:	5.10.4
+Release:	1
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/nbformat/
 Source0:	https://files.pythonhosted.org/packages/source/n/nbformat/nbformat-%{version}.tar.gz
-# Source0-md5:	b519838bfe4765cda1885936db4a2bea
-Patch0:		%{name}-use_setuptools.patch
-Patch1:		python-3.12.patch
+# Source0-md5:	68dfea58a1236aa0518f1fec9c968473
 URL:		https://pypi.org/project/nbformat/
-BuildRequires:	python3-modules >= 1:3.5
-BuildRequires:	python3-setuptools
+BuildRequires:	python3-build
+BuildRequires:	python3-hatch-nodejs-version
+BuildRequires:	python3-hatchling >= 1.5
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.8
 %if %{with tests}
+BuildRequires:	python3-fastjsonschema
 BuildRequires:	python3-ipython_genutils
 BuildRequires:	python3-jsonschema >= 2.5.1
 BuildRequires:	python3-jupyter_core
+BuildRequires:	python3-pep440
 BuildRequires:	python3-pytest
 BuildRequires:	python3-pytest-cov
 BuildRequires:	python3-testpath
 BuildRequires:	python3-traitlets >= 4.1
 %endif
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	rpmbuild(macros) >= 2.044
 %if %{with doc}
 BuildRequires:	sphinx-pdg-3
 BuildRequires:	python3-ipython_genutils
@@ -36,7 +39,7 @@ BuildRequires:	python3-jsonschema >= 2.5.1
 BuildRequires:	python3-jupyter_core
 BuildRequires:	python3-traitlets
 %endif
-Requires:	python3-modules >= 1:3.5
+Requires:	python3-modules >= 1:3.8
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -61,14 +64,12 @@ Dokumentacja API modułu Pythona nbformat.
 
 %prep
 %setup -q -n nbformat-%{version}
-%patch -P 0 -p1
-%patch -P 1 -p1
 
 %build
-%py3_build
+%py3_build_pyproject
 
 %if %{with tests}
-%{__python3} -m pytest nbformat/tests
+%{__python3} -m pytest -p no:unraisableexception tests
 %endif
 
 %if %{with doc}
@@ -80,7 +81,7 @@ PYTHONPATH=$(pwd) \
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%py3_install
+%py3_install_pyproject
 
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/jupyter-trust{,-3}
 ln -s jupyter-trust-3 $RPM_BUILD_ROOT%{_bindir}/jupyter-trust
@@ -90,11 +91,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc COPYING.md README.md
+%doc LICENSE README.md
 %attr(755,root,root) %{_bindir}/jupyter-trust
 %attr(755,root,root) %{_bindir}/jupyter-trust-3
 %{py3_sitescriptdir}/nbformat
-%{py3_sitescriptdir}/nbformat-%{version}-py*.egg-info
+%{py3_sitescriptdir}/nbformat-%{version}.dist-info
 
 %if %{with doc}
 %files apidocs
diff --git a/python-3.12.patch b/python-3.12.patch
deleted file mode 100644
index 5dec030..0000000
--- a/python-3.12.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- nbformat-5.0.5/nbformat/tests/test_validator.py.orig	2020-01-06 22:02:54.000000000 +0100
-+++ nbformat-5.0.5/nbformat/tests/test_validator.py	2025-04-19 16:30:56.495634484 +0200
-@@ -95,9 +95,9 @@
-         with self.assertRaises(ValidationError) as e:
-             validate(nb)
-         s = str(e.exception)
--        self.assertRegexpMatches(s, "validating.*required.* in markdown_cell")
--        self.assertRegexpMatches(s, "source.* is a required property")
--        self.assertRegexpMatches(s, r"On instance\[u?['\"].*cells['\"]\]\[0\]")
-+        self.assertRegex(s, "validating.*required.* in markdown_cell")
-+        self.assertRegex(s, "source.* is a required property")
-+        self.assertRegex(s, r"On instance\[u?['\"].*cells['\"]\]\[0\]")
-         self.assertLess(len(s.splitlines()), 10)
- 
-     def test_iter_validation_error(self):
diff --git a/python3-nbformat-use_setuptools.patch b/python3-nbformat-use_setuptools.patch
deleted file mode 100644
index 3f21fe7..0000000
--- a/python3-nbformat-use_setuptools.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- nbformat-4.4.0/setup.py.orig	2017-06-06 18:55:25.000000000 +0200
-+++ nbformat-4.4.0/setup.py	2019-10-01 05:33:40.480776705 +0200
-@@ -83,7 +83,7 @@
-     ],
- )
- 
--if 'develop' in sys.argv or any(a.startswith('bdist') for a in sys.argv):
-+if True:
-     import setuptools
- 
- setuptools_args = {}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-nbformat.git/commitdiff/80e9b1ecfec0ae61afd3414689349e401d506802



More information about the pld-cvs-commit mailing list