dev-python/tenacity: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-04-07 14:34:03 +02:00
parent 03535330cb
commit d97843aa5f
4 changed files with 0 additions and 152 deletions

View File

@@ -1,5 +1,2 @@
DIST tenacity-9.1.2.tar.gz 48036 BLAKE2B 5e91e0380d7cd5f3b94148f3817c3a296ab12a8ce4996ec9a917e5abb42575496c83dcbfa0034d1cff074add0a963c4b58ef9d5976fd412edf86196cc9a2e7a4 SHA512 35dff9ab9f1c2b9ab0d807bc790b92a3a3d4e133aecb9921a700af0e6dd9bf805f551a2409dc4341088a44b0693ec0b0fa6b703305b312a988da5e3dc1f61d11
DIST tenacity-9.1.3.tar.gz 49002 BLAKE2B 0ae81a8470bdccecc85d78de67c9011a65914f136daef78dfd912d316043940cb96caea740c2ee78d4da23996c2523ce39d0fa545863cd70024679e4f85f87ea SHA512 aa04c007aca4e0d505b48e41b1d7b568c6da4f4d0f3db498033e6f46903d6c03c36a1762e722bd6895bd4f095b240946ee756cd15d21782746fd67766d6aafd9
DIST tenacity-9.1.3.tar.gz.provenance 9222 BLAKE2B 128db9842ac12017d8b1bdcd3f6be72385eaf83a2d411f81333f185abd8fb77b7fa05bcadaba0be3e6153d641768e71fc716f449e2462d4bc3da8b610f0ea50c SHA512 3d712842da562221bce51af3814cda45ad1f9d76c1134a04d47580d45998e37ba4f4591e120823c99966db7c9a8c1ffc9dedb44cd545795ce06ad07c67ee104c
DIST tenacity-9.1.4.tar.gz 49413 BLAKE2B 730bcf23e2b96e7de78c128e9f8efcf84f2fde4a2c08e065f41a2e43523047aacb203f2aa910dd5f082908699747aecc20c823cfb563f4bc81bdbea897648a25 SHA512 2d99c144f1bdc7f69a044f400debbd30d8fa66416b9cab268d3f506e86ca5c20d38cf10f6b8c8a9f63814295d24dc93d0109c1eaacacf1734347c983f0b7b327
DIST tenacity-9.1.4.tar.gz.provenance 9457 BLAKE2B 8551640e69d297de6aeaa5ee10f2b006df717252e6733bc9094722bd34cb0ac886ce0325d0b82ca4b9088f371a61d373354e89e6aa521ff208df2e1e59be47e2 SHA512 ecb6e0f01086d13c154558e582685c486b804dd21e5612093299c60a8e8ed5da55380f7f72af0af106cf17a0bf3f0c8c02c75e3206cfe946f9c3554bb708a3c8

View File

@@ -1,70 +0,0 @@
https://github.com/jd/tenacity/commit/eed7d785e667df145c0e3eeddff59af64e4e860d
From eed7d785e667df145c0e3eeddff59af64e4e860d Mon Sep 17 00:00:00 2001
From: Sandro Bonazzola <sandro.bonazzola@gmail.com>
Date: Fri, 27 Jun 2025 10:18:58 +0200
Subject: [PATCH] Support Python 3.14 (#528)
Signed-off-by: Sandro Bonazzola <sandro.bonazzola@gmail.com>
---
tenacity/__init__.py | 12 ++++--------
tests/test_asyncio.py | 3 +--
tests/test_issue_478.py | 3 +--
9 files changed, 24 insertions(+), 23 deletions(-)
diff --git a/tenacity/__init__.py b/tenacity/__init__.py
index e274c215..e93793cc 100644
--- a/tenacity/__init__.py
+++ b/tenacity/__init__.py
@@ -307,19 +307,15 @@ def statistics(self) -> t.Dict[str, t.Any]:
future we may provide a way to aggregate the various
statistics from each thread).
"""
- try:
- return self._local.statistics # type: ignore[no-any-return]
- except AttributeError:
+ if not hasattr(self._local, "statistics"):
self._local.statistics = t.cast(t.Dict[str, t.Any], {})
- return self._local.statistics
+ return self._local.statistics # type: ignore[no-any-return]
@property
def iter_state(self) -> IterState:
- try:
- return self._local.iter_state # type: ignore[no-any-return]
- except AttributeError:
+ if not hasattr(self._local, "iter_state"):
self._local.iter_state = IterState()
- return self._local.iter_state
+ return self._local.iter_state # type: ignore[no-any-return]
def wraps(self, f: WrappedFn) -> WrappedFn:
"""Wrap a function for retrying.
diff --git a/tests/test_asyncio.py b/tests/test_asyncio.py
index 0b74476b..f6793f0b 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 7489ad7c..83182ac4 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,43 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
inherit distutils-r1 pypi
DESCRIPTION="General-purpose retrying library"
HOMEPAGE="
https://github.com/jd/tenacity/
https://pypi.org/project/tenacity/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ppc ppc64 ~riscv ~sparc x86"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
>=dev-python/tornado-6.4-r1[${PYTHON_USEDEP}]
dev-python/typeguard[${PYTHON_USEDEP}]
)
"
PATCHES=(
"${FILESDIR}"/${PN}-9.1.2-py3.14.patch
)
distutils_enable_tests pytest
python_test() {
local EPYTEST_DESELECT=(
# fragile to timing
tests/test_asyncio.py::TestContextManager::test_sleeps
)
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}

View File

@@ -1,36 +0,0 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_VERIFY_REPO=https://github.com/jd/tenacity
PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
inherit distutils-r1 pypi
DESCRIPTION="General-purpose retrying library"
HOMEPAGE="
https://github.com/jd/tenacity/
https://pypi.org/project/tenacity/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~ppc ~ppc64 ~riscv ~sparc ~x86"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
>=dev-python/tornado-6.4-r1[${PYTHON_USEDEP}]
dev-python/typeguard[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# fragile to timing
tests/test_asyncio.py::TestContextManager::test_sleeps
)