Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-tenacity for openSUSE:Factory 
checked in at 2025-11-11 19:20:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tenacity (Old)
 and      /work/SRC/openSUSE:Factory/.python-tenacity.new.1980 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tenacity"

Tue Nov 11 19:20:46 2025 rev:27 rq:1317002 version:9.1.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tenacity/python-tenacity.changes  
2025-11-10 19:19:18.997314150 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-tenacity.new.1980/python-tenacity.changes    
    2025-11-11 19:21:13.783204076 +0100
@@ -1,0 +2,6 @@
+Tue Nov 11 05:01:03 UTC 2025 - Steve Kowalik <[email protected]>
+
+- Add patch support-python314.patch:
+  * Support Python 3.14 asyncio changes.
+
+-------------------------------------------------------------------

New:
----
  support-python314.patch

----------(New B)----------
  New:
- Add patch support-python314.patch:
  * Support Python 3.14 asyncio changes.
----------(New E)----------

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

Other differences:
------------------
++++++ python-tenacity.spec ++++++
--- /var/tmp/diff_new_pack.pBwa0E/_old  2025-11-11 19:21:14.463232558 +0100
+++ /var/tmp/diff_new_pack.pBwa0E/_new  2025-11-11 19:21:14.463232558 +0100
@@ -22,9 +22,10 @@
 Release:        0
 Summary:        Python module for retrying code until it succeeeds
 License:        Apache-2.0
-Group:          Development/Languages/Python
 URL:            https://github.com/jd/tenacity
 Source:         
https://files.pythonhosted.org/packages/source/t/tenacity/tenacity-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM One commit of gh#jd/tenacity#528
+Patch0:         support-python314.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools_scm}
@@ -52,7 +53,7 @@
 - Customize retrying on expected returned result
 
 %prep
-%setup -q -n tenacity-%{version}
+%autosetup -p1 -n tenacity-%{version}
 
 %build
 %pyproject_wheel

++++++ support-python314.patch ++++++
>From 312a04c2639a8cd8598b8701586889b4f3bd2035 Mon Sep 17 00:00:00 2001
From: Sandro Bonazzola <[email protected]>
Date: Tue, 17 Jun 2025 11:45:23 +0200
Subject: [PATCH 2/4] Refactor `asynctest` decorator

This refactors the original code to work with Python 3.14,
leveraging `asyncio.run()` for automatic event loop management,
which is the recommended approach in modern asyncio.

Fixes #527.

Signed-off-by: Sandro Bonazzola <[email protected]>
---
 tests/test_asyncio.py   | 3 +--
 tests/test_issue_478.py | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/tests/test_asyncio.py b/tests/test_asyncio.py
index 0b74476..f6793f0 100644
--- a/tests/test_asyncio.py
+++ b/tests/test_asyncio.py
@@ -40,8 +40,7 @@
 def asynctest(callable_):
     @wraps(callable_)
     def wrapper(*a, **kw):
-        loop = asyncio.get_event_loop()
-        return loop.run_until_complete(callable_(*a, **kw))
+        return asyncio.run(callable_(*a, **kw))
 
     return wrapper
 
diff --git a/tests/test_issue_478.py b/tests/test_issue_478.py
index 7489ad7..83182ac 100644
--- a/tests/test_issue_478.py
+++ b/tests/test_issue_478.py
@@ -12,8 +12,7 @@ def asynctest(
 ) -> typing.Callable[..., typing.Any]:
     @wraps(callable_)
     def wrapper(*a: typing.Any, **kw: typing.Any) -> typing.Any:
-        loop = asyncio.get_event_loop()
-        return loop.run_until_complete(callable_(*a, **kw))
+        return asyncio.run(callable_(*a, **kw))
 
     return wrapper

Reply via email to