dev-python/Babel: new package, add 2.13.1

Closes: #2614
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
Andreas Billmeier 2024-01-04 10:58:23 +01:00
parent f9467f8bdf
commit b792056bbb
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 93 additions and 3 deletions

View File

@ -612,14 +612,14 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
## Licenses
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
There are 1600 Ebuilds in total, 1589 of them have in total 1604 (42 different) licenses assigned.
There are 1602 Ebuilds in total, 1591 of them have in total 1606 (42 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
|MIT|921|
|Apache-2.0|339|
|Apache-2.0|340|
|GPL-3|102|
|BSD|87|
|BSD|88|
|LGPL-3|22|
|GPL-2|20|
|all-rights-reserved|15|

View File

@ -0,0 +1,69 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
PYTHON_COMPAT=( python3_{10..12} )
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1 pypi
# see scripts/download_import_cldr.py
CLDR_PV=42.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="amd64 arm arm64 x86"
# 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 EPYTEST_DESELECT=()
if [[ ${EPYTHON} == python3.12 ]]; then
EPYTEST_DESELECT+=(
# seems to be a corner case, might be a regression in cpython
# https://github.com/python-babel/babel/issues/1005
tests/messages/test_extract.py::ExtractPythonTestCase::test_utf8_message_with_utf8_bom
tests/messages/test_extract.py::ExtractPythonTestCase::test_utf8_message_with_utf8_bom_and_magic_comment
tests/messages/test_extract.py::ExtractPythonTestCase::test_utf8_raw_strings_match_unicode_strings
tests/messages/test_extract.py::ExtractTestCase::test_f_strings
tests/messages/test_extract.py::ExtractTestCase::test_f_strings_non_utf8
)
fi
local -x TZ=UTC
epytest
}

View File

@ -0,0 +1,4 @@
DIST Babel-2.13.1.tar.gz 9909844 BLAKE2B f4e0cb6d19c2ecd24a8e67e7d77531248cb5a8d100a5da2a9fe147aef3c15339728c82d4fe9095563c0a0b83dede7c5e27f29281bc3bf0cac5deff7cce409335 SHA512 c27c76456094927bd43ae46cd3e08fcc729dd810a6092da6c86e863523c10746bb3759e7fc9f5396504ab914743ef013904b63b3aa63338602f23aaf83d42cba
DIST cldr-common-42.0.zip 30178050 BLAKE2B 076e3eca12534feff8e0e54bdc1fa38fc0db0f78cac8b4e35b343763a8ac6787745aa36be165684f4d6dda423409c4431a8e4941c53ae7d340ead0b35edbca30 SHA512 315448fe6a9ac2d5a6a7fd1a27b38c5db30fed053654a803d50e3a8d06aa08ad153e8e57089fa094c561f41a54f37eecda0701b47a1813879902be71945aa38a
EBUILD Babel-2.13.1.ebuild 1797 BLAKE2B 26e434ba5b7edb2df470615f98705fb48a3555219cd2a6d81c8eb451a5e6e5e1e74e24c869bc6702e607a2928f435b33932bb75d3bf389f59e22bb38b67118b7 SHA512 90b4e8cf58aed59b518bad3fa34c5d4c5fdcdce066a6480c932de6c8f3e3603af2d3976d43854adfbc3bca4334af98d34f9ccc4c4c0ea3d27974d0cc57c93eb9
MISC metadata.xml 548 BLAKE2B 46a7f3e6bc4d82a884283d61c41240878d22421b87d5966f7d45217528404448ab5ffdca3ea4a048182edaeec770d4dc03450cc87a863676171a59cacd784db4 SHA512 05362c26e097e03b33326317c228b92cf762f4396053680b4e6b88c8b475a758663522a5f4fc25abb6ce2233b4e27a1e18df5594c7b9efc4090ee94b1f0730d3

View File

@ -0,0 +1,17 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<upstream>
<remote-id type="pypi">Babel</remote-id>
<remote-id type="github">python-babel/babel</remote-id>
<doc>https://pythonhosted.org/Babel/</doc>
<maintainer status="unknown">
<email>akx@iki.fi</email>
<name>Aarni Koskela</name>
</maintainer>
</upstream>
</pkgmetadata>