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 6391B13835D for ; Sat, 22 May 2021 18:18:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 51840E0876; Sat, 22 May 2021 18:18:24 +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 38422E0876 for ; Sat, 22 May 2021 18:18:24 +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 3EA29340D79 for ; Sat, 22 May 2021 18:18:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9CA1C794 for ; Sat, 22 May 2021 18:18:20 +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: <1621707479.8b5919139290c48a06841330f1ceef6e81f0b058.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/awscli/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/awscli/awscli-1.19.47-r1.ebuild X-VCS-Directories: dev-python/awscli/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 8b5919139290c48a06841330f1ceef6e81f0b058 X-VCS-Branch: master Date: Sat, 22 May 2021 18:18:20 +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: 2d8c0038-cef4-44fc-9f2d-30aef16b7640 X-Archives-Hash: c7c506c7c4f113d1aad148113159a21e commit: 8b5919139290c48a06841330f1ceef6e81f0b058 Author: Michał Górny gentoo org> AuthorDate: Sat May 22 16:56:23 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat May 22 18:17:59 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b591913 dev-python/awscli: Enable tests Signed-off-by: Michał Górny gentoo.org> dev-python/awscli/awscli-1.19.47-r1.ebuild | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/dev-python/awscli/awscli-1.19.47-r1.ebuild b/dev-python/awscli/awscli-1.19.47-r1.ebuild index fa290ac9095..b5ba7214649 100644 --- a/dev-python/awscli/awscli-1.19.47-r1.ebuild +++ b/dev-python/awscli/awscli-1.19.47-r1.ebuild @@ -11,14 +11,11 @@ DESCRIPTION="Universal Command Line Environment for AWS" HOMEPAGE="https://pypi.org/project/awscli/" #SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/aws-cli-${PV}" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="amd64 ~arm64 x86" -IUSE="test" - -# requires network access -RESTRICT="test" RDEPEND=" =dev-python/botocore-1.20*[${PYTHON_USEDEP}] @@ -28,24 +25,23 @@ RDEPEND=" >=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] " -DEPEND="${RDEPEND}" - BDEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] test? ( dev-python/mock[${PYTHON_USEDEP}] - dev-python/nose[${PYTHON_USEDEP}] ) " -S="${WORKDIR}/aws-cli-${PV}" +distutils_enable_tests --install nose PATCHES=( "${FILESDIR}"/awscli-1.19.47-py39.patch ) python_test() { - nosetests -vv || die + distutils_install_for_testing + # integration tests require AWS credentials and Internet access + nosetests -v tests/{functional,unit} || + die "Tests failed for ${EPYTHON}" } python_install_all() {