17
0

Compare commits

5 Commits

Author SHA256 Message Date
6a1005be4c Accepting request 1199461 from devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1199461
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tenacity?expand=0&rev=25
2024-09-09 12:44:34 +00:00
acf0a5c082 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tenacity?expand=0&rev=58
2024-09-08 13:41:36 +00:00
06d263068f Accepting request 1198922 from devel:languages:python
- Fix build on Leap 15.6

OBS-URL: https://build.opensuse.org/request/show/1198922
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tenacity?expand=0&rev=24
2024-09-05 13:47:35 +00:00
eb42c874d4 - Fix build on Leap 15.6
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tenacity?expand=0&rev=56
2024-09-05 09:19:57 +00:00
5e0a17fbae Accepting request 1198797 from home:yeey:OpenWebUI
Changes needed to build package on 15.6

OBS-URL: https://build.opensuse.org/request/show/1198797
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tenacity?expand=0&rev=55
2024-09-05 08:58:33 +00:00
5 changed files with 7 additions and 68 deletions

View File

@@ -1,19 +1,3 @@
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-tenacity
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,14 +18,13 @@
%{?sle15_python_module_pythons}
Name: python-tenacity
Version: 9.1.2
Version: 9.0.0
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}
@@ -53,7 +52,7 @@ Features
- Customize retrying on expected returned result
%prep
%autosetup -p1 -n tenacity-%{version}
%setup -q -n tenacity-%{version}
%build
%pyproject_wheel

View File

@@ -1,44 +0,0 @@
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

3
tenacity-9.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:807f37ca97d62aa361264d497b0e31e92b8027044942bfa756160d908320d73b
size 47421

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1169d376c297e7de388d18b4481760d478b0e99a777cad3a9c86e556f4b697cb
size 48036