Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-spyder-notebook for 
openSUSE:Factory checked in at 2025-03-13 22:47:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-spyder-notebook (Old)
 and      /work/SRC/openSUSE:Factory/.python-spyder-notebook.new.19136 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-spyder-notebook"

Thu Mar 13 22:47:19 2025 rev:3 rq:1252871 version:0.6.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-spyder-notebook/python-spyder-notebook.changes
    2024-09-16 17:44:26.572448307 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-spyder-notebook.new.19136/python-spyder-notebook.changes
 2025-03-13 22:47:20.749892557 +0100
@@ -1,0 +2,6 @@
+Mon Mar 10 03:50:54 UTC 2025 - Steve Kowalik <[email protected]>
+
+- Add patch support-python-312.patch
+  * Support building with Python 3.12+.
+
+-------------------------------------------------------------------

New:
----
  support-python-312.patch

BETA DEBUG BEGIN:
  New:
- Add patch support-python-312.patch
  * Support building with Python 3.12+.
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-spyder-notebook.spec ++++++
--- /var/tmp/diff_new_pack.o4IMYn/_old  2025-03-13 22:47:21.577926824 +0100
+++ /var/tmp/diff_new_pack.o4IMYn/_new  2025-03-13 22:47:21.585927155 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-spyder-notebook
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,8 @@
 URL:            https://github.com/spyder-ide/spyder-notebook
 Source:         
https://files.pythonhosted.org/packages/source/s/spyder-notebook/spyder_notebook-%{version}.tar.gz
 Source1:        
https://github.com/spyder-ide/spyder-notebook/raw/v%{version}/spyder_notebook/widgets/tests/test.ipynb
+# PATCH-FIX-UPSTREAM gh#spyder-ide/spyder-notebook#481
+Patch0:         support-python-312.patch
 # TODO: use local-npm-registry
 BuildRequires:  %{python_module base >= 3.8}
 BuildRequires:  %{python_module pip}

++++++ support-python-312.patch ++++++
>From e5291191ae351deca9c499d5ac4632a05e57c0b7 Mon Sep 17 00:00:00 2001
From: Steve Kowalik <[email protected]>
Date: Mon, 10 Mar 2025 14:35:22 +1100
Subject: [PATCH] Support Python 3.12+ in setup.py

Python 3.12 removed the distutils module, and Python 3.13 removed the
pipes module. Replace usage of both with either their documented
replacements, or in the case of distutils, just use logging directly.
---
 setup.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/setup.py b/setup.py
index 33a90de..5a049e5 100644
--- a/setup.py
+++ b/setup.py
@@ -7,10 +7,10 @@
 
 # Standard library imports
 import ast
-import distutils
+import logging
 import os
 import os.path as osp
-import pipes
+import shlex
 import subprocess
 import sys
 
@@ -23,17 +23,19 @@
 else:
     def list2cmdline(cmd_list):
         """Convert list of arguments to a command line string."""
-        return ' '.join(map(pipes.quote, cmd_list))
+        return ' '.join(map(shlex.quote, cmd_list))
 
 
 HERE = os.path.abspath(os.path.dirname(__file__))
 SERVER_DIR = osp.join(HERE, 'spyder_notebook', 'server')
 BUILD_DIR = osp.join(SERVER_DIR, 'static')
 
+logging.basicConfig(format='%(message)s')
 
 def run(cmd, *args, **kwargs):
     """Echo a command before running it."""
-    distutils.log.info('> ' + list2cmdline(cmd))
+    logger = logging.getLogger()
+    logger.info('> ' + list2cmdline(cmd))
     kwargs['shell'] = (sys.platform == 'win32')
     return subprocess.check_call(cmd, *args, **kwargs)
 

Reply via email to