1 |
commit: 44fa43981210010435058213a3f6281e695419b0 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 3 11:24:31 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 3 12:04:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44fa4398 |
7 |
|
8 |
dev-python/jaraco-text: Bump to 3.9.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/jaraco-text/Manifest | 1 + |
13 |
dev-python/jaraco-text/jaraco-text-3.9.1.ebuild | 71 +++++++++++++++++++++++++ |
14 |
2 files changed, 72 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/jaraco-text/Manifest b/dev-python/jaraco-text/Manifest |
17 |
index 1b1229c1e0c7..20746459c826 100644 |
18 |
--- a/dev-python/jaraco-text/Manifest |
19 |
+++ b/dev-python/jaraco-text/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST jaraco.text-3.8.1.tar.gz 14160 BLAKE2B 3f8af8881665a8eb9876ae3c76ccaa68f3c58f402e1761956235bda2089e6c5e72f7968ce7fd9dd7b8dc31a08228a715c8c715dc5a93e4453af1b94c2253bce6 SHA512 2dfdd2b3bfef7c0a38a633b810a63a4337ce79b0c871f08beb369bea04585ef1b9e53afa7cef0b54c172ca25eed068af92215526d2f5cee232ccf7e72c914cfa |
22 |
+DIST jaraco.text-3.9.1.tar.gz 14859 BLAKE2B 39fad64b85c8c1ea7b5bdac963b972b93ddb632940fe873fd0a646ca02d1e3a177742db9099cbbcd07dace1450c23a2e994c36f304a819e98e1c78907af975bd SHA512 f850125c7612342772d5a4a68076ea53a8cad6015c8bbe7e2923b034f8f601c8ff974eec0069b1bacba115d0aa43a948aea3b79f61d773464c823aac1880bbf1 |
23 |
|
24 |
diff --git a/dev-python/jaraco-text/jaraco-text-3.9.1.ebuild b/dev-python/jaraco-text/jaraco-text-3.9.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..a909d43c1fd4 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/jaraco-text/jaraco-text-3.9.1.ebuild |
29 |
@@ -0,0 +1,71 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+# please keep this ebuild at EAPI 7 -- sys-apps/portage dep |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=flit |
37 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+MY_P=${P/-/.} |
42 |
+DESCRIPTION="Text utilities used by other projects by developer jaraco" |
43 |
+HOMEPAGE=" |
44 |
+ https://github.com/jaraco/jaraco.text/ |
45 |
+ https://pypi.org/project/jaraco.text/ |
46 |
+" |
47 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN/-/.}/${MY_P}.tar.gz" |
48 |
+S=${WORKDIR}/${MY_P} |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ >=dev-python/jaraco-context-4.1.1-r1[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/jaraco-functools-3.5.0-r1[${PYTHON_USEDEP}] |
57 |
+ $(python_gen_cond_dep ' |
58 |
+ >=dev-python/importlib_resources-5.4.0-r3[${PYTHON_USEDEP}] |
59 |
+ ' 3.8) |
60 |
+" |
61 |
+# needed only for CLI tool, make it PDEPEND to reduce pain in setuptools |
62 |
+# bootstrap |
63 |
+PDEPEND=" |
64 |
+ dev-python/autocommand[${PYTHON_USEDEP}] |
65 |
+ dev-python/inflect[${PYTHON_USEDEP}] |
66 |
+ dev-python/more-itertools[${PYTHON_USEDEP}] |
67 |
+" |
68 |
+BDEPEND=" |
69 |
+ test? ( |
70 |
+ ${PDEPEND} |
71 |
+ $(python_gen_cond_dep ' |
72 |
+ dev-python/pathlib2[${PYTHON_USEDEP}] |
73 |
+ ' 3.8 3.9) |
74 |
+ ) |
75 |
+" |
76 |
+ |
77 |
+distutils_enable_tests pytest |
78 |
+ |
79 |
+src_configure() { |
80 |
+ grep -q 'build-backend = "setuptools' pyproject.toml || |
81 |
+ die "Upstream changed build-backend, recheck" |
82 |
+ # write a custom pyproject.toml to ease setuptools bootstrap |
83 |
+ cat > pyproject.toml <<-EOF || die |
84 |
+ [build-system] |
85 |
+ requires = ["flit_core >=3.2,<4"] |
86 |
+ build-backend = "flit_core.buildapi" |
87 |
+ |
88 |
+ [project] |
89 |
+ name = "jaraco.text" |
90 |
+ version = "${PV}" |
91 |
+ description = "Module for text manipulation" |
92 |
+ EOF |
93 |
+} |
94 |
+ |
95 |
+python_install() { |
96 |
+ distutils-r1_python_install |
97 |
+ # rename to workaround a bug in pkg_resources |
98 |
+ # https://bugs.gentoo.org/834522 |
99 |
+ mv "${D}$(python_get_sitedir)"/jaraco{_,.}text-${PV}.dist-info || die |
100 |
+} |