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 BE8A1138239 for ; Sun, 29 Mar 2020 13:21:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7CA3CE0ABB; Sun, 29 Mar 2020 13:21:21 +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 5E733E0ABB for ; Sun, 29 Mar 2020 13:21:21 +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 89EA034FB18 for ; Sun, 29 Mar 2020 13:21:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2F8771BB for ; Sun, 29 Mar 2020 13:21:16 +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: <1585484729.5809afe66f9d0a59bcb35f6f894e3874b62bf78c.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild X-VCS-Directories: dev-python/trio-asyncio/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 5809afe66f9d0a59bcb35f6f894e3874b62bf78c X-VCS-Branch: dev Date: Sun, 29 Mar 2020 13:21:16 +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: 09eceb3d-dbbf-423c-b5f7-cd752d2cf08a X-Archives-Hash: 423aa8d03aa8d4532e3a2bcc79ada919 Message-ID: <20200329132116.LgrKkohwVDcVPARipOix4DMsHo5qLXpJPrdLVIxD2mk@z> commit: 5809afe66f9d0a59bcb35f6f894e3874b62bf78c Author: Andrew Ammerlaan riseup net> AuthorDate: Sun Mar 29 12:25:29 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Sun Mar 29 12:25:29 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5809afe6 dev-python/trio-asyncio: do not depend on pytest-runner it is deprecated also tired to fix tests should probably depend on pytest-marks Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan riseup.net> dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild index eac1549..ccf267c 100644 --- a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild +++ b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_6 ) +PYTHON_COMPAT=( python3_{6,7} ) inherit distutils-r1 @@ -18,24 +18,31 @@ LICENSE=" || ( Apache-2.0 MIT )" SLOT="0" KEYWORDS="~amd64 ~x86" +# ImportError: cannot import name 'MarkInfo' +# might be an issue in pytest-marks +RESTRICT="test" + RDEPEND=" >=dev-python/async_generator-1.6[${PYTHON_USEDEP}] dev-python/outcome[${PYTHON_USEDEP}] >=dev-python/trio-0.12.0[${PYTHON_USEDEP}] $(python_gen_cond_dep '>=dev-python/contextvars-2.1[${PYTHON_USEDEP}]' python3_6) " -DEPEND=" - ${RDEPEND} - dev-python/pytest-runner[${PYTHON_USEDEP}] -" + +DEPEND="test? ( + dev-python/pytest-marks[${PYTHON_USEDEP}] +)" distutils_enable_tests pytest distutils_enable_sphinx docs/source -src_prepare() { +python_prepare_all() { + # do not depend on deprecated dep + sed -i -e '/pytest-runner/d' setup.py || die + #remove tests from installed packages #TODO: remove hardcoded sed -i 's|packages=find_packages()|packages=["trio_asyncio"]|' setup.py || die - default + distutils-r1_python_prepare_all }