Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-time-travel for
openSUSE:Factory checked in at 2026-09-28 10:38:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-time-travel (Old)
and /work/SRC/openSUSE:Factory/.python-time-travel.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-time-travel"
Mon Sep 28 10:38:54 2026 rev:5 rq:1380281 version:1.1.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-time-travel/python-time-travel.changes
2025-06-04 20:28:40.673292424 +0200
+++
/work/SRC/openSUSE:Factory/.python-time-travel.new.383539/python-time-travel.changes
2026-09-28 10:40:10.333164257 +0200
@@ -1,0 +2,6 @@
+Thu Sep 24 05:37:16 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+ * Use importlib.metadata, rather than pkg_resources.
+
+-------------------------------------------------------------------
New:
----
no-more-pkg-resources.patch
----------(New B)----------
New:
- Add patch no-more-pkg-resources.patch:
* Use importlib.metadata, rather than pkg_resources.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-time-travel.spec ++++++
--- /var/tmp/diff_new_pack.awSXij/_old 2026-09-28 10:40:11.634218814 +0200
+++ /var/tmp/diff_new_pack.awSXij/_new 2026-09-28 10:40:11.636218898 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-time-travel
#
-# 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
@@ -16,9 +16,7 @@
#
-%define skip_python2 1
Name: python-time-travel
-Group: Development/Languages/Python
Version: 1.1.2
Release: 0
Summary: Python time mocking
@@ -26,6 +24,8 @@
URL: https://github.com/snudler6/time-travel
# pypi archive does not contain the tests
Source:
https://github.com/snudler6/time-travel/archive/refs/tags/v%{version}.tar.gz#/time_travel-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Use importlib.metadata rather than pkg_resources
+Patch0: no-more-pkg-resources.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
@@ -41,7 +41,7 @@
A python library that helps users write deterministic tests for time sensitive
and I/O intensive code.
%prep
-%setup -q -n time-travel-%{version}
+%autosetup -p1 -n time-travel-%{version}
%build
%pyproject_wheel
++++++ no-more-pkg-resources.patch ++++++
Index: time-travel-1.1.2/src/time_travel/time_travel.py
===================================================================
--- time-travel-1.1.2.orig/src/time_travel/time_travel.py
+++ time-travel-1.1.2/src/time_travel/time_travel.py
@@ -1,6 +1,6 @@
"""Mocking interface for python time libraries."""
-import pkg_resources
+import importlib.metadata
from .time_machine_clock import TimeMachineClock, MIN_START_TIME
from .event_pool import EventPool
@@ -21,7 +21,7 @@ class TimeTravel(object):
self.clock = TimeMachineClock(start_time, [self.event_pool])
patches = []
- for patcher in pkg_resources.iter_entry_points(
+ for patcher in importlib.metadata.entry_points(
group='time_travel.patchers'):
patches.append(patcher.load())