Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-stopit for openSUSE:Factory checked in at 2026-10-08 11:57:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-stopit (Old) and /work/SRC/openSUSE:Factory/.python-stopit.new.3698736 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-stopit" Thu Oct 8 11:57:19 2026 rev:2 rq:1383140 version:1.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-stopit/python-stopit.changes 2025-02-05 12:40:50.673586967 +0100 +++ /work/SRC/openSUSE:Factory/.python-stopit.new.3698736/python-stopit.changes 2026-10-08 11:59:23.619997648 +0200 @@ -1,0 +2,6 @@ +Thu Oct 1 02:17:25 UTC 2026 - Steve Kowalik <[email protected]> + +- Add patch no-more-pkg-resources.patch: + * Use importlib.metadata to discover the version. + +------------------------------------------------------------------- New: ---- no-more-pkg-resources.patch ----------(New B)---------- New: - Add patch no-more-pkg-resources.patch: * Use importlib.metadata to discover the version. ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-stopit.spec ++++++ --- /var/tmp/diff_new_pack.22Q7Qy/_old 2026-10-08 11:59:25.465073449 +0200 +++ /var/tmp/diff_new_pack.22Q7Qy/_new 2026-10-08 11:59:25.467073531 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-stopit # -# 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 @@ -28,6 +28,8 @@ Source2: https://raw.githubusercontent.com/glenfant/stopit/refs/tags/%{version}/LICENSE # PATCH-FIX-UPSTREAM Patch0: https://github.com/glenfant/stopit/commit/dda4bd181d1d29ab1fb22314dc9bde0e3c931abc.patch#/python-stopit-ulong-for-thread-id.patch +# PATCH-FIX-OPENSUSE Use importlib.metadata +Patch1: no-more-pkg-resources.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} @@ -63,6 +65,6 @@ %files %{python_files} %license LICENSE %doc CHANGES.rst README.rst -%{python_sitelib}/%{modname}/ -%{python_sitelib}/%{modname}-%{version}*.*-info +%{python_sitelib}/%{modname} +%{python_sitelib}/%{modname}-%{version}.dist-info ++++++ no-more-pkg-resources.patch ++++++ Index: stopit-1.1.2/src/stopit/__init__.py =================================================================== --- stopit-1.1.2.orig/src/stopit/__init__.py +++ stopit-1.1.2/src/stopit/__init__.py @@ -7,18 +7,14 @@ stopit Public resources from ``stopit`` """ -import pkg_resources +import importlib.metadata from .utils import LOG, TimeoutException from .threadstop import ThreadingTimeout, async_raise, threading_timeoutable from .signalstop import SignalTimeout, signal_timeoutable # PEP 396 style version marker -try: - __version__ = pkg_resources.get_distribution(__name__).version -except: - LOG.warning("Could not get the package version from pkg_resources") - __version__ = 'unknown' +__version__ = importlib.metadata.version(__name__) __all__ = ( 'ThreadingTimeout', 'async_raise', 'threading_timeoutable',
