1 |
commit: 51c75a29aafe5f60c49ce322cfe98cf7033b35d0 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 3 10:14:36 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 3 10:58:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51c75a29 |
7 |
|
8 |
dev-python/jaraco-functools: Use flit to build (for bootstrap) |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../jaraco-functools-3.5.0-r1.ebuild | 49 ++++++++++++++++++++++ |
13 |
1 file changed, 49 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/jaraco-functools/jaraco-functools-3.5.0-r1.ebuild b/dev-python/jaraco-functools/jaraco-functools-3.5.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..afb16b117a96 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/jaraco-functools/jaraco-functools-3.5.0-r1.ebuild |
20 |
@@ -0,0 +1,49 @@ |
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=flit |
27 |
+PYTHON_COMPAT=( pypy3 python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+MY_P=${P/-/.} |
32 |
+DESCRIPTION="Additional functions used by other projects by developer jaraco" |
33 |
+HOMEPAGE="https://github.com/jaraco/jaraco.functools" |
34 |
+SRC_URI="mirror://pypi/${PN:0: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 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ dev-python/more-itertools[${PYTHON_USEDEP}] |
43 |
+" |
44 |
+BDEPEND=" |
45 |
+ test? ( |
46 |
+ dev-python/jaraco-classes[${PYTHON_USEDEP}] |
47 |
+ ) |
48 |
+" |
49 |
+ |
50 |
+distutils_enable_sphinx docs \ |
51 |
+ ">=dev-python/jaraco-packaging-3.2" \ |
52 |
+ ">=dev-python/rst-linker-1.9" |
53 |
+distutils_enable_tests pytest |
54 |
+ |
55 |
+src_configure() { |
56 |
+ grep -q 'build-backend = "setuptools' pyproject.toml || |
57 |
+ die "Upstream changed build-backend, recheck" |
58 |
+ # write a custom pyproject.toml to ease setuptools bootstrap |
59 |
+ cat > pyproject.toml <<-EOF || die |
60 |
+ [build-system] |
61 |
+ requires = ["flit_core >=3.2,<4"] |
62 |
+ build-backend = "flit_core.buildapi" |
63 |
+ |
64 |
+ [project] |
65 |
+ name = "jaraco.functools" |
66 |
+ version = "${PV}" |
67 |
+ description = "Functools like those found in stdlib" |
68 |
+ EOF |
69 |
+} |