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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 04D52158090 for ; Thu, 26 May 2022 20:43:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 275E1E07EE; Thu, 26 May 2022 20:43:21 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0A3ADE07EE for ; Thu, 26 May 2022 20:43:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0756334199A for ; Thu, 26 May 2022 20:43:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0D21334E for ; Thu, 26 May 2022 20:43:18 +0000 (UTC) From: "Ryan Fox" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ryan Fox" Message-ID: <1653585880.a5e3b8259c87d2176dbaf2c65a6403a3fc2beabc.flewkey@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pyclip/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pyclip/pyclip-0.5.4.ebuild dev-python/pyclip/pyclip-0.6.0.ebuild dev-python/pyclip/pyclip-9999.ebuild X-VCS-Directories: dev-python/pyclip/ X-VCS-Committer: flewkey X-VCS-Committer-Name: Ryan Fox X-VCS-Revision: a5e3b8259c87d2176dbaf2c65a6403a3fc2beabc X-VCS-Branch: dev Date: Thu, 26 May 2022 20:43:18 +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: a918c179-bcb1-48c0-9489-89d44f5137de X-Archives-Hash: f6cb756e9d849b11f9c5f1e55c7d583a commit: a5e3b8259c87d2176dbaf2c65a6403a3fc2beabc Author: Ryan Fox 2a03 party> AuthorDate: Thu May 26 17:24:40 2022 +0000 Commit: Ryan Fox 2a03 party> CommitDate: Thu May 26 17:24:40 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a5e3b825 dev-python/pyclip: Fix tests Closes: https://bugs.gentoo.org/847169 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Ryan Fox 2a03.party> dev-python/pyclip/pyclip-0.5.4.ebuild | 20 +++++++++++++++----- dev-python/pyclip/pyclip-0.6.0.ebuild | 12 ++++++++++-- dev-python/pyclip/pyclip-9999.ebuild | 12 ++++++++++-- 3 files changed, 35 insertions(+), 9 deletions(-) diff --git a/dev-python/pyclip/pyclip-0.5.4.ebuild b/dev-python/pyclip/pyclip-0.5.4.ebuild index ee9f89570..4bcb1c89a 100644 --- a/dev-python/pyclip/pyclip-0.5.4.ebuild +++ b/dev-python/pyclip/pyclip-0.5.4.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -PYTHON_COMPAT=( python3_{7..11} ) +PYTHON_COMPAT=( python3_{8..11} ) DISTUTILS_USE_SETUPTOOLS=bdepend inherit distutils-r1 @@ -20,9 +20,19 @@ DESCRIPTION="Python clipboard module" HOMEPAGE="https://pypi.org/project/pyclip/" LICENSE="Apache-2.0" SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" -DEPEND="" -RDEPEND="x11-misc/xclip" +DEPEND=" + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) +" +RDEPEND=" + x11-misc/xclip +" BDEPEND="" -distutils_enable_tests pytest +python_test() { + for unittest in "${S}/tests/"*".py"; do + "${EPYTHON}" "${unittest}" || die "Tests failed" + done +} diff --git a/dev-python/pyclip/pyclip-0.6.0.ebuild b/dev-python/pyclip/pyclip-0.6.0.ebuild index 997c812c2..409487c50 100644 --- a/dev-python/pyclip/pyclip-0.6.0.ebuild +++ b/dev-python/pyclip/pyclip-0.6.0.ebuild @@ -20,12 +20,20 @@ DESCRIPTION="Python clipboard module" HOMEPAGE="https://pypi.org/project/pyclip/" LICENSE="Apache-2.0" SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" -DEPEND="" +DEPEND=" + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) +" RDEPEND=" gui-apps/wl-clipboard x11-misc/xclip " BDEPEND="" -distutils_enable_tests pytest +python_test() { + for unittest in "${S}/tests/"*".py"; do + "${EPYTHON}" "${unittest}" || die "Tests failed" + done +} diff --git a/dev-python/pyclip/pyclip-9999.ebuild b/dev-python/pyclip/pyclip-9999.ebuild index 997c812c2..409487c50 100644 --- a/dev-python/pyclip/pyclip-9999.ebuild +++ b/dev-python/pyclip/pyclip-9999.ebuild @@ -20,12 +20,20 @@ DESCRIPTION="Python clipboard module" HOMEPAGE="https://pypi.org/project/pyclip/" LICENSE="Apache-2.0" SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" -DEPEND="" +DEPEND=" + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) +" RDEPEND=" gui-apps/wl-clipboard x11-misc/xclip " BDEPEND="" -distutils_enable_tests pytest +python_test() { + for unittest in "${S}/tests/"*".py"; do + "${EPYTHON}" "${unittest}" || die "Tests failed" + done +}