Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package archmage for openSUSE:Factory 
checked in at 2026-11-26 15:53:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/archmage (Old)
 and      /work/SRC/openSUSE:Factory/.archmage.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "archmage"

Thu Nov 26 15:53:55 2026 rev:6 rq:1400627 version:0.4.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/archmage/archmage.changes        2026-06-22 
17:45:24.187329496 +0200
+++ /work/SRC/openSUSE:Factory/.archmage.new.1340718/archmage.changes   
2026-11-26 15:54:22.553219140 +0100
@@ -1,0 +2,6 @@
+Wed Nov 25 18:09:05 UTC 2026 - Dominique Leuenberger <[email protected]>
+
+- Add archmage-use-importlib-resources.patch: Replace removed
+  pkg_resources with importlib.resources.
+
+-------------------------------------------------------------------

New:
----
  archmage-use-importlib-resources.patch

----------(New B)----------
  New:
- Add archmage-use-importlib-resources.patch: Replace removed
  pkg_resources with importlib.resources.
----------(New E)----------

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

Other differences:
------------------
++++++ archmage.spec ++++++
--- /var/tmp/diff_new_pack.v43QQi/_old  2026-11-26 15:54:23.617264343 +0100
+++ /var/tmp/diff_new_pack.v43QQi/_new  2026-11-26 15:54:23.620264471 +0100
@@ -26,6 +26,7 @@
 Source:         
https://github.com/dottedmag/archmage/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 # PATCH-FIX-UPSTREAM archmage-fix-bytes-regex.patch boo#1178542 -- fix 
"archmage -c pdf" crash by matching the bytes data with bytes regex patterns
 Patch0:         archmage-fix-bytes-regex.patch
+Patch1:         archmage-use-importlib-resources.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes

++++++ archmage-use-importlib-resources.patch ++++++
From: Dominique Leuenberger <[email protected]>
Date: Wed, 25 Nov 2026 18:10:00 +0000
Subject: [PATCH] Replace deprecated pkg_resources with importlib.resources

pkg_resources was removed in setuptools 84.0.0. Use standard library
importlib.resources to locate the bundled arch.conf file and templates
directory.
---
 archmage/__init__.py | 4 ++--
 archmage/arch.conf   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

--- a/archmage/__init__.py
+++ b/archmage/__init__.py
@@ -21,14 +21,14 @@
 #
 __version__ = "0.4.2.1"
 
-import os, pkg_resources
+import os, importlib.resources
 
 # what config file to use - local or a system wide?
 user_config = os.path.join(os.path.expanduser("~"), ".arch.conf")
 if os.path.exists(user_config):
     config = user_config
 else:
-    config = pkg_resources.resource_filename("archmage", "arch.conf")
+    config = str(importlib.resources.files("archmage") / "arch.conf")
 
 
 def file2dir(filename):
--- a/archmage/arch.conf
+++ b/archmage/arch.conf
@@ -1,7 +1,7 @@
 from os.path import basename, join
-import pkg_resources
+import importlib.resources
 
 # Directory for templates
-templates_dir = pkg_resources.resource_filename('archmage', 'templates/')
+templates_dir = str(importlib.resources.files('archmage') / 'templates')
 
 # Directory with icons

Reply via email to