Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Cheetah3 for openSUSE:Factory 
checked in at 2026-07-17 18:48:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Cheetah3 (Old)
 and      /work/SRC/openSUSE:Factory/.python-Cheetah3.new.24530 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Cheetah3"

Fri Jul 17 18:48:58 2026 rev:19 rq:1366279 version:3.4.0.post5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Cheetah3/python-Cheetah3.changes  
2026-03-07 20:14:12.374480415 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-Cheetah3.new.24530/python-Cheetah3.changes   
    2026-07-17 18:50:05.162483964 +0200
@@ -1,0 +2,6 @@
+Fri Jul 17 05:14:21 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-load-module.patch:
+  * Do not use load_module(), it has been removed in Python 3.15.
+
+-------------------------------------------------------------------

New:
----
  no-more-load-module.patch

----------(New B)----------
  New:
- Add patch no-more-load-module.patch:
  * Do not use load_module(), it has been removed in Python 3.15.
----------(New E)----------

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

Other differences:
------------------
++++++ python-Cheetah3.spec ++++++
--- /var/tmp/diff_new_pack.htbh5u/_old  2026-07-17 18:50:05.926509816 +0200
+++ /var/tmp/diff_new_pack.htbh5u/_new  2026-07-17 18:50:05.926509816 +0200
@@ -23,9 +23,10 @@
 Release:        0
 Summary:        Template engine and code generation tool
 License:        MIT
-Group:          Development/Languages/Python
 URL:            https://cheetahtemplate.org/
 Source:         
https://github.com/CheetahTemplate3/cheetah3/archive/refs/tags/%{version}.tar.gz#/%{modname}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM gh#CheetahTemplate3/cheetah3#73
+Patch0:         no-more-load-module.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
@@ -56,8 +57,7 @@
 It is a fork of the original CheetahTemplate library.
 
 %prep
-%setup -q -n %{modname}-%{version}
-%autopatch -p1
+%autosetup -p1 -n %{modname}-%{version}
 find . -name \*.py -print0 |xargs -0 -t -l sed -i -e '1{\@^#!%{_bindir}/env 
python@d}'
 
 # Disable some tests which fail on Python 3.6

++++++ no-more-load-module.patch ++++++
>From f935b58cdf47570b288e59a8a19e157d5909f7ac Mon Sep 17 00:00:00 2001
From: Steve Kowalik <[email protected]>
Date: Fri, 17 Jul 2026 15:07:49 +1000
Subject: [PATCH] Stop using load_module() in compat

load_module() has been deprecated effectively since it was added,
replaced by exec_module in Python 3.5, switch to using that, since
load_module() was removed in Python 3.15.

Note this effectively removes support for Python 3.4, but I can reenable
that if you prefer.
---
 Cheetah/compat.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Cheetah/compat.py b/Cheetah/compat.py
index 78cfcddd..78105065 100644
--- a/Cheetah/compat.py
+++ b/Cheetah/compat.py
@@ -53,7 +53,9 @@ def cache_from_source(path, debug_override=None):
 
     def load_module_from_file(base_name, module_name, filename):
         specs = importlib.util.spec_from_file_location(module_name, filename)
-        return specs.loader.load_module()
+        module = importlib.util.module_from_spec(specs)
+        specs.loader.exec_module(module)
+        return module
 
     new_module = types.ModuleType
 

Reply via email to