diff --git a/README.md b/README.md index f9621d5f6..c13f62007 100644 --- a/README.md +++ b/README.md @@ -606,14 +606,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 1912 Ebuilds in total, 1901 of them have in total 1924 (42 different) licenses assigned. +There are 1913 Ebuilds in total, 1902 of them have in total 1925 (42 different) licenses assigned. |License| Ebuilds using it| |-------|-----| |MIT|1095| |Apache-2.0|430| |GPL-3|112| -|BSD|108| +|BSD|109| |LGPL-3|25| |GPL-2|23| |GPL-3+|16| diff --git a/dev-python/Babel/Babel-2.13.1.ebuild b/dev-python/Babel/Babel-2.13.1.ebuild index fb249d1d6..5d0e5110c 100644 --- a/dev-python/Babel/Babel-2.13.1.ebuild +++ b/dev-python/Babel/Babel-2.13.1.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 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_COMPAT=( python3_{11..13} ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1 pypi diff --git a/dev-python/Babel/Babel-2.15.0.ebuild b/dev-python/Babel/Babel-2.15.0.ebuild new file mode 100644 index 000000000..ff163eaef --- /dev/null +++ b/dev-python/Babel/Babel-2.15.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) +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 +} diff --git a/dev-python/Babel/Manifest b/dev-python/Babel/Manifest index 6af682999..dca95819e 100644 --- a/dev-python/Babel/Manifest +++ b/dev-python/Babel/Manifest @@ -1,4 +1,6 @@ DIST Babel-2.13.1.tar.gz 9909844 BLAKE2B f4e0cb6d19c2ecd24a8e67e7d77531248cb5a8d100a5da2a9fe147aef3c15339728c82d4fe9095563c0a0b83dede7c5e27f29281bc3bf0cac5deff7cce409335 SHA512 c27c76456094927bd43ae46cd3e08fcc729dd810a6092da6c86e863523c10746bb3759e7fc9f5396504ab914743ef013904b63b3aa63338602f23aaf83d42cba +DIST babel-2.15.0.tar.gz 9390000 BLAKE2B 9cd99524dbb191b5b8835452118b57b23abc89123e358a29de2375263a0264a1ea4c71324632eff8711cab7dbb40a20e97acd8e0faa448872353852b064ca524 SHA512 8cff4dbbe84047f7e8b625772036d2a23b6f7dfc36aa15332e581d4331fdac1d0308341294741afc43f3180368a7cc7675f68f28bbf94a621c693a822d4a2028 DIST cldr-common-42.0.zip 30178050 BLAKE2B 076e3eca12534feff8e0e54bdc1fa38fc0db0f78cac8b4e35b343763a8ac6787745aa36be165684f4d6dda423409c4431a8e4941c53ae7d340ead0b35edbca30 SHA512 315448fe6a9ac2d5a6a7fd1a27b38c5db30fed053654a803d50e3a8d06aa08ad153e8e57089fa094c561f41a54f37eecda0701b47a1813879902be71945aa38a -EBUILD Babel-2.13.1.ebuild 1797 BLAKE2B 26e434ba5b7edb2df470615f98705fb48a3555219cd2a6d81c8eb451a5e6e5e1e74e24c869bc6702e607a2928f435b33932bb75d3bf389f59e22bb38b67118b7 SHA512 90b4e8cf58aed59b518bad3fa34c5d4c5fdcdce066a6480c932de6c8f3e3603af2d3976d43854adfbc3bca4334af98d34f9ccc4c4c0ea3d27974d0cc57c93eb9 +EBUILD Babel-2.13.1.ebuild 1797 BLAKE2B e3b3cf291291073d024810e3104b208898d5ed53cd7f9306d6e24935bb9eec7fd46c73687204a9bcb1d9efebc4353d9b14fd62b3a0a93e7b204826e3908bb0a1 SHA512 a2af1285b4e4e116b1cfaa7de07b23db0d7c997e3395b127284355c5f7fadfe74756a212585b9578adf70f652feeeed25437023b8fcaa300896b6ff3281c563b +EBUILD Babel-2.15.0.ebuild 1777 BLAKE2B 8fdb5423cda43a49c43a861c4f804853d1b7ad31c46e51884af9cd71c832ca3b6dc5c7960504dab12522885795ebd187d2e897bb8a3b8f4af01a2470358a77d9 SHA512 e8dca1386f44b4c85a69e9590fa8c8d3b732db5465e82191d3c68e35ae5f5d5e601f8c8bc3990a12b5cfa2670515917df8c1b067296f15e783322c35de0d4155 MISC metadata.xml 548 BLAKE2B 46a7f3e6bc4d82a884283d61c41240878d22421b87d5966f7d45217528404448ab5ffdca3ea4a048182edaeec770d4dc03450cc87a863676171a59cacd784db4 SHA512 05362c26e097e03b33326317c228b92cf762f4396053680b4e6b88c8b475a758663522a5f4fc25abb6ce2233b4e27a1e18df5594c7b9efc4090ee94b1f0730d3