Gentoo Archives: gentoo-commits

From: Ian Delaney <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/more-itertools/
Date: Mon, 28 Dec 2015 16:39:25
Message-Id: 1451320749.34d71f577292207f33d3dd0dfab772ff525ec5e2.idella4@gentoo
1 commit: 34d71f577292207f33d3dd0dfab772ff525ec5e2
2 Author: Ian Delaney <idella4 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 28 16:38:22 2015 +0000
4 Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 28 16:39:09 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34d71f57
7
8 dev-python/more-itertools: revbump; add IUSE doc, test
9
10 working test phase added as well as a doc build and install,
11 deps for each added accordingly, patches and testing done thx to
12 user 'drwx' via devs of the proxy-maintainers project
13
14 Package-Manager: portage-2.2.24
15
16 .../more-itertools/more-itertools-2.2-r1.ebuild | 35 ++++++++++++++++++++++
17 1 file changed, 35 insertions(+)
18
19 diff --git a/dev-python/more-itertools/more-itertools-2.2-r1.ebuild b/dev-python/more-itertools/more-itertools-2.2-r1.ebuild
20 new file mode 100644
21 index 0000000..7dd508d
22 --- /dev/null
23 +++ b/dev-python/more-itertools/more-itertools-2.2-r1.ebuild
24 @@ -0,0 +1,35 @@
25 +# Copyright 1999-2015 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=5
30 +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
31 +
32 +inherit distutils-r1
33 +
34 +DESCRIPTION="More routines for operating on iterables, beyond itertools"
35 +HOMEPAGE="https://pypi.python.org/pypi/more-itertools"
36 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="MIT"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86"
41 +IUSE="doc test"
42 +
43 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
44 + test? ( dev-python/nose[${PYTHON_USEDEP}] )
45 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
46 +
47 +python_compile_all() {
48 + use doc && emake -C docs html
49 +}
50 +
51 +python_test() {
52 + nosetests -w "${BUILD_DIR}" more_itertools --with-doctest \
53 + || die "tests fail with ${EPYTHON}"
54 +}
55 +
56 +python_install_all() {
57 + use doc && local HTML_DOCS=( docs/_build/html/. )
58 + distutils-r1_python_install_all
59 +}