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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 73F731382C5 for ; Tue, 15 Jun 2021 08:03:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9E671E0798; Tue, 15 Jun 2021 08:03:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 86AC3E0798 for ; Tue, 15 Jun 2021 08:03:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2C24F33BF0F for ; Tue, 15 Jun 2021 08:03:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3DC28720 for ; Tue, 15 Jun 2021 08:03:38 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1623744215.334a8bb141ba3c6ddd2735589193671e517cc12b.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/anyio/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/anyio/anyio-3.1.0.ebuild X-VCS-Directories: dev-python/anyio/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 334a8bb141ba3c6ddd2735589193671e517cc12b X-VCS-Branch: master Date: Tue, 15 Jun 2021 08:03:38 +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: e8e659ca-0e12-4d82-9255-adefb3d37dd0 X-Archives-Hash: cad4f6733816113fa4af5e7b4daa109d commit: 334a8bb141ba3c6ddd2735589193671e517cc12b Author: Andrew Ammerlaan gentoo org> AuthorDate: Tue Jun 15 08:02:23 2021 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Tue Jun 15 08:03:35 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=334a8bb1 dev-python/anyio: unrestrict test phase skip tests for trio since this is not (yet) packaged Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan gentoo.org> dev-python/anyio/anyio-3.1.0.ebuild | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/dev-python/anyio/anyio-3.1.0.ebuild b/dev-python/anyio/anyio-3.1.0.ebuild index 53b2893ab60..d4d7d1e4690 100644 --- a/dev-python/anyio/anyio-3.1.0.ebuild +++ b/dev-python/anyio/anyio-3.1.0.ebuild @@ -18,10 +18,6 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -# This will pull in dev-python/trio and a whole bunch of other new things -# And trio does not yet have a release compatible with python3.9. -RESTRICT="test" - RDEPEND=" >=dev-python/idna-2.8[${PYTHON_USEDEP}] >=dev-python/sniffio-1.1[${PYTHON_USEDEP}] @@ -40,3 +36,19 @@ distutils_enable_tests --install pytest distutils_enable_sphinx docs \ dev-python/sphinx_rtd_theme \ dev-python/sphinx-autodoc-typehints + +python_prepare_all() { + # This will pull in dev-python/trio and a whole bunch of other new things + # And trio does not yet have a release compatible with python3.9. + rm tests/test_taskgroups.py || die + sed -i -e '/trio/d' tests/conftest.py || die + sed -i -e 's/test_cancel_scope_in_asyncgen_fixture/_&/' \ + -e 's/test_autouse_async_fixture/_&/' \ + -e 's/test_plugin/_&/' \ + tests/test_pytest_plugin.py || die + + # skip network test + sed -i -e 's/test_getaddrinfo/_&/' tests/test_sockets.py || die + + distutils-r1_python_prepare_all +}