Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Pweave for openSUSE:Factory 
checked in at 2026-02-25 21:07:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Pweave (Old)
 and      /work/SRC/openSUSE:Factory/.python-Pweave.new.1977 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Pweave"

Wed Feb 25 21:07:36 2026 rev:11 rq:1334887 version:0.30.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Pweave/python-Pweave.changes      
2025-05-06 16:43:58.926688907 +0200
+++ /work/SRC/openSUSE:Factory/.python-Pweave.new.1977/python-Pweave.changes    
2026-02-25 21:10:33.870153868 +0100
@@ -1,0 +2,8 @@
+Wed Feb 25 00:33:06 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Switch to autosetup macro.
+- Replace jupyter {Build,}Requires with their "new" names.
+- Add patch support-ipython-9.patch:
+  * Replace use of IPythonInputSplitter with TransformerManager
+
+-------------------------------------------------------------------

New:
----
  support-ipython-9.patch

----------(New B)----------
  New:- Replace jupyter {Build,}Requires with their "new" names.
- Add patch support-ipython-9.patch:
  * Replace use of IPythonInputSplitter with TransformerManager
----------(New E)----------

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

Other differences:
------------------
++++++ python-Pweave.spec ++++++
--- /var/tmp/diff_new_pack.4LpY1b/_old  2026-02-25 21:10:34.370174491 +0100
+++ /var/tmp/diff_new_pack.4LpY1b/_new  2026-02-25 21:10:34.370174491 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Pweave
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,8 @@
 Source:         
https://files.pythonhosted.org/packages/source/P/Pweave/Pweave-%{version}.tar.gz
 # PATCH-FIX-UPSTREAM https://github.com/mpastell/Pweave/pull/167 Adjust for 
API changes in Python-Markdown 3.0
 Patch0:         markdown.patch
+# PATCH-FIX-OPENSUSE Replace use of IPythonInputSplitter with 
TransformerManager
+Patch1:         support-ipython-9.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
@@ -33,12 +35,11 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-Markdown
 Requires:       python-Pygments
-Requires:       python-certifi
+Requires:       python-ipykernel
+Requires:       python-ipython
 Requires:       python-jupyter_client
-Requires:       python-jupyter_ipykernel
-Requires:       python-jupyter_ipython
-Requires:       python-jupyter_nbconvert
-Requires:       python-jupyter_nbformat
+Requires:       python-nbconvert
+Requires:       python-nbformat
 Recommends:     python-Sphinx
 Recommends:     python-matplotlib
 Recommends:     python-scipy
@@ -47,16 +48,17 @@
 # SECTION test requirements
 BuildRequires:  %{python_module Markdown}
 BuildRequires:  %{python_module Pygments}
-BuildRequires:  %{python_module certifi}
+BuildRequires:  %{python_module ipykernel}
+BuildRequires:  %{python_module ipython}
 BuildRequires:  %{python_module jupyter_client}
-BuildRequires:  %{python_module jupyter_ipykernel}
-BuildRequires:  %{python_module jupyter_ipython}
-BuildRequires:  %{python_module jupyter_nbconvert}
-BuildRequires:  %{python_module jupyter_nbformat}
 BuildRequires:  %{python_module matplotlib}
+BuildRequires:  %{python_module nbconvert}
+BuildRequires:  %{python_module nbformat}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module scipy}
 # /SECTION
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 %python_subpackages
 
 %description
@@ -71,8 +73,7 @@
 with e.g. Sphinx or rest2web.
 
 %prep
-%setup -q -n Pweave-%{version}
-%autopatch -p1
+%autosetup -p1 -n Pweave-%{version}
 
 %build
 %pyproject_wheel
@@ -111,5 +112,5 @@
 %python_alternative %{_bindir}/pypublish
 %python_alternative %{_bindir}/pweave-convert
 %{python_sitelib}/pweave
-%{python_sitelib}/[Pp]weave-%{version}*info
+%{python_sitelib}/[Pp]weave-%{version}.dist-info
 

++++++ support-ipython-9.patch ++++++
Index: Pweave-0.30.3/pweave/processors/jupyter.py
===================================================================
--- Pweave-0.30.3.orig/pweave/processors/jupyter.py
+++ Pweave-0.30.3/pweave/processors/jupyter.py
@@ -8,7 +8,7 @@ import os
 from .. import config
 from .base import PwebProcessorBase
 from . import subsnippets
-from IPython.core import inputsplitter
+from IPython.core import inputtransformer2
 from ipykernel.inprocess import InProcessKernelManager
 
 from queue import Empty
@@ -179,26 +179,13 @@ class IPythonProcessor(JupyterProcessor)
         self.loadstring("\n".join([f_size, f_dpi]))
 
     def loadterm(self, code_str, **kwargs):
-        splitter = inputsplitter.IPythonInputSplitter()
+        transformer = inputtransformer2.TransformerManager()
         code_lines = code_str.lstrip().splitlines()
         sources = []
         outputs = []
 
         for line in code_lines:
-            if splitter.push_accepts_more():
-                splitter.push(line)
-            else:
-                code_str = splitter.source
-                sources.append(code_str)
-                out = self.loadstring(code_str)
-                #print(out)
-                outputs.append(out)
-                splitter.reset()
-                splitter.push(line)
-
-
-        if splitter.source != "":
-            code_str = splitter.source
+            code_str = transformer.transform_cell(line)
             sources.append(code_str)
             out = self.loadstring(code_str)
             outputs.append(out)

Reply via email to