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 9194E138359 for ; Fri, 18 Sep 2020 09:47:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0A67E07FA; Fri, 18 Sep 2020 09:47:19 +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 C69D1E07FA for ; Fri, 18 Sep 2020 09:47:19 +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 75546340FB5 for ; Fri, 18 Sep 2020 09:47:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 31983353 for ; Fri, 18 Sep 2020 09:47:16 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1600422394.542628e1824726c4a1dad8ef485565ee8b50b752.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/gcp/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/gcp/gcp-0.2.1.ebuild X-VCS-Directories: sys-apps/gcp/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 542628e1824726c4a1dad8ef485565ee8b50b752 X-VCS-Branch: master Date: Fri, 18 Sep 2020 09:47: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: 38b126a6-2568-4d72-a759-5c859b4eff0c X-Archives-Hash: d24a01c0d8f8bfd2b7cf7bdd7a26d22f commit: 542628e1824726c4a1dad8ef485565ee8b50b752 Author: David Seifert gentoo org> AuthorDate: Fri Sep 18 09:46:34 2020 +0000 Commit: David Seifert gentoo org> CommitDate: Fri Sep 18 09:46:34 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=542628e1 sys-apps/gcp: Add python 3.8/3.9 Package-Manager: Portage-3.0.7, Repoman-3.0.1 Signed-off-by: David Seifert gentoo.org> sys-apps/gcp/gcp-0.2.1.ebuild | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/sys-apps/gcp/gcp-0.2.1.ebuild b/sys-apps/gcp/gcp-0.2.1.ebuild index 3425601feba..040b1f0138f 100644 --- a/sys-apps/gcp/gcp-0.2.1.ebuild +++ b/sys-apps/gcp/gcp-0.2.1.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_{6..9} ) -inherit distutils-r1 +inherit distutils-r1 virtualx DESCRIPTION="File copying utility with progress and I/O indicator" HOMEPAGE="https://code.lm7.fr/mcy/gcp" @@ -15,10 +15,20 @@ LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" RDEPEND=" dev-python/dbus-python[${PYTHON_USEDEP}] dev-python/progressbar[${PYTHON_USEDEP}] dev-python/pygobject:3[${PYTHON_USEDEP}]" +distutils_enable_tests unittest + PATCHES=( "${FILESDIR}"/${PN}-0.2.1-gentoo-fhs.patch ) + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + local -x PATH="${S}:${PATH}" + "${EPYTHON}" test/test_gcp.py || die "Tests fail with ${EPYTHON}" +}