commit:     f63605875981cd2d0e81e94a1a43cbd1c02f618d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  2 04:31:38 2026 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Feb  2 04:44:31 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6360587

dev-python/babel: Bump to 2.18.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/babel/Manifest            |  3 ++
 dev-python/babel/babel-2.18.0.ebuild | 62 ++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/dev-python/babel/Manifest b/dev-python/babel/Manifest
index f7555a5cacc7..c51ec7bba461 100644
--- a/dev-python/babel/Manifest
+++ b/dev-python/babel/Manifest
@@ -1,2 +1,5 @@
 DIST babel-2.17.0.tar.gz 9951852 BLAKE2B 
619cf4163c99bbfc5bbadf2e2ccfca277752f4b5ac97fd5b9fcaf29a11493e625f07bf9a3c4e060eefb2308921597f0556fcce8d688c6aefee29b29f1003e1dd
 SHA512 
978ca79e9ce95ecfcfc8e3c6fe1b9b273088cc166490e64edd59c71f6793472d987ea982a67e8cf9d840b8e25f602639ad45e3a35c1482d39cbf09e0c21071ae
+DIST babel-2.18.0.tar.gz 9959554 BLAKE2B 
98e11085c84fbd1958191a8f082e587777fe1e5bc1b9c974e730c4aa470ba75814343c6c529f47141769d6a3ad867d89b054dd5ccc0ba77cda70aef135ba2e49
 SHA512 
e8fafa5d026dbb3aa02eca0ca2c08bb80adf78825a4b4d71c15a1c6d142bac058adfe38b8b52ce3fab42fcea615c8e543ee28dfe3ad50b4598e6b1b587be59fe
+DIST babel-2.18.0.tar.gz.provenance 9364 BLAKE2B 
e206bd2da1f44e2ec87c677e143eabc9291b888fdf5972e408c9f1e6bd6edc6a15d49c99916c5d2d1589b2bc6e5b198f4b7f4ba6ee17151270c8ee10f200f502
 SHA512 
923aeb56eabcdc0cc996bd5fb721a8a5463d1cea47fe48eb1986a03c00aef54b73fa90ce11e8fcf58a7734c7c7bbc78106a2733885aef4218aeb889a1e62f16e
 DIST cldr-common-46.0.zip 34181233 BLAKE2B 
c54942576dc779ef07d62b791f67a9ca71f3ae4f6833cd3ce44b54ad94ec4a7e3b114f0d611fddf1f7238582180a1e701886f047c76d28070d1f2cfa74020d9d
 SHA512 
316d644b79a4976d4da57d59ca57c689b339908fe61bb49110bfe1a9269c94144cb27322a0ea080398e6dc4c54a16752fd1ca837e14c054b3a6806b1ef9d3ec3
+DIST cldr-common-47.zip 34154825 BLAKE2B 
9d1a7910e6e5af1c8227438ed6a344a62c2d8faf686adf3de3941875dc7784d5494bd46fa3078e2896b5410ba27ee3d7ca28c8c4b300e4a5167ee0fa8b278a16
 SHA512 
3b1eb2a046dae23cf16f611f452833e2a95affb1aa2ae3fa599753d229d152577114c2ff44ca98a7f369fa41dc6f45b0d7a6647653ca79694aacfd3f3be59801

diff --git a/dev-python/babel/babel-2.18.0.ebuild 
b/dev-python/babel/babel-2.18.0.ebuild
new file mode 100644
index 000000000000..70219c12a656
--- /dev/null
+++ b/dev-python/babel/babel-2.18.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_VERIFY_REPO=https://github.com/python-babel/babel
+PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1 pypi
+
+# see scripts/download_import_cldr.py
+CLDR_PV=47
+DESCRIPTION="Collection of tools for internationalizing Python applications"
+HOMEPAGE="
+       https://babel.pocoo.org/
+       https://pypi.org/project/babel/
+       https://github.com/python-babel/babel/
+"
+SRC_URI+="
+       https://unicode.org/Public/cldr/${CLDR_PV%.*}/cldr-common-${CLDR_PV}.zip
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~x64-macos"
+
+# RDEPEND in BDEPEND for import_cldr.py usage, bug #852158
+BDEPEND="
+       app-arch/unzip
+       ${RDEPEND}
+       test? (
+               dev-python/freezegun[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_sphinx docs
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+src_prepare() {
+       rm babel/locale-data/*.dat || die
+       rm babel/global.dat || die
+       distutils-r1_src_prepare
+}
+
+python_configure() {
+       if [[ ! -f babel/global.dat ]]; then
+               "${EPYTHON}" scripts/import_cldr.py "${WORKDIR}"/common || die
+       fi
+}
+
+python_test() {
+       local EPYTEST_DESELECT=(
+               # requires fi locale
+               
tests/messages/test_setuptools_frontend.py::test_setuptools_commands
+       )
+
+       local -x TZ=UTC
+       epytest
+}

Reply via email to