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/more-itertools/
Date: Sat, 16 Nov 2019 11:02:00 +0000 (UTC)	[thread overview]
Message-ID: <1573902075.a3b64e48f23f18b88db54a99e2084470b9703fb1.mgorny@gentoo> (raw)

commit:     a3b64e48f23f18b88db54a99e2084470b9703fb1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 16 09:53:18 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 16 11:01:15 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3b64e48

dev-python/more-itertools: Enable py3.8, modernize

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

 .../more-itertools/more-itertools-5.0.0.ebuild     | 26 +++++++++++++---------
 .../more-itertools/more-itertools-7.0.0.ebuild     | 23 +++++++++++--------
 2 files changed, 29 insertions(+), 20 deletions(-)

diff --git a/dev-python/more-itertools/more-itertools-5.0.0.ebuild b/dev-python/more-itertools/more-itertools-5.0.0.ebuild
index 76d7ff3d2c9..f1084c6e2e4 100644
--- a/dev-python/more-itertools/more-itertools-5.0.0.ebuild
+++ b/dev-python/more-itertools/more-itertools-5.0.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( pypy{,3} python{2_7,3_{5,6,7}} )
+PYTHON_COMPAT=( python{2_7,3_{5,6,7,8}} pypy{,3} )
 
 inherit distutils-r1
 
@@ -14,26 +14,30 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="doc test"
-RESTRICT="!test? ( test )"
+IUSE="doc"
 
 RDEPEND="<dev-python/six-2.0[${PYTHON_USEDEP}]"
-DEPEND="
+BDEPEND="
 	dev-python/setuptools[${PYTHON_USEDEP}]
 	doc? (
-		dev-python/sphinx[${PYTHON_USEDEP}]
-		dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
+		$(python_gen_any_dep '
+			dev-python/sphinx[${PYTHON_USEDEP}]
+			dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
+		' python3_{5,6,7} pypy{,3})
 	)
-	test? (	${RDEPEND} )
 "
 
+distutils_enable_tests unittest
+
+python_check_deps() {
+	use doc || return 0
+	has_version "dev-python/sphinx[${PYTHON_USEDEP}]" &&
+		has_version "dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]"
+}
+
 python_compile_all() {
 	if use doc; then
 		sphinx-build docs docs/_build/html || die
 		HTML_DOCS=( docs/_build/html/. )
 	fi
 }
-
-python_test() {
-	"${EPYTHON}" -m unittest discover -v || die "tests fail with ${EPYTHON}"
-}

diff --git a/dev-python/more-itertools/more-itertools-7.0.0.ebuild b/dev-python/more-itertools/more-itertools-7.0.0.ebuild
index 9671e3461b2..b68c576d0f8 100644
--- a/dev-python/more-itertools/more-itertools-7.0.0.ebuild
+++ b/dev-python/more-itertools/more-itertools-7.0.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{5,6,7} pypy{,3} )
+PYTHON_COMPAT=( python3_{5,6,7,8} pypy{,3} )
 
 inherit distutils-r1
 
@@ -16,22 +16,27 @@ SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="doc"
 
-RDEPEND=""
-DEPEND="
+BDEPEND="
 	dev-python/setuptools[${PYTHON_USEDEP}]
 	doc? (
-		dev-python/sphinx[${PYTHON_USEDEP}]
-		dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
+		$(python_gen_any_dep '
+			dev-python/sphinx[${PYTHON_USEDEP}]
+			dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
+		' python3_{5,6,7} pypy{,3})
 	)
 "
 
+distutils_enable_tests unittest
+
+python_check_deps() {
+	use doc || return 0
+	has_version "dev-python/sphinx[${PYTHON_USEDEP}]" &&
+		has_version "dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]"
+}
+
 python_compile_all() {
 	if use doc; then
 		sphinx-build docs docs/_build/html || die
 		HTML_DOCS=( docs/_build/html/. )
 	fi
 }
-
-python_test() {
-	"${EPYTHON}" -m unittest discover -v || die "tests fail with ${EPYTHON}"
-}


             reply	other threads:[~2019-11-16 11:02 UTC|newest]

Thread overview: 137+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-16 11:02 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-24  9:11 [gentoo-commits] repo/gentoo:master commit in: dev-python/more-itertools/ Michał Górny
2025-05-24  9:03 Michał Górny
2025-05-08 19:10 Michał Górny
2025-04-23  5:35 Michał Górny
2025-02-01 11:58 Michał Górny
2025-02-01 11:35 Arthur Zamarin
2025-01-15  5:39 Michał Górny
2024-09-28 12:04 Michał Górny
2024-09-28 11:32 Arthur Zamarin
2024-09-06  9:25 Michał Górny
2024-08-24  8:10 Sam James
2024-08-08  3:08 Michał Górny
2024-06-29 16:58 Michał Górny
2024-06-11  4:20 Michał Górny
2024-01-24 19:05 Michał Górny
2024-01-24 18:59 Michał Górny
2024-01-09  6:54 Michał Górny
2023-09-01 16:42 Michał Górny
2023-09-01 16:30 Arthur Zamarin
2023-08-04  2:42 Michał Górny
2023-07-25  5:20 Michał Górny
2023-03-30 15:48 Michał Górny
2023-03-30 15:30 Arthur Zamarin
2023-02-27 17:49 Michał Górny
2022-11-19  8:47 Arthur Zamarin
2022-11-19  8:41 Arthur Zamarin
2022-10-18 18:07 Arthur Zamarin
2022-09-11  5:29 Michał Górny
2022-09-10 22:48 Jakov Smolić
2022-08-09 17:58 Arthur Zamarin
2022-06-10  4:18 Michał Górny
2022-06-10  3:09 Sam James
2022-05-07  9:35 Michał Górny
2022-03-27  9:50 Fabian Groffen
2022-02-27 18:52 Michał Górny
2022-02-27 12:23 Jakov Smolić
2022-01-26 11:32 Michał Górny
2021-12-24 19:52 Arthur Zamarin
2021-12-24 16:30 Arthur Zamarin
2021-12-10 17:39 Michał Górny
2021-12-10 11:46 Arthur Zamarin
2021-11-24  7:26 Michał Górny
2021-11-10  7:32 Michał Górny
2021-10-09 19:31 Michał Górny
2021-10-09 19:18 Sam James
2021-09-17 22:22 Michał Górny
2021-09-04  7:47 Michał Górny
2021-08-21 22:15 James Le Cuirot
2021-06-24  8:20 Michał Górny
2021-06-24  4:26 Agostino Sarubbo
2021-05-22  7:58 Michał Górny
2021-05-05 17:05 Michał Górny
2021-05-05 13:33 Michał Górny
2021-03-15  8:45 Michał Górny
2021-03-15  8:45 Michał Górny
2021-03-15  0:07 Sam James
2021-02-08  8:44 Michał Górny
2020-12-28  2:37 Sam James
2020-12-28  2:36 Sam James
2020-11-28 12:18 Michał Górny
2020-11-28  7:47 Sam James
2020-10-30 17:23 Michał Górny
2020-10-01 12:22 Michał Górny
2020-09-30 22:28 Sam James
2020-09-20 15:38 Michał Górny
2020-08-29  6:13 Michał Górny
2020-07-31  6:21 Michał Górny
2020-07-30 23:24 Sam James
2020-07-30 23:24 Sam James
2020-07-09 12:40 Michał Górny
2020-07-09  8:34 Agostino Sarubbo
2020-06-15  7:23 Michał Górny
2020-05-26  6:15 Michał Górny
2020-05-25 16:16 Michał Górny
2020-05-25 13:56 Michał Górny
2020-05-25 13:56 Michał Górny
2020-05-25 13:26 Michał Górny
2020-03-28  8:34 Michał Górny
2020-03-28  8:34 Michał Górny
2020-03-20 15:05 Michał Górny
2020-03-20 14:18 Agostino Sarubbo
2020-03-18 11:13 Agostino Sarubbo
2020-03-18 11:11 Agostino Sarubbo
2020-03-18 11:04 Agostino Sarubbo
2020-03-18 11:00 Agostino Sarubbo
2020-03-18  9:56 Agostino Sarubbo
2020-03-18  9:51 Agostino Sarubbo
2020-03-18  9:49 Agostino Sarubbo
2020-03-18  9:46 Agostino Sarubbo
2019-11-25 12:35 Michał Górny
2019-11-16 11:20 Michał Górny
2019-11-16 10:32 Michał Górny
2019-11-16 10:32 Michał Górny
2019-04-17  3:38 Aaron Bauman
2019-04-11  5:37 Tim Harder
2019-04-08 22:07 Sergei Trofimovich
2019-03-23 19:58 Matthew Thode
2019-03-23 19:58 Matthew Thode
2019-03-23 19:58 Matthew Thode
2019-03-15 10:13 Mikle Kolyada
2019-03-10 21:38 Matt Turner
2019-03-10 21:38 Matt Turner
2019-03-03 22:04 Joshua Kinard
2019-03-03  2:10 Matt Turner
2019-02-22 20:17 Sergei Trofimovich
2019-02-21 20:28 Markus Meier
2019-02-16  1:49 Virgil Dupras
2019-02-16  1:49 Virgil Dupras
2019-02-16  1:49 Virgil Dupras
2019-02-07 12:31 Tobias Klausmann
2018-12-22  7:15 Mikle Kolyada
2018-11-19 21:15 Fabian Groffen
2018-10-17 22:52 Louis Sautier
2018-10-17 10:36 Tobias Klausmann
2018-10-13 22:02 Patrice Clement
2018-10-07 10:11 Jeroen Roovers
2018-09-11  6:43 Sergei Trofimovich
2018-08-06  9:01 Sergei Trofimovich
2018-07-24 21:22 Louis Sautier
2018-07-24 20:23 Louis Sautier
2018-07-17 22:38 Louis Sautier
2018-07-17 22:13 Louis Sautier
2018-07-16 13:19 Michał Górny
2018-06-25 10:40 Jason Zaman
2018-06-24 18:28 Louis Sautier
2018-06-24 18:22 Louis Sautier
2018-06-20 23:03 Louis Sautier
2018-03-07 19:47 Markus Meier
2018-01-24 23:12 Sergei Trofimovich
2018-01-05  9:36 Michał Górny
2017-12-02 20:55 Mike Gilbert
2017-11-30 19:02 Thomas Deutschmann
2017-05-09 21:19 Michał Górny
2015-12-28 16:39 Ian Delaney
2015-12-25 23:04 Ian Delaney
2015-10-11 16:14 Manuel Rüger

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=1573902075.a3b64e48f23f18b88db54a99e2084470b9703fb1.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