Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-timeout-decorator for
openSUSE:Factory checked in at 2026-04-08 17:17:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-timeout-decorator (Old)
and /work/SRC/openSUSE:Factory/.python-timeout-decorator.new.21863 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-timeout-decorator"
Wed Apr 8 17:17:09 2026 rev:4 rq:1345126 version:0.5.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-timeout-decorator/python-timeout-decorator.changes
2025-06-04 20:28:39.937261930 +0200
+++
/work/SRC/openSUSE:Factory/.python-timeout-decorator.new.21863/python-timeout-decorator.changes
2026-04-08 17:17:13.671614814 +0200
@@ -1,0 +2,5 @@
+Mon Apr 6 21:57:34 UTC 2026 - Jaime Marquínez Ferrándiz
<[email protected]>
+
+- Add fix_tests_on_python_3_14.patch
+
+-------------------------------------------------------------------
New:
----
fix_tests_on_python_3_14.patch
----------(New B)----------
New:
- Add fix_tests_on_python_3_14.patch
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-timeout-decorator.spec ++++++
--- /var/tmp/diff_new_pack.gkkjjJ/_old 2026-04-08 17:17:14.411645239 +0200
+++ /var/tmp/diff_new_pack.gkkjjJ/_new 2026-04-08 17:17:14.411645239 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-timeout-decorator
#
-# 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
@@ -27,6 +27,8 @@
Source1:
https://raw.githubusercontent.com/pnpnpn/timeout-decorator/master/tests/test_timeout_decorator.py
# https://github.com/pnpnpn/timeout-decorator/issues/68
Source2:
https://raw.githubusercontent.com/pnpnpn/timeout-decorator/master/LICENSE.txt
+# PATCH-UPSTREAM: https://github.com/pnpnpn/timeout-decorator/pull/89
+Patch1: fix_tests_on_python_3_14.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -40,7 +42,7 @@
Python timeout decorator.
%prep
-%setup -q -n timeout-decorator-%{version}
+%autosetup -p1 -n timeout-decorator-%{version}
cp %{SOURCE1} %{SOURCE2} .
%build
++++++ fix_tests_on_python_3_14.patch ++++++
>From 55468a8a53dea55815dac5262661d038ace9a134 Mon Sep 17 00:00:00 2001
From: Boyuan Yang <[email protected]>
Date: Fri, 23 Jan 2026 09:27:41 -0500
Subject: [PATCH] Use pre-python3.14 fork method for multiprocessing.Process
This keeps the old behavior of multiprocessing module and avoids
testsuite failures when using Python 3.14 or later Python versions.
This patch closes #88.
---
timeout_decorator/timeout_decorator.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/timeout_decorator/timeout_decorator.py
b/timeout_decorator/timeout_decorator.py
index 42b6686..2263170 100644
--- a/timeout_decorator/timeout_decorator.py
+++ b/timeout_decorator/timeout_decorator.py
@@ -140,9 +140,10 @@ def __call__(self, *args, **kwargs):
self.__limit = kwargs.pop('timeout', self.__limit)
self.__queue = multiprocessing.Queue(1)
args = (self.__queue, self.__function) + args
- self.__process = multiprocessing.Process(target=_target,
- args=args,
- kwargs=kwargs)
+ ctx = multiprocessing.get_context('fork')
+ self.__process = ctx.Process(target=_target,
+ args=args,
+ kwargs=kwargs)
self.__process.daemon = True
self.__process.start()
if self.__limit is not None: