Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-python-editor for
openSUSE:Factory checked in at 2025-06-23 15:05:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-editor (Old)
and /work/SRC/openSUSE:Factory/.python-python-editor.new.7067 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-editor"
Mon Jun 23 15:05:21 2025 rev:8 rq:1287805 version:1.0.4
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-python-editor/python-python-editor.changes
2025-06-11 16:23:50.873768162 +0200
+++
/work/SRC/openSUSE:Factory/.python-python-editor.new.7067/python-python-editor.changes
2025-06-23 15:06:28.788754981 +0200
@@ -1,0 +2,6 @@
+Fri Jun 20 11:51:56 UTC 2025 - Nico Krapp <[email protected]>
+
+- Add support-python312.patch to not depend on distutils (boo#1245108)
+- clean up duplicate files
+
+-------------------------------------------------------------------
New:
----
support-python312.patch
----------(New B)----------
New:
- Add support-python312.patch to not depend on distutils (boo#1245108)
- clean up duplicate files
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-editor.spec ++++++
--- /var/tmp/diff_new_pack.L5F0eD/_old 2025-06-23 15:06:29.452782683 +0200
+++ /var/tmp/diff_new_pack.L5F0eD/_new 2025-06-23 15:06:29.452782683 +0200
@@ -24,9 +24,12 @@
Group: Development/Languages/Python
URL: https://github.com/fmoo/python-editor
Source:
https://files.pythonhosted.org/packages/source/p/python-editor/python-editor-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM support-python312.patch
https://github.com/fmoo/python-editor/commit/5023fafd265add111b29baca59b07f140daf75b7
+Patch0: support-python312.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
+BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%if 0%{?is_opensuse}
@@ -40,7 +43,7 @@
environment variable.
%prep
-%setup -q -n python-editor-%{version}
+%autosetup -p1 -n python-editor-%{version}
%build
find -type f -exec chmod 644 {} +
@@ -49,13 +52,12 @@
%install
%pyproject_install
%python_expand sed -i -e '/^#!\/usr\/bin\/env/d'
%{buildroot}%{$python_sitelib}/editor.py
+%python_expand %fdupes %{buildroot}%{$python_sitelib}/
-%if 0%{?is_opensuse}
# the example does not look like an unit test
-# %check
+# %%check
# export EDITOR='nano'
# Xpython_exec test.py
-%endif
%files %{python_files}
%license LICENSE
++++++ support-python312.patch ++++++
>From 5023fafd265add111b29baca59b07f140daf75b7 Mon Sep 17 00:00:00 2001
From: Branch Vincent <[email protected]>
Date: Sun, 8 Oct 2023 12:52:53 -0700
Subject: [PATCH] support python 3.12
Python 3.12 has removed `distutils`:
https://docs.python.org/3.12/whatsnew/3.12.html#removed
---
editor.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Index: python-editor-1.0.4/editor.py
===================================================================
--- python-editor-1.0.4.orig/editor.py
+++ python-editor-1.0.4/editor.py
@@ -8,7 +8,6 @@ import locale
import os.path
import subprocess
import tempfile
-from distutils.spawn import find_executable
__all__ = [
@@ -52,6 +51,10 @@ def get_editor_args(editor):
def get_editor():
+ try:
+ from distutils.spawn import find_executable
+ except ImportError:
+ from shutil import which as find_executable
# Get the editor from the environment. Prefer VISUAL to EDITOR
editor = os.environ.get('VISUAL') or os.environ.get('EDITOR')
if editor: