Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-logreduce for 
openSUSE:Factory checked in at 2026-09-28 10:48:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-logreduce (Old)
 and      /work/SRC/openSUSE:Factory/.python-logreduce.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-logreduce"

Mon Sep 28 10:48:38 2026 rev:16 rq:1381080 version:0.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-logreduce/python-logreduce.changes        
2025-06-30 14:01:33.107348579 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-logreduce.new.383539/python-logreduce.changes
    2026-09-28 10:49:41.173081246 +0200
@@ -1,0 +2,6 @@
+Mon Sep 28 06:20:25 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+  * Use importlib.metadata, not pkg_resources.
+
+-------------------------------------------------------------------

New:
----
  no-more-pkg-resources.patch

----------(New B)----------
  New:
- Add patch no-more-pkg-resources.patch:
  * Use importlib.metadata, not pkg_resources.
----------(New E)----------

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

Other differences:
------------------
++++++ python-logreduce.spec ++++++
--- /var/tmp/diff_new_pack.xmjDyy/_old  2026-09-28 10:49:41.854109780 +0200
+++ /var/tmp/diff_new_pack.xmjDyy/_new  2026-09-28 10:49:41.855109822 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-logreduce
 #
-# 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
@@ -25,6 +25,8 @@
 License:        Apache-2.0
 URL:            https://logreduce.softwarefactory-project.io/
 Source:         
https://files.pythonhosted.org/packages/source/l/logreduce/logreduce-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Use importlib.metadata, not pkg_resources
+Patch0:         no-more-pkg-resources.patch
 BuildRequires:  %{python_module pbr}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
@@ -71,7 +73,7 @@
   (using **NearestNeighbors**).
 
 %prep
-%setup -q -n logreduce-%{version}
+%autosetup -p1 -n logreduce-%{version}
 sed -i -e 's,flake8.*,,' test-requirements.txt
 sed -i '1{/^#!/d}' logreduce/cmd.py
 

++++++ no-more-pkg-resources.patch ++++++
Index: logreduce-0.6.1/logreduce/html_output.py
===================================================================
--- logreduce-0.6.1.orig/logreduce/html_output.py
+++ logreduce-0.6.1/logreduce/html_output.py
@@ -12,7 +12,7 @@
 
 import html
 import os.path
-import pkg_resources
+import importlib.metadata
 
 from typing import Any, List, Tuple
 from logreduce.data import Result, show_logobject
@@ -330,7 +330,7 @@ def render_html(output: Result, static_l
         target=" ".join(map(html.escape, map(str, output["targets"]))),
         js=JS,
         logo=LOGO.replace("\n", ""),
-        version=pkg_resources.get_distribution("logreduce").version,
+        version=importlib.metadata.version("logreduce"),
         body="\n".join(body),
         jquery_loc=jquery_loc,
         bootst_loc=bootst_loc,

Reply via email to