commit:     22b2da6d478d50148e50017d5681f4b3b58aa42e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  9 03:00:07 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Aug  9 03:10:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22b2da6d

dev-python/Babel: Bump to 2.16.0

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

 dev-python/Babel/Babel-2.16.0.ebuild | 56 ++++++++++++++++++++++++++++++++++++
 dev-python/Babel/Manifest            |  2 ++
 dev-python/Babel/metadata.xml        |  2 +-
 3 files changed, 59 insertions(+), 1 deletion(-)

diff --git a/dev-python/Babel/Babel-2.16.0.ebuild 
b/dev-python/Babel/Babel-2.16.0.ebuild
new file mode 100644
index 000000000000..de9cf564abe0
--- /dev/null
+++ b/dev-python/Babel/Babel-2.16.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_PN=${PN,}
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1 pypi
+
+# see scripts/download_import_cldr.py
+CLDR_PV=45.0
+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 ~ia64 ~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
+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 -x TZ=UTC
+       epytest
+}

diff --git a/dev-python/Babel/Manifest b/dev-python/Babel/Manifest
index 2116b05e9557..952d2a99dabf 100644
--- a/dev-python/Babel/Manifest
+++ b/dev-python/Babel/Manifest
@@ -1,2 +1,4 @@
 DIST babel-2.15.0.tar.gz 9390000 BLAKE2B 
9cd99524dbb191b5b8835452118b57b23abc89123e358a29de2375263a0264a1ea4c71324632eff8711cab7dbb40a20e97acd8e0faa448872353852b064ca524
 SHA512 
8cff4dbbe84047f7e8b625772036d2a23b6f7dfc36aa15332e581d4331fdac1d0308341294741afc43f3180368a7cc7675f68f28bbf94a621c693a822d4a2028
+DIST babel-2.16.0.tar.gz 9348104 BLAKE2B 
e8b674312140dca805b3faf4531493d613b663d4a04aa42a86438d49dd547b598eec9e3c3ca79d715d1c1589f7d416073fcf7e58df468e7c449fa05c70e7b776
 SHA512 
c80b52cd38eb2fb34b1d19ef3b6c50c16b129a4137d42eba900e3f77e81a5ad03ca319aa37dbdfd3bb7cbe31adbfa6007413962c348912dc9dca09d55fa4438b
 DIST cldr-common-44.0.zip 31750682 BLAKE2B 
a6f708d6c5bd02efc1e0672250b181542fb0f91d48bbaabddfc3b6b9e21201e3c9e6d09222cbc929b4ae654d2a0804a90f77f384df93577af188a907ce20bd61
 SHA512 
f2cd8733948caf308d6e39eae21724da7f29f528f8969d456514e1e84ecd5f1e6936d0460414a968888bb1b597bc1ee723950ea47df5cba21a02bb14f96d18b6
+DIST cldr-common-45.0.zip 31812363 BLAKE2B 
031d08f2db4a6c75585488faf43196a912e348edc9ff582e9c507c8f1c8ae2cf7c86aaa8265a8fa60540c2b3f4844d0aa01dad516344195bd4d40926d65a48fc
 SHA512 
638123882bd29911fc9492ec152926572fec48eb6c1f5dd706aee3e59cad8be4963a334bb7a09a645dbedc3356f60ef7ac2ef7ab4ccf2c8926b547782175603c

diff --git a/dev-python/Babel/metadata.xml b/dev-python/Babel/metadata.xml
index 9feb3d0da00b..550bc3dff65a 100644
--- a/dev-python/Babel/metadata.xml
+++ b/dev-python/Babel/metadata.xml
@@ -15,7 +15,7 @@
        </longdescription>
        <stabilize-allarches/>
        <upstream>
-               <remote-id type="pypi">Babel</remote-id>
+               <remote-id type="pypi">babel</remote-id>
                <remote-id type="github">python-babel/babel</remote-id>
                <bugs-to>https://github.com/python-babel/babel/issues</bugs-to>
        </upstream>

Reply via email to