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/six/
Date: Sun, 20 Sep 2020 14:56:48 +0000 (UTC)	[thread overview]
Message-ID: <1600613804.d9d71cc374adb1a2954bb5efddca2c096e746353.mgorny@gentoo> (raw)

commit:     d9d71cc374adb1a2954bb5efddca2c096e746353
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 20 14:41:22 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Sep 20 14:56:44 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9d71cc3

dev-python/six: Skip tests on py2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/six/six-1.15.0.ebuild | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/dev-python/six/six-1.15.0.ebuild b/dev-python/six/six-1.15.0.ebuild
index 17b191fa1df..2ad1ac731ca 100644
--- a/dev-python/six/six-1.15.0.ebuild
+++ b/dev-python/six/six-1.15.0.ebuild
@@ -14,7 +14,20 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="doc"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+	test? (
+		$(python_gen_cond_dep 'dev-python/pytest[${PYTHON_USEDEP}]' -3)
+	)"
 
 distutils_enable_sphinx documentation --no-autodoc
-distutils_enable_tests pytest
+
+python_test() {
+	if ! python_is_python3; then
+		einfo "Tests are skipped on Python 2 to unblock deps"
+		return
+	fi
+	pytest -vv || die "Tests failed with ${EPYTHON}"
+}


             reply	other threads:[~2020-09-20 14:56 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-20 14:56 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-14 12:42 [gentoo-commits] repo/gentoo:master commit in: dev-python/six/ Michał Górny
2024-05-08 18:31 Michał Górny
2023-05-23 15:42 Michał Górny
2022-06-10  4:18 Michał Górny
2022-06-10  3:09 Sam James
2022-05-09 20:38 Michał Górny
2022-05-09 15:01 Michał Górny
2021-06-05 21:20 Michał Górny
2021-06-05 20:35 Sam James
2021-05-06  8:21 Michał Górny
2021-05-05 17:05 Michał Górny
2021-05-05 17:05 Michał Górny
2021-01-06 22:30 Fabian Groffen
2020-09-26 15:50 Michał Górny
2020-09-26 15:50 Michał Górny
2020-09-26 15:50 Michał Górny
2020-07-16 18:01 Sam James
2020-07-16 18:01 Sam James
2020-07-09  8:41 Agostino Sarubbo
2020-07-09  8:16 Agostino Sarubbo
2020-05-25 16:16 Michał Górny
2020-05-22  4:46 Michał Górny
2020-05-14 11:57 Michał Górny
2020-03-29  8:19 Michał Górny
2020-03-29  8:19 Michał Górny
2020-03-25 15:27 Agostino Sarubbo
2020-03-25 14:52 Agostino Sarubbo
2020-03-25 13:27 Agostino Sarubbo
2020-03-25 13:12 Agostino Sarubbo
2020-03-25 12:36 Agostino Sarubbo
2020-03-25 12:23 Agostino Sarubbo
2020-01-16  4:39 Michał Górny
2019-11-16 11:02 Michał Górny
2019-11-06  7:26 Michał Górny
2018-12-10 13:19 Michał Górny
2018-01-11 19:43 Mike Frysinger
2017-10-01 11:39 Tim Harder
2017-10-01 11:39 Tim Harder
2017-03-16  8:16 Michael Weber
2017-03-09 15:54 Michael Haubenwallner
2017-01-31  4:44 Mike Gilbert
2017-01-29 17:28 Fabian Groffen
2016-10-03 15:33 Mike Gilbert
2016-09-24 22:39 Mike Gilbert
2016-09-23 20:15 Tim Harder
2016-06-09 16:18 Mike Gilbert
2016-03-11  2:33 Mike Gilbert
2016-01-27 14:11 Mike Gilbert
2016-01-27  4:17 Mike Gilbert
2016-01-26 20:10 Mike Gilbert
2016-01-26 19:09 Justin Lecher
2015-12-28 16:28 Mike Gilbert
2015-12-08 16:33 Mike Gilbert
2015-12-07 18:15 Mike Gilbert
2015-12-07 16:56 Mike Gilbert
2015-12-07 15:48 Mike Gilbert
2015-11-30  7:24 Justin Lecher
2015-11-22  8:38 Markus Meier
2015-11-22  5:38 Jeroen Roovers
2015-11-20 11:29 Justin Lecher
2015-11-19 10:25 Agostino Sarubbo
2015-11-16 15:01 Agostino Sarubbo
2015-11-05 11:52 Agostino Sarubbo
2015-11-04 16:09 Agostino Sarubbo
2015-11-04 15:50 Agostino Sarubbo
2015-11-02 13:12 Agostino Sarubbo
2015-11-02 13:09 Agostino Sarubbo
2015-11-02 11:50 Justin Lecher
2015-10-11 11:25 Justin Lecher
2015-10-11  8:58 Dirkjan Ochtman
2015-10-11  7:05 Justin Lecher

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=1600613804.d9d71cc374adb1a2954bb5efddca2c096e746353.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