From: "Ryan Fox" <flewkey@2a03.party>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pyclip/
Date: Thu, 26 May 2022 20:43:18 +0000 (UTC) [thread overview]
Message-ID: <1653585880.a5e3b8259c87d2176dbaf2c65a6403a3fc2beabc.flewkey@gentoo> (raw)
commit: a5e3b8259c87d2176dbaf2c65a6403a3fc2beabc
Author: Ryan Fox <flewkey <AT> 2a03 <DOT> party>
AuthorDate: Thu May 26 17:24:40 2022 +0000
Commit: Ryan Fox <flewkey <AT> 2a03 <DOT> 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 <flewkey <AT> 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
+}
next reply other threads:[~2022-05-26 20:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-26 20:43 Ryan Fox [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-10 15:48 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pyclip/ Denis Reva
2024-03-21 22:11 Esteve Varela Colominas
2024-02-19 21:58 Lucio Sauer
2024-02-19 21:58 Lucio Sauer
2024-02-19 21:58 Lucio Sauer
2024-02-19 21:33 Julien Roy
2022-12-19 13:55 Denis Reva
2022-12-19 13:48 Denis Reva
2022-05-26 21:09 Ryan Fox
2022-05-26 20:43 Ryan Fox
2022-05-19 20:58 Tony Olagbaiye
2022-05-18 19:35 Tony Olagbaiye
2022-05-18 16:00 Tony Olagbaiye
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=1653585880.a5e3b8259c87d2176dbaf2c65a6403a3fc2beabc.flewkey@gentoo \
--to=flewkey@2a03.party \
--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