Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-nbformat for openSUSE:Factory 
checked in at 2023-10-27 22:28:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nbformat (Old)
 and      /work/SRC/openSUSE:Factory/.python-nbformat.new.17445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nbformat"

Fri Oct 27 22:28:17 2023 rev:22 rq:1120632 version:5.9.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nbformat/python-nbformat.changes  
2023-08-06 16:30:01.515870113 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-nbformat.new.17445/python-nbformat.changes   
    2023-10-27 22:28:50.888955741 +0200
@@ -1,0 +2,13 @@
+Thu Oct 26 18:38:02 UTC 2023 - Ben Greiner <c...@bnavigator.de>
+
+- Actually remove pep440 from test requirements
+
+-------------------------------------------------------------------
+Thu Oct 26 18:09:45 UTC 2023 - Matej Cepl <mc...@cepl.eu>
+
+- Add no-hatch-nodejs-version.patch to remove dependency on
+  hatch-nodejs-version
+- Add no-pep440.patch to remove unnecessary checking for the
+  validity of the package version number.
+
+-------------------------------------------------------------------

New:
----
  no-hatch-nodejs-version.patch
  no-pep440.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-nbformat.spec ++++++
--- /var/tmp/diff_new_pack.xLxtjB/_old  2023-10-27 22:28:51.320971585 +0200
+++ /var/tmp/diff_new_pack.xLxtjB/_new  2023-10-27 22:28:51.324971732 +0200
@@ -25,8 +25,13 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/jupyter/nbformat
 Source:         
https://github.com/jupyter/nbformat/releases/download/v%{version}/nbformat-%{version}.tar.gz
+# PATCH-FEATURE-OPENSUSE no-hatch-nodejs-version.patch mc...@suse.com
+# We don’t need hatch-nodejs-version dependency
+Patch0:         no-hatch-nodejs-version.patch
+# PATCH-FEATURE-OPENSUSE no-pep440.patch mc...@suse.com
+# We don’t need pep440 check either
+Patch1:         no-pep440.patch
 BuildRequires:  %{python_module base >= 3.8}
-BuildRequires:  %{python_module hatch_nodejs_version}
 BuildRequires:  %{python_module hatchling >= 1.5}
 BuildRequires:  %{python_module pip}
 BuildRequires:  fdupes
@@ -50,7 +55,6 @@
 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}
@@ -65,8 +69,8 @@
 This package provides the python interface.
 
 %prep
-%setup -q -n nbformat-%{version}
-sed -i 's/--color=yes//' pyproject.toml
+%autosetup -p1 -n nbformat-%{version}
+sed -i -e 's/--color=yes//' -e 's/\@\@\@/%{version}/' pyproject.toml
 
 %build
 %pyproject_wheel

++++++ no-hatch-nodejs-version.patch ++++++
---
 pyproject.toml |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,10 +1,10 @@
 [build-system]
-requires = ["hatchling>=1.5", "hatch-nodejs-version"]
+requires = ["hatchling>=1.5"]
 build-backend = "hatchling.build"
 
 [project]
 name = "nbformat"
-dynamic = ["version"]
+version = "@@@"
 description = "The Jupyter Notebook format"
 license = { file = "LICENSE" }
 keywords = ["Interactive", "Interpreter", "Shell", "Web"]
@@ -58,9 +58,6 @@ test = [
 [project.scripts]
 jupyter-trust = "nbformat.sign:TrustNotebookApp.launch_instance"
 
-[tool.hatch.version]
-source = "nodejs"
-
 [tool.hatch.envs.docs]
 features = ["docs"]
 [tool.hatch.envs.docs.scripts]

++++++ no-pep440.patch ++++++
---
 pyproject.toml    |    3 +--
 tests/test_api.py |    5 -----
 2 files changed, 1 insertion(+), 7 deletions(-)

Index: nbformat-5.9.2/pyproject.toml
===================================================================
--- nbformat-5.9.2.orig/pyproject.toml
+++ nbformat-5.9.2/pyproject.toml
@@ -52,7 +52,6 @@ test = [
     "testpath",
     "pytest",
     "pre-commit",
-    "pep440"
 ]
 
 [project.scripts]
Index: nbformat-5.9.2/tests/test_api.py
===================================================================
--- nbformat-5.9.2.orig/tests/test_api.py
+++ nbformat-5.9.2/tests/test_api.py
@@ -10,7 +10,6 @@ from tempfile import TemporaryDirectory
 from typing import Any, Dict
 
 from jsonschema import ValidationError
-from pep440 import is_canonical
 
 from nbformat import __version__ as nbf_version
 from nbformat import current_nbformat, read, write, writes
@@ -20,10 +19,6 @@ from nbformat.validator import isvalid
 from .base import TestsBase
 
 
-def test_canonical_version():
-    assert is_canonical(nbf_version)
-
-
 class TestAPI(TestsBase):
     def test_read(self):
         """Can older notebooks be opened and automatically converted to the 
current

Reply via email to