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-text/
Date: Sat, 04 Jun 2022 07:00:28
Message-Id: 1654326017.bc695beabdde5ed1d42cca487de78037421a6f01.mgorny@gentoo
1 commit: bc695beabdde5ed1d42cca487de78037421a6f01
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 4 06:02:27 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 4 07:00:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc695bea
7
8 dev-python/jaraco-text: Bump to 3.8.0
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.8.0.ebuild | 59 +++++++++++++++++++++++++
14 2 files changed, 60 insertions(+)
15
16 diff --git a/dev-python/jaraco-text/Manifest b/dev-python/jaraco-text/Manifest
17 index 3d1008ab90ce..e7ef7050f18b 100644
18 --- a/dev-python/jaraco-text/Manifest
19 +++ b/dev-python/jaraco-text/Manifest
20 @@ -1 +1,2 @@
21 DIST jaraco.text-3.7.0.tar.gz 12054 BLAKE2B 54528808695e2f1f04165e3de42d1715bb3e3ee1450ee8d8759814d209ba98c181d1746a916816dd50703e5a4e26ad7986f389619324ffbabaa89be90fd3908c SHA512 559dc5ed0f2c0b46dd0cbbc112ab01bbdb68bc12923cff8f745a5e233696ca9f50cef6dbf60116df5121f4761457574deebea142c2a23ca6c4664d7395b5607e
22 +DIST jaraco.text-3.8.0.tar.gz 13078 BLAKE2B 0c081fea1bc20150347636c46b489d4c09ab0c553d44b9f68c4e2d7b3ca35574801a740d4b907f03956a6817ba0ecc07945809c1619248563bb29974b0448577 SHA512 3526f1371d8f2e7c79dff61941b1b4ead3d0f4b5144f0e22dbd098ec244b9ffddba4bbeaa0d817a80ff422fa5c7ae11d0959d3f56044d7c5f95d8c8a5de8ad2f
23
24 diff --git a/dev-python/jaraco-text/jaraco-text-3.8.0.ebuild b/dev-python/jaraco-text/jaraco-text-3.8.0.ebuild
25 new file mode 100644
26 index 000000000000..0a28f2d6bd8d
27 --- /dev/null
28 +++ b/dev-python/jaraco-text/jaraco-text-3.8.0.ebuild
29 @@ -0,0 +1,59 @@
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="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
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 +
62 +distutils_enable_sphinx docs \
63 + ">=dev-python/jaraco-packaging-3.2" \
64 + ">=dev-python/rst-linker-1.9"
65 +distutils_enable_tests pytest
66 +
67 +src_configure() {
68 + grep -q 'build-backend = "setuptools' pyproject.toml ||
69 + die "Upstream changed build-backend, recheck"
70 + # write a custom pyproject.toml to ease setuptools bootstrap
71 + cat > pyproject.toml <<-EOF || die
72 + [build-system]
73 + requires = ["flit_core >=3.2,<4"]
74 + build-backend = "flit_core.buildapi"
75 +
76 + [project]
77 + name = "jaraco.text"
78 + version = "${PV}"
79 + description = "Module for text manipulation"
80 + EOF
81 +}
82 +
83 +python_install() {
84 + distutils-r1_python_install
85 + # rename to workaround a bug in pkg_resources
86 + # https://bugs.gentoo.org/834522
87 + mv "${D}$(python_get_sitedir)"/jaraco{_,.}text-${PV}.dist-info || die
88 +}