summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sbraz@gentoo.org>2018-06-21 01:00:25 +0200
committerLouis Sautier <sbraz@gentoo.org>2018-06-21 01:02:31 +0200
commit8ca8a363b3c46636139c95b21df8d8ad3e138893 (patch)
tree066c2ada16b31a76571b5abdbcf3a05219627b1a
parentprofiles: p.use.mask media-video/mpv[vulkan] (diff)
downloadgentoo-8ca8a363b3c46636139c95b21df8d8ad3e138893.tar.gz
gentoo-8ca8a363b3c46636139c95b21df8d8ad3e138893.tar.bz2
gentoo-8ca8a363b3c46636139c95b21df8d8ad3e138893.zip
dev-python/more-itertools: bump to 4.2.0
Use pytest instead of nose because the latter fails. Package-Manager: Portage-2.3.40, Repoman-2.3.9
-rw-r--r--dev-python/more-itertools/Manifest1
-rw-r--r--dev-python/more-itertools/more-itertools-4.2.0.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/more-itertools/Manifest b/dev-python/more-itertools/Manifest
index 25dd56eedc86..1cf128358df4 100644
--- a/dev-python/more-itertools/Manifest
+++ b/dev-python/more-itertools/Manifest
@@ -1 +1,2 @@
DIST more-itertools-3.0.0.tar.gz 37622 BLAKE2B dd1806f4359406ac0a57a8eefe8d6c31033177e3f1b4fd297dfcdb525df6bd5725ff16f25abb1957dcb1cacb21bf1d037a3c9def9e9469904efbe2fd336cf5b4 SHA512 575de991b6337e6416489d92b41201536397d84ff41030a2cf09ea57cc994e03dcb4dd19eda321243ceafd49c11271da43a4c4ed5a9261cf771f0b7f8e40345c
+DIST more-itertools-4.2.0.tar.gz 56871 BLAKE2B 48cdba3eebea94483c5cfd9530d4bd2cacd02e893b87482a01ff1fdf10336f3c2a40d32fbb935d38320c9c47a1fd1942a48ea12ff07ae56793ecc5870fef2452 SHA512 7e205a575fb1d17ed3be9225c5c60139db41cc4b866f6d6732c955536b1d606bb7ccd92ad77e41159965abbddec3a85761d3649c28f06d52afa8476160d70e77
diff --git a/dev-python/more-itertools/more-itertools-4.2.0.ebuild b/dev-python/more-itertools/more-itertools-4.2.0.ebuild
new file mode 100644
index 000000000000..75bf16813312
--- /dev/null
+++ b/dev-python/more-itertools/more-itertools-4.2.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6}} )
+
+inherit distutils-r1
+
+DESCRIPTION="More routines for operating on iterables, beyond itertools"
+HOMEPAGE="https://pypi.org/project/more-itertools/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~x86"
+IUSE="doc test"
+
+RDEPEND="<dev-python/six-2.0[${PYTHON_USEDEP}]"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? (
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ )
+ test? (
+ ${RDEPEND}
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )
+"
+
+python_compile_all() {
+ if use doc; then
+ sphinx-build docs docs/_build/html || die
+ HTML_DOCS=( docs/_build/html/. )
+ fi
+}
+
+python_test() {
+ py.test --doctest-modules || die "tests fail with ${EPYTHON}"
+}