forked from pool/python-tenacity
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 6780db9630 | |||
| 33d6815289 | |||
| 049a618a88 | |||
| fc467e8b07 |
@@ -1,3 +1,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 11 05:01:03 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patch support-python314.patch:
|
||||||
|
* Support Python 3.14 asyncio changes.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 10 08:12:30 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 9.1.2:
|
||||||
|
* Test with Python 3.13
|
||||||
|
* ci: remove Python 3.8 support
|
||||||
|
* fix: return "Self" from "BaseRetrying.copy"
|
||||||
|
* ci: upload on PyPI using trusted publishing
|
||||||
|
* Add re.Pattern to allowed match types
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Sep 8 13:40:43 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Sun Sep 8 13:40:43 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-tenacity
|
# spec file for package python-tenacity
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,13 +18,14 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-tenacity
|
Name: python-tenacity
|
||||||
Version: 9.0.0
|
Version: 9.1.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python module for retrying code until it succeeeds
|
Summary: Python module for retrying code until it succeeeds
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/jd/tenacity
|
URL: https://github.com/jd/tenacity
|
||||||
Source: https://files.pythonhosted.org/packages/source/t/tenacity/tenacity-%{version}.tar.gz
|
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 pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
@@ -52,7 +53,7 @@ Features
|
|||||||
- Customize retrying on expected returned result
|
- Customize retrying on expected returned result
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n tenacity-%{version}
|
%autosetup -p1 -n tenacity-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|||||||
44
support-python314.patch
Normal file
44
support-python314.patch
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
From 312a04c2639a8cd8598b8701586889b4f3bd2035 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Sandro Bonazzola <sandro.bonazzola@gmail.com>
|
||||||
|
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 <sandro.bonazzola@gmail.com>
|
||||||
|
---
|
||||||
|
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
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:807f37ca97d62aa361264d497b0e31e92b8027044942bfa756160d908320d73b
|
|
||||||
size 47421
|
|
||||||
3
tenacity-9.1.2.tar.gz
Normal file
3
tenacity-9.1.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1169d376c297e7de388d18b4481760d478b0e99a777cad3a9c86e556f4b697cb
|
||||||
|
size 48036
|
||||||
Reference in New Issue
Block a user