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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3C168158020 for ; Wed, 19 Oct 2022 12:38:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F018E0845; Wed, 19 Oct 2022 12:38:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2422EE0845 for ; Wed, 19 Oct 2022 12:38:36 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DEAB6340EFC for ; Wed, 19 Oct 2022 12:38:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 84D14617 for ; Wed, 19 Oct 2022 12:38:34 +0000 (UTC) From: "Anna Vyalkova" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" Message-ID: <1666183092.f3134539a4055bf116464c0fe16f95f405b34cd4.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/asyncpg/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/asyncpg/asyncpg-0.26.0.ebuild X-VCS-Directories: dev-python/asyncpg/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: f3134539a4055bf116464c0fe16f95f405b34cd4 X-VCS-Branch: dev Date: Wed, 19 Oct 2022 12:38:34 +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: ae55376d-c339-41f2-84b9-696364005118 X-Archives-Hash: 6382c84e5e4f5e343963b4d84a148508 commit: f3134539a4055bf116464c0fe16f95f405b34cd4 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Wed Oct 19 12:31:45 2022 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Wed Oct 19 12:38:12 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f3134539 dev-python/asyncpg: fix tests Closes: https://bugs.gentoo.org/860972 Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> dev-python/asyncpg/asyncpg-0.26.0.ebuild | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/dev-python/asyncpg/asyncpg-0.26.0.ebuild b/dev-python/asyncpg/asyncpg-0.26.0.ebuild index b2bba5cf8..985b39494 100644 --- a/dev-python/asyncpg/asyncpg-0.26.0.ebuild +++ b/dev-python/asyncpg/asyncpg-0.26.0.ebuild @@ -15,17 +15,20 @@ LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" -DEPEND="dev-python/cython[${PYTHON_USEDEP}]" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-db/postgresql + dev-python/flake8[${PYTHON_USEDEP}] + dev-python/uvloop[${PYTHON_USEDEP}] + ) +" -distutils_enable_tests pytest +distutils_enable_tests unittest distutils_enable_sphinx docs dev-python/sphinxcontrib-asyncio dev-python/sphinx_rtd_theme -python_compile() { - if use test; then - esetup.py build_ext --force --inplace - rm -r build || die - fi - - distutils-r1_python_compile +python_test() { + cd "${T}" || die + USE_UVLOOP=1 eunittest "${S}"/tests }