public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/awscli/
Date: Sat, 22 May 2021 18:18:20 +0000 (UTC)	[thread overview]
Message-ID: <1621707479.8b5919139290c48a06841330f1ceef6e81f0b058.mgorny@gentoo> (raw)

commit:     8b5919139290c48a06841330f1ceef6e81f0b058
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat May 22 16:56:23 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> 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 <mgorny <AT> 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() {


             reply	other threads:[~2021-05-22 18:18 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-22 18:18 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-05-27  6:40 [gentoo-commits] repo/gentoo:master commit in: dev-python/awscli/ Michał Górny
2021-05-26  8:19 Michał Górny
2021-05-25  5:13 Michał Górny
2021-05-22 18:18 Michał Górny
2021-05-22 18:18 Michał Górny
2021-05-19  7:11 Michał Górny
2021-05-19  0:19 Sam James
2021-04-08 21:02 Piotr Karbowski
2021-03-30 11:04 Michał Górny
2021-03-26  7:45 Agostino Sarubbo
2021-02-07 18:03 Piotr Karbowski
2021-01-30  2:44 Robin H. Johnson
2020-11-26  8:40 Michał Górny
2020-11-26  8:24 Sam James
2020-11-25  9:23 Michał Górny
2020-10-31 22:04 Piotr Karbowski
2020-10-21  7:33 Piotr Karbowski
2020-09-19 15:57 Piotr Karbowski
2020-08-11 21:09 Piotr Karbowski
2020-06-01 19:28 Thomas Deutschmann
2020-05-31 19:37 Piotr Karbowski
2020-05-31 19:37 Piotr Karbowski
2020-05-31 19:37 Piotr Karbowski
2020-05-19  9:49 Thomas Deutschmann
2020-05-11 18:34 Thomas Deutschmann
2020-05-09 16:11 Thomas Deutschmann
2020-04-29 20:08 Mart Raudsepp
2020-04-29  8:54 Mart Raudsepp
2020-04-28 22:08 Thomas Deutschmann
2020-03-31 11:53 Thomas Deutschmann
2020-03-26 11:48 Michał Górny
2020-03-09 15:01 Thomas Deutschmann
2020-02-24 17:28 Thomas Deutschmann
2020-02-14 15:15 Thomas Deutschmann
2020-01-22 23:40 Thomas Deutschmann
2020-01-22 22:00 Thomas Deutschmann
2020-01-22 22:00 Thomas Deutschmann
2020-01-18 18:48 Michał Górny
2020-01-05 23:20 Thomas Deutschmann
2019-12-22 22:16 Thomas Deutschmann
2019-12-11 15:05 Thomas Deutschmann
2019-11-29 19:42 Thomas Deutschmann
2019-11-17 20:29 Thomas Deutschmann
2019-11-10 16:35 Thomas Deutschmann
2019-10-17 16:52 Thomas Deutschmann
2019-09-06 16:39 Thomas Deutschmann
2019-09-06 15:09 Thomas Deutschmann
2019-08-16 20:42 Thomas Deutschmann
2019-08-09 22:01 Thomas Deutschmann
2019-08-09 21:47 Thomas Deutschmann
2019-06-29 14:47 Thomas Deutschmann
2019-04-30 10:26 Thomas Deutschmann
2019-03-15 23:17 Thomas Deutschmann
2019-03-15 23:17 Thomas Deutschmann
2019-03-15 17:06 Patrick Lauer
2019-02-14 18:45 Thomas Deutschmann
2019-01-26  1:03 Zac Medico
2019-01-25 23:00 Zac Medico
2019-01-18  1:49 Thomas Deutschmann
2018-12-22 19:22 Thomas Deutschmann
2018-12-10 16:45 Thomas Deutschmann
2018-11-27 20:14 Thomas Deutschmann
2018-11-27 20:14 Thomas Deutschmann
2018-11-21 20:05 Thomas Deutschmann
2018-06-27 20:32 Pacho Ramos
2018-04-30  6:06 Patrick Lauer
2018-03-05  7:10 Patrick Lauer
2017-12-28  7:25 Patrick Lauer
2017-12-24 15:23 Patrick Lauer
2017-09-24 19:45 Patrick Lauer
2017-09-16 18:27 Patrick Lauer
2017-08-22 21:41 Michał Górny
2017-05-02  5:50 Patrick Lauer
2017-04-25 18:05 Patrick Lauer
2016-10-01 20:15 Patrick Lauer
2016-08-30  9:36 Patrick Lauer
2016-08-09 10:48 Patrick Lauer
2016-07-31 18:13 Patrick Lauer
2016-07-17 15:44 Patrick Lauer
2016-06-28 12:29 Patrick Lauer
2016-06-20  9:43 Patrick Lauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1621707479.8b5919139290c48a06841330f1ceef6e81f0b058.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox