mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
dev-python/aiohappyeyeballs: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST aiohappyeyeballs-2.6.1.gh.tar.gz 74617 BLAKE2B e3cb3d7366267dca4a7c82615c3482db175326d4fbaa2ad1ca249ef72e9b515129e988fa82f5ae1c4d2585022e17ec9a25b936252cd67a7ce8d3ff571071ae44 SHA512 e3d3ef2ed1e5c81263555b11a8842941043b3113a91f11b08d0e882f2f1c47f015310c75a2c37e6ac6207399b659d5431bb750c8f4234f233f1da942d23bc8b1
|
||||
DIST aiohappyeyeballs-2.6.2.gh.tar.gz 78386 BLAKE2B fc4829c2344551711421e4fa373049411df0ab01c3d82b805d2ed4e0b95f857ce223391e510221f545e3c4175b851afc4c44e6ffb9cc90411072e4bdd7d7073e SHA512 5cd61bbad58bed019a03a0bdbc5c64511443150e6e0853c2f6231b64020efba52c4719a969ee417f1699912167f2b55a31ab1f3250da01ccb145695021dff71f
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Happy Eyeballs for pre-resolved hosts"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/aiohappyeyeballs/
|
||||
https://github.com/aio-libs/aiohappyeyeballs/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/aio-libs/aiohappyeyeballs/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
|
||||
|
||||
BDEPEND="
|
||||
>=dev-python/poetry-core-2.0.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=( pytest-asyncio )
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
# https://github.com/aio-libs/aiohappyeyeballs/pull/181
|
||||
"${FILESDIR}/${P}-pytest-asyncio-1.patch"
|
||||
)
|
||||
|
||||
python_test() {
|
||||
epytest -o addopts=
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
From 5f94f4bdc4f7b4b533d6517308a3d33a1a64e3cc Mon Sep 17 00:00:00 2001
|
||||
From: "J. Nick Koston" <nick@home-assistant.io>
|
||||
Date: Sun, 24 Aug 2025 01:18:33 -0500
|
||||
Subject: [PATCH] chore: updates for pytest-asyncio
|
||||
|
||||
---
|
||||
tests/conftest.py | 9 ++++++---
|
||||
1 file changed, 6 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/tests/conftest.py b/tests/conftest.py
|
||||
index 6db53d2..9f7a4cb 100644
|
||||
--- a/tests/conftest.py
|
||||
+++ b/tests/conftest.py
|
||||
@@ -41,10 +41,13 @@ def long_repr_strings() -> Generator[None, None, None]:
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
-def verify_no_lingering_tasks(
|
||||
- event_loop: asyncio.AbstractEventLoop,
|
||||
-) -> Generator[None, None, None]:
|
||||
+def verify_no_lingering_tasks() -> Generator[None, None, None]:
|
||||
"""Verify that all tasks are cleaned up."""
|
||||
+ try:
|
||||
+ event_loop = asyncio.get_event_loop()
|
||||
+ except RuntimeError:
|
||||
+ yield
|
||||
+ return
|
||||
tasks_before = asyncio.all_tasks(event_loop)
|
||||
yield
|
||||
|
||||
Reference in New Issue
Block a user