commit:     22655b1793051f7f0e7f35ec46633970932ffca7
Author:     Louis Sautier <sautier.louis <AT> gmail <DOT> com>
AuthorDate: Tue May  9 20:41:17 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May  9 21:16:31 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22655b17

dev-python/more-itertools: bump to 3.0.0, add py3.6, pypy, pypy3

- Version 3.0.0 is now compatible with PyPy and PyPy3
- Add a new dependency
- Add GitHub upstream and bugs-to to metadata
- Bump to EAPI 6

Closes: https://github.com/gentoo/gentoo/pull/4590
Package-Manager: Portage-2.3.5, Repoman-2.3.2

 dev-python/more-itertools/Manifest                 |  1 +
 dev-python/more-itertools/metadata.xml             |  2 ++
 .../more-itertools/more-itertools-3.0.0.ebuild     | 42 ++++++++++++++++++++++
 3 files changed, 45 insertions(+)

diff --git a/dev-python/more-itertools/Manifest 
b/dev-python/more-itertools/Manifest
index 4c5bed44174..1f5b2bd09b3 100644
--- a/dev-python/more-itertools/Manifest
+++ b/dev-python/more-itertools/Manifest
@@ -1 +1,2 @@
 DIST more-itertools-2.2.tar.gz 19807 SHA256 
93e62e05c7ad3da1a233def6731e8285156701e3419a5fe279017c429ec67ce0 SHA512 
579a778b91607800c4000a30c7509e9fc44ad1d35598ab9041b547aca9d94b811d3fc0abf5c84413fb70be87eb20177685a8a30dc7146a005fa1eb82986294f8
 WHIRLPOOL 
75ad77394757b30709700957f20136029100eb0e6a42ca7a031a54f0bc71fc926eb552c1b29b0b92af175a618ae826c6380c2919ae3e74d60fa3423e352a9c37
+DIST more-itertools-3.0.0.tar.gz 37622 SHA256 
8b791474073fbaef17fdcd148e33a62fa80ad6edd6eb3f61470e1ccdd30fa182 SHA512 
575de991b6337e6416489d92b41201536397d84ff41030a2cf09ea57cc994e03dcb4dd19eda321243ceafd49c11271da43a4c4ed5a9261cf771f0b7f8e40345c
 WHIRLPOOL 
b420ef8fffa4751a811eedf456e83812016d16f3f30ca63073bfb3f602b5f8caadc8f556105b63abe057252952b938f6db1e6dbef89b008d61c4c45b8a063941

diff --git a/dev-python/more-itertools/metadata.xml 
b/dev-python/more-itertools/metadata.xml
index 0a005a743f3..af8b864b288 100644
--- a/dev-python/more-itertools/metadata.xml
+++ b/dev-python/more-itertools/metadata.xml
@@ -7,5 +7,7 @@
        </maintainer>
        <upstream>
                <remote-id type="pypi">more-itertools</remote-id>
+               <remote-id type="github">erikrose/more-itertools</remote-id>
+               
<bugs-to>https://github.com/erikrose/more-itertools/issues</bugs-to>
        </upstream>
 </pkgmetadata>

diff --git a/dev-python/more-itertools/more-itertools-3.0.0.ebuild 
b/dev-python/more-itertools/more-itertools-3.0.0.ebuild
new file mode 100644
index 00000000000..3c7a53ab430
--- /dev/null
+++ b/dev-python/more-itertools/more-itertools-3.0.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy{,3} )
+
+inherit distutils-r1
+
+DESCRIPTION="More routines for operating on iterables, beyond itertools"
+HOMEPAGE="https://pypi.python.org/pypi/more-itertools";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~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/nose[${PYTHON_USEDEP}]
+       )
+"
+
+python_compile_all() {
+       use doc && emake -C docs html
+}
+
+python_test() {
+       nosetests -v -w "${BUILD_DIR}" more_itertools --with-doctest \
+               || die "tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+       use doc && local HTML_DOCS=( docs/_build/html/. )
+       distutils-r1_python_install_all
+}

Reply via email to