1 |
commit: 7c936739b667bf3fb6c4a66b40b0d0560baebeeb |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 26 11:04:44 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 26 11:16:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c936739 |
7 |
|
8 |
dev-python/more-itertools: Use flit to ease bootstrap |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../more-itertools/more-itertools-8.12.0-r1.ebuild | 37 ++++++++++++++++++++++ |
13 |
1 file changed, 37 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/more-itertools/more-itertools-8.12.0-r1.ebuild b/dev-python/more-itertools/more-itertools-8.12.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..5608cb603088 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/more-itertools/more-itertools-8.12.0-r1.ebuild |
20 |
@@ -0,0 +1,37 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+# please keep this ebuild at EAPI 7 -- sys-apps/portage dep |
25 |
+EAPI=7 |
26 |
+ |
27 |
+DISTUTILS_USE_PEP517=flit |
28 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="More routines for operating on iterables, beyond itertools" |
32 |
+HOMEPAGE="https://pypi.org/project/more-itertools/" |
33 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="MIT" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
38 |
+ |
39 |
+distutils_enable_sphinx docs \ |
40 |
+ dev-python/sphinx_rtd_theme |
41 |
+distutils_enable_tests unittest |
42 |
+ |
43 |
+src_configure() { |
44 |
+ grep -q '\[build-system\]' pyproject.toml && |
45 |
+ die "Upstream added [build-system] to pyproject.toml, recheck" |
46 |
+ # write a custom pyproject.toml to ease setuptools bootstrap |
47 |
+ cat > pyproject.toml <<-EOF || die |
48 |
+ [build-system] |
49 |
+ requires = ["flit_core >=3.2,<4"] |
50 |
+ build-backend = "flit_core.buildapi" |
51 |
+ |
52 |
+ [project] |
53 |
+ name = "more_itertools" |
54 |
+ version = "${PV}" |
55 |
+ description = "More routines for operating on iterables, beyond itertools" |
56 |
+ EOF |
57 |
+} |