From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6B6271581D3 for ; Tue, 14 May 2024 17:13:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 78987E29B5; Tue, 14 May 2024 17:13:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 52870E29B5 for ; Tue, 14 May 2024 17:13:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 45CCD340806 for ; Tue, 14 May 2024 17:13:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7E3041A42 for ; Tue, 14 May 2024 17:13:44 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1715706815.da4ea07e54cb28bfb2d1fd96e4e656abbf0f81db.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/httpcore/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/httpcore/httpcore-1.0.5.ebuild X-VCS-Directories: dev-python/httpcore/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: da4ea07e54cb28bfb2d1fd96e4e656abbf0f81db X-VCS-Branch: master Date: Tue, 14 May 2024 17:13:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2361666e-8c2a-4d86-a0e6-e1ffa274ccd6 X-Archives-Hash: 762a5d658dc281b7e0334a83a10bcd10 commit: da4ea07e54cb28bfb2d1fd96e4e656abbf0f81db Author: Michał Górny gentoo org> AuthorDate: Tue May 14 17:01:52 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue May 14 17:13:35 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da4ea07e dev-python/httpcore: Enable py3.13 Signed-off-by: Michał Górny gentoo.org> dev-python/httpcore/httpcore-1.0.5.ebuild | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/dev-python/httpcore/httpcore-1.0.5.ebuild b/dev-python/httpcore/httpcore-1.0.5.ebuild index 29e200461117..e1b37849a4d5 100644 --- a/dev-python/httpcore/httpcore-1.0.5.ebuild +++ b/dev-python/httpcore/httpcore-1.0.5.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=hatchling -PYTHON_COMPAT=( pypy3 python3_{10..12} ) +PYTHON_COMPAT=( pypy3 python3_{10..13} ) inherit distutils-r1 optfeature @@ -35,15 +35,35 @@ BDEPEND=" test? ( dev-python/pytest-asyncio[${PYTHON_USEDEP}] dev-python/pytest-httpbin[${PYTHON_USEDEP}] - dev-python/pytest-trio[${PYTHON_USEDEP}] dev-python/socksio[${PYTHON_USEDEP}] - dev-python/trio[${PYTHON_USEDEP}] dev-python/trustme[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/pytest-trio[${PYTHON_USEDEP}] + dev-python/trio[${PYTHON_USEDEP}] + ' 3.{10..12}) ) " distutils_enable_tests pytest +python_test() { + local opts=() + local EPYTEST_IGNORE=() + + if ! has_version "dev-python/trio[${PYTHON_USEDEP}]"; then + opts+=( -k "not trio" ) + EPYTEST_IGNORE+=( + tests/_async/test_connection_pool.py + ) + fi + + if ! has_version "dev-python/pytest-trio[${PYTHON_USEDEP}]"; then + opts+=( -m "not trio" -o addopts= ) + fi + + epytest "${opts[@]}" +} + pkg_postinst() { optfeature "SOCKS support" dev-python/socksio }