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 9CAE6138334 for ; Tue, 30 Jul 2019 14:39:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A3426E07D7; Tue, 30 Jul 2019 14:39:37 +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 88951E07D7 for ; Tue, 30 Jul 2019 14:39:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 70F80349000 for ; Tue, 30 Jul 2019 14:39:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0DBF0731 for ; Tue, 30 Jul 2019 14:39:35 +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: <1564497572.300155f33382fea506d5cbfd1bf6518b827ad3ff.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/aiohttp-socks/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/aiohttp-socks/aiohttp-socks-0.2.2.ebuild X-VCS-Directories: dev-python/aiohttp-socks/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 300155f33382fea506d5cbfd1bf6518b827ad3ff X-VCS-Branch: master Date: Tue, 30 Jul 2019 14:39:35 +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: 3bcccf91-4efe-45f2-b84c-184cb0982bb4 X-Archives-Hash: 03bef69c177c95e8fa592e65b0c2edbc commit: 300155f33382fea506d5cbfd1bf6518b827ad3ff Author: Michał Górny gentoo org> AuthorDate: Tue Jul 30 14:28:19 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Jul 30 14:39:32 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=300155f3 dev-python/aiohttp-socks: Add testing code, correct deps, EAPI 7 Signed-off-by: Michał Górny gentoo.org> .../aiohttp-socks/aiohttp-socks-0.2.2.ebuild | 26 +++++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/dev-python/aiohttp-socks/aiohttp-socks-0.2.2.ebuild b/dev-python/aiohttp-socks/aiohttp-socks-0.2.2.ebuild index 52758134c3e..e38b826b03d 100644 --- a/dev-python/aiohttp-socks/aiohttp-socks-0.2.2.ebuild +++ b/dev-python/aiohttp-socks/aiohttp-socks-0.2.2.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 PYTHON_COMPAT=( python3_{6,7} ) @@ -14,10 +14,24 @@ SRC_URI="https://github.com/romis2012/aiohttp-socks/archive/${PV}.tar.gz -> ${P} LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="test" +# Tests require Internet access +RESTRICT="test" -RDEPEND=" - >=dev-python/aiohttp-2.3.2[${PYTHON_USEDEP}] -" +RDEPEND=">=dev-python/aiohttp-2.3.2[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + net-proxy/3proxy + )" -DOCS=( README.md ) +python_configure_all() { + rm tests/3proxy/bin/*/* || die + ln -s "$(type -P 3proxy)" tests/3proxy/bin/linux/ || die +} + +python_test() { + pytest -vv || die "Tests fail with ${EPYTHON}" +}