forked from pool/python-tenacity
Compare commits
9 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 6780db9630 | |||
| 33d6815289 | |||
| 049a618a88 | |||
| fc467e8b07 | |||
| 886d2be659 | |||
| ac10aa6d15 | |||
| 1c8c6e5f77 | |||
| 99ed037131 | |||
| e1923a9fbe |
@@ -1,3 +1,35 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- update to 9.0.0:
|
||||
* Respects `min` argument for `wait_random_exponential`
|
||||
* Bump major version to warn API breakage on statistics
|
||||
attribute
|
||||
- update to 8.5.0:
|
||||
* fix: Restore contents of retry attribute for wrapped
|
||||
functions
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 09:19:30 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Fix build on Leap 15.6
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 29 05:33:50 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,24 +18,25 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-tenacity
|
||||
Version: 8.4.2
|
||||
Version: 9.1.2
|
||||
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}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module tornado}
|
||||
BuildRequires: %{python_module tornado6 >= 6.4.1}
|
||||
BuildRequires: %{python_module typeguard}
|
||||
BuildRequires: %{python_module typing-extensions}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Recommends: python-tornado
|
||||
Recommends: python-tornado6
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -52,7 +53,7 @@ Features
|
||||
- Customize retrying on expected returned result
|
||||
|
||||
%prep
|
||||
%setup -q -n tenacity-%{version}
|
||||
%autosetup -p1 -n tenacity-%{version}
|
||||
|
||||
%build
|
||||
%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:cd80a53a79336edba8489e767f729e4f391c896956b57140b5d7511a64bbd3ef
|
||||
size 46206
|
||||
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