Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-isbnlib for openSUSE:Factory 
checked in at 2026-05-26 16:34:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-isbnlib (Old)
 and      /work/SRC/openSUSE:Factory/.python-isbnlib.new.2084 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-isbnlib"

Tue May 26 16:34:38 2026 rev:3 rq:1355123 version:3.10.14

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-isbnlib/python-isbnlib.changes    
2023-12-17 21:35:19.692131806 +0100
+++ /work/SRC/openSUSE:Factory/.python-isbnlib.new.2084/python-isbnlib.changes  
2026-05-26 16:34:44.729768151 +0200
@@ -1,0 +2,8 @@
+Tue May 26 02:08:45 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg_resources.patch:
+  * Use importlib.metadata where we can.
+- Explicitly BuildRequires on setuptools.
+- Skip test broken with Python 3.14. (bsc#1266046)
+
+-------------------------------------------------------------------

New:
----
  no-more-pkg_resources.patch

----------(New B)----------
  New:
- Add patch no-more-pkg_resources.patch:
  * Use importlib.metadata where we can.
----------(New E)----------

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

Other differences:
------------------
++++++ python-isbnlib.spec ++++++
--- /var/tmp/diff_new_pack.LMyjIk/_old  2026-05-26 16:34:45.433797278 +0200
+++ /var/tmp/diff_new_pack.LMyjIk/_new  2026-05-26 16:34:45.433797278 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-isbnlib
 #
-# Copyright (c) 2023 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
@@ -24,6 +24,8 @@
 License:        LGPL-3.0-only
 URL:            https://github.com/xlcnd/isbnlib
 Source:         
https://github.com/xlcnd/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM Based on gh#xlcnd/isbnlib#145
+Patch0:         no-more-pkg_resources.patch
 BuildRequires:  %{python_module anyio}
 BuildRequires:  %{python_module flaky}
 BuildRequires:  %{python_module hypothesis}
@@ -32,6 +34,7 @@
 BuildRequires:  %{python_module pytest-forked}
 BuildRequires:  %{python_module pytest-mock}
 BuildRequires:  %{python_module pytest-xdist}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -54,11 +57,12 @@
 
 %check
 export PYTEST_ADDOPTS="--ignore=isbnlib/test/test_classify.py"
-%pytest -k 'not network'
+# test_vias_multi broken on Python 3.14 due to pickling
+%pytest -k 'not (network or test_vias_multi)'
 
 %files %{python_files}
 %doc README.rst
 %license LICENSE-LGPL-3.0.txt
 %{python_sitelib}/isbnlib
-%{python_sitelib}/isbnlib-%{version}*-info
+%{python_sitelib}/isbnlib-%{version}.dist-info
 

++++++ no-more-pkg_resources.patch ++++++
>From 1c5da78deb92d1d64615466a1963bfe5158161ab Mon Sep 17 00:00:00 2001
From: hseg <[email protected]>
Date: Tue, 29 Oct 2024 15:29:58 +0200
Subject: [PATCH] registry.py: migrate deprecated pkg_resources

As noted in https://setuptools.pypa.io/en/latest/pkg_resources.html,
pkg_resources is deprecated. We were only using it for iter_entry_points anyway,
which has been moved to importlib.metadata:entry_points
---
 isbnlib/registry.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Index: isbnlib-3.10.14/isbnlib/registry.py
===================================================================
--- isbnlib-3.10.14.orig/isbnlib/registry.py
+++ isbnlib-3.10.14/isbnlib/registry.py
@@ -3,7 +3,11 @@
 
 import logging
 
-from pkg_resources import iter_entry_points
+try:
+    from importlib.metadata import entry_points
+except ImportError:
+    # Fallback for Python < 3.8
+    from pkg_resources import iter_entry_points as entry_points
 
 from . import NotValidDefaultFormatterError, NotValidDefaultServiceError
 from . import _goob as goob
@@ -85,7 +89,7 @@ def load_plugins():  # pragma: no cover
     # get metadata plugins from entry_points
     if options.get('LOAD_METADATA_PLUGINS', True):
         try:
-            for entry in iter_entry_points(group='isbnlib.metadata'):
+            for entry in entry_points(group='isbnlib.metadata'):
                 add_service(entry.name, entry.load())
         except Exception:
             LOGGER.critical('Some metadata plugins were not loaded!')

Reply via email to