summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2026-02-09 05:39:07 +0100
committerMichał Górny <mgorny@gentoo.org>2026-02-09 05:39:07 +0100
commit44f806b25c8b04eecc13c35dbe12c2ab35872e82 (patch)
tree9f1d06057e629467b3dbc36c613b6794c9b24bd5 /dev-python
parent2f6f64e5e8270c192145bc04bbfe5785c8eed879 (diff)
downloadgentoo-44f806b25c8b04eecc13c35dbe12c2ab35872e82.tar.gz
gentoo-44f806b25c8b04eecc13c35dbe12c2ab35872e82.tar.bz2
gentoo-44f806b25c8b04eecc13c35dbe12c2ab35872e82.zip
dev-python/jaraco-text: Bump to 4.1.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/jaraco-text/Manifest1
-rw-r--r--dev-python/jaraco-text/jaraco-text-4.1.0.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/jaraco-text/Manifest b/dev-python/jaraco-text/Manifest
index 1858a3339ee1..62e350fe8cb2 100644
--- a/dev-python/jaraco-text/Manifest
+++ b/dev-python/jaraco-text/Manifest
@@ -1 +1,2 @@
DIST jaraco_text-4.0.0.tar.gz 17009 BLAKE2B 4aa4381de0988383f4442a1caaab48eae79f2cbe564438b540adfed12d9cfb3680de1e5579029be204024256ba9f3327af225db73f2bd68fed7b2bdd4859a799 SHA512 240c4f6f3df6916e9015479147474a43ea9e858e22821f53263c1ef42c61336c36a34baa9c7384b9d345cf42e10b7499e2efa3c85178a0c2abc47fcd82b63fb3
+DIST jaraco_text-4.1.0.tar.gz 19153 BLAKE2B 8585bb938ce694e7d438fe0faf17c51f9fd8392cc7157a4816a94a043aa1cd1e047d25c34fc0e27b82ccae1a73d000a82a90493c1b72f20fe8375c5bade02565 SHA512 8af0377c47c673b5d2a7d6d92f37b945bbe6aa451df7dd152669a8ef1f378c8b04283e23291393c70b818d32a96acffd16f71d401d9115775469a94c19926413
diff --git a/dev-python/jaraco-text/jaraco-text-4.1.0.ebuild b/dev-python/jaraco-text/jaraco-text-4.1.0.ebuild
new file mode 100644
index 000000000000..837e46d167fd
--- /dev/null
+++ b/dev-python/jaraco-text/jaraco-text-4.1.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# please keep this ebuild at EAPI 8 -- sys-apps/portage dep
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYPI_PN=${PN/-/.}
+PYTHON_COMPAT=( python3_{11..14} python3_{13,14}t pypy3_11 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Text utilities used by other projects by developer jaraco"
+HOMEPAGE="
+ https://github.com/jaraco/jaraco.text/
+ https://pypi.org/project/jaraco.text/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
+
+RDEPEND="
+ >=dev-python/jaraco-context-4.1.1-r1[${PYTHON_USEDEP}]
+ >=dev-python/jaraco-functools-3.5.0-r1[${PYTHON_USEDEP}]
+"
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+src_configure() {
+ grep -q 'build-backend = "setuptools' pyproject.toml ||
+ die "Upstream changed build-backend, recheck"
+ # write a custom pyproject.toml to ease setuptools bootstrap
+ cat > pyproject.toml <<-EOF || die
+ [build-system]
+ requires = ["flit_core >=3.2,<4"]
+ build-backend = "flit_core.buildapi"
+
+ [project]
+ name = "jaraco.text"
+ version = "${PV}"
+ description = "Module for text manipulation"
+ EOF
+
+ # remove CLI tools, they have annoying deps, no entry points
+ # and since there are dashes in their names, they can't be imported
+ # anyway
+ rm jaraco/text/*-*.py || die
+}
+
+python_install() {
+ distutils-r1_python_install
+ # rename to workaround a bug in pkg_resources
+ # https://bugs.gentoo.org/834522
+ mv "${D}$(python_get_sitedir)"/jaraco{_,.}text-${PV}.dist-info || die
+}