14
0

Compare commits

9 Commits

Author SHA256 Message Date
6780db9630 Accepting request 1317002 from devel:languages:python
- Add patch support-python314.patch:
  * Support Python 3.14 asyncio changes.

OBS-URL: https://build.opensuse.org/request/show/1317002
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tenacity?expand=0&rev=27
2025-11-11 18:20:46 +00:00
33d6815289 - Add patch support-python314.patch:
* Support Python 3.14 asyncio changes.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tenacity?expand=0&rev=62
2025-11-11 05:01:32 +00:00
049a618a88 Accepting request 1316811 from devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1316811
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tenacity?expand=0&rev=26
2025-11-10 18:18:40 +00:00
fc467e8b07 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tenacity?expand=0&rev=60
2025-11-10 08:12:45 +00:00
886d2be659 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
ac10aa6d15 - 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
1c8c6e5f77 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
99ed037131 - 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
e1923a9fbe Changes needed to build package on 15.6
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 86 additions and 9 deletions

View File

@@ -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>

View File

@@ -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
View 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

View File

@@ -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
View File

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