Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jaraco-itertools/
Date: Fri, 04 Feb 2022 18:32:33
Message-Id: 1643999544.a8205910efff34333447eeb378a145994ab3e594.mgorny@gentoo
1 commit: a8205910efff34333447eeb378a145994ab3e594
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 4 18:30:06 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 4 18:32:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8205910
7
8 dev-python/jaraco-itertools: Switch to PEP 517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../jaraco-itertools-6.0.3-r1.ebuild | 42 ++++++++++++++++++++++
13 1 file changed, 42 insertions(+)
14
15 diff --git a/dev-python/jaraco-itertools/jaraco-itertools-6.0.3-r1.ebuild b/dev-python/jaraco-itertools/jaraco-itertools-6.0.3-r1.ebuild
16 new file mode 100644
17 index 000000000000..ffb5b961797d
18 --- /dev/null
19 +++ b/dev-python/jaraco-itertools/jaraco-itertools-6.0.3-r1.ebuild
20 @@ -0,0 +1,42 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( pypy3 python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +MY_P=${P/-/.}
32 +DESCRIPTION="Tools for working with iterables. Complements itertools and more_itertools"
33 +HOMEPAGE="https://github.com/jaraco/jaraco.itertools"
34 +SRC_URI="mirror://pypi/${MY_P::1}/${PN/-/.}/${MY_P}.tar.gz"
35 +S=${WORKDIR}/${MY_P}
36 +
37 +LICENSE="MIT"
38 +SLOT="0"
39 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
40 +
41 +RDEPEND="
42 + dev-python/inflect[${PYTHON_USEDEP}]
43 + >=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}]
44 +"
45 +BDEPEND="
46 + >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}]
47 +"
48 +
49 +distutils_enable_sphinx docs '>=dev-python/jaraco-packaging-3.2' \
50 + '>=dev-python/rst-linker-1.9'
51 +distutils_enable_tests pytest
52 +
53 +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
54 +
55 +python_test() {
56 + # create a pkgutil-style __init__.py in order to fix pytest's
57 + # determination of package paths
58 + cat > jaraco/__init__.py <<-EOF || die
59 + __path__ = __import__('pkgutil').extend_path(__path__, __name__)
60 + EOF
61 + epytest --doctest-modules
62 +}