diff options
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/Manifest.gz | bin | 269130 -> 269125 bytes | |||
-rw-r--r-- | dev-python/apsw/Manifest | 2 | ||||
-rw-r--r-- | dev-python/apsw/apsw-3.45.1.0.ebuild | 51 | ||||
-rw-r--r-- | dev-python/pendulum/Manifest | 3 | ||||
-rw-r--r-- | dev-python/pendulum/files/pendulum-3.0.0-system-tzdata.patch | 50 | ||||
-rw-r--r-- | dev-python/pendulum/pendulum-3.0.0-r1.ebuild (renamed from dev-python/pendulum/pendulum-3.0.0.ebuild) | 11 | ||||
-rw-r--r-- | dev-python/pypy/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pypy/pypy-7.3.15.ebuild | 4 |
8 files changed, 117 insertions, 6 deletions
diff --git a/dev-python/Manifest.gz b/dev-python/Manifest.gz Binary files differindex 59e4b4b752fd..0d5d732ff2c4 100644 --- a/dev-python/Manifest.gz +++ b/dev-python/Manifest.gz diff --git a/dev-python/apsw/Manifest b/dev-python/apsw/Manifest index e195ce7b9a12..0832cce4c251 100644 --- a/dev-python/apsw/Manifest +++ b/dev-python/apsw/Manifest @@ -1,3 +1,5 @@ DIST apsw-3.44.2.0.gh.tar.gz 902852 BLAKE2B bdaf72ef063d3ddaf46bf403e688ffe5ee657de5a17ca3aba496058d8f244fdfd82b41899f3c944b6d7cdfe5bab0e7608bd26db926016df6af9fa5a950c12415 SHA512 76f8b92feb792c3003d251bcf61dab80bfb34147cfb8512ad6ff1dd1f07b4e7a5c97b98c4bfc7fee179efc7439ea28573552ae25d5bc33e633da0722866fd551 +DIST apsw-3.45.1.0.gh.tar.gz 904083 BLAKE2B 4cf397557bfe36e38fd48d124345de395b77a8dd313ebd77f97624d873123d5ecd82e56b6e134849e00a77f94b0c3ee2fa0cfc888b8fbbddc34b99b3274b8dc8 SHA512 5d754c45881db9e299c70bd0c290211f7e30421da258b25b5aa0d8b3c97a10622f0b75735fc84d687f78403fc257139ffc249d926be611a4101b98caf3c60a3a EBUILD apsw-3.44.2.0.ebuild 943 BLAKE2B 23509fcab774e0b1f597022be5fe95c4a1a97364f97fd68063bf15b056bbfbf772b8fd8617c7b33b23f122a555ce3b4b49e08a781fa0acbfb3a4e1edc400c16d SHA512 84a60cfda120ddafef9865b36ff576f202a8cbe4cc82d086aa2eb15d085d5a61d27ba1e48b123162dafe315b2abec8b2d953b5051cf4d895c17b38d050afe7ae +EBUILD apsw-3.45.1.0.ebuild 946 BLAKE2B 4904dee29c74f142565ba3087022f5a5ded0b389aab3a3f7e33669579eb55fbe811b8d17107ab7ad61d8b0873662e344d9b7061dccfeb63efc1db1c15c8cb606 SHA512 3de3346a9980976677977f75708cc1d9a1c0b9ec762445f78dd07f47982e57b289346edc67cfcd067e12e8b4dd9070f1ef94c16f52422baa2703ae09ad0e891f MISC metadata.xml 700 BLAKE2B 258344a1602daf3e081fdb4c94eda8af6e231def3f02fb80d63691b47d0a503c9caad80893386ce7ef42d6be2985906f3fc5cfedfe5a1044aee04c493f3d0683 SHA512 de73b4eb06d0bcf4c81e544a98ad15231b006d62fe22f6bce7e38740b941b98297fa1a38b00060ff83ae9f3259c5020c7071469f2a3f0d9e4f8f0301cb942081 diff --git a/dev-python/apsw/apsw-3.45.1.0.ebuild b/dev-python/apsw/apsw-3.45.1.0.ebuild new file mode 100644 index 000000000000..7fe76f0deaa5 --- /dev/null +++ b/dev-python/apsw/apsw-3.45.1.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +DESCRIPTION="APSW - Another Python SQLite Wrapper" +HOMEPAGE=" + https://github.com/rogerbinns/apsw/ + https://pypi.org/project/apsw/ +" +SRC_URI=" + https://github.com/rogerbinns/apsw/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="doc" + +DEPEND=" + >=dev-db/sqlite-${PV%.*}:3 +" +RDEPEND=" + ${DEPEND} +" + +src_configure() { + cat >> setup.cfg <<-EOF || die + [build_ext] + enable=load_extension + use_system_sqlite_config=True + EOF +} + +python_test() { + esetup.py build_test_extension + cd "${T}" || die + "${EPYTHON}" -m apsw.tests -v || die "Tests failed under ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/pendulum/Manifest b/dev-python/pendulum/Manifest index 0718d348338d..f430ddc1225b 100644 --- a/dev-python/pendulum/Manifest +++ b/dev-python/pendulum/Manifest @@ -1,3 +1,4 @@ +AUX pendulum-3.0.0-system-tzdata.patch 1809 BLAKE2B 05b33d6ae6d673f82953c3128f9305ca58dc5fa9eef9a40b227f2e44ab973319402bf9b04a9e8f2d6f79265cf6366811b2daa60356d1f8b1c8a91ea4a2af5df2 SHA512 c3920988393b657543cae0594c3ca7e0d34460f27740d5b70aa2c708437571508a81d344ca9bf7f25972b5daafa4a139f2667127ddff8465d1230391ff3ac6cb DIST autocfg-1.1.0.crate 13272 BLAKE2B 7724055c337d562103f191f4e36cab469e578f0c51cc24d33624dea155d108a07578703766341fd6a4cc1ef52acda406e7dba1650d59115f18261281e5b40203 SHA512 df972c09abbdc0b6cb6bb55b1e29c7fed706ece38a62613d9e275bac46a19574a7f96f0152cccb0239efea04ee90083a146b58b15307696c4c81878cd12de28f DIST bitflags-1.3.2.crate 23021 BLAKE2B eb990bb27b2bdeb66fd7212ce582cb36e1c616debbac85df642d0c82b25439e6bf9b1e811fac76b59e58ea3c1bbea6170d03a61e8f9a395e4334a0e2e2987eda SHA512 3c698f757b5cc62f815f9a1cce365c3d2dd88e4db71f331dff8bba86c2865f755b81cb4c9bfc59bd86b7643b0943f9e09a7c4f8ad75eb2ab0e714803d0129f62 DIST cc-1.0.79.crate 62624 BLAKE2B b3cbed3bd6fcac1c6ea258ec96cd107f859947a35dc89c3dc8f314741b0f668e61518f896ec32ce10c9a7eb20dd350bc177a71810d53ebea59fda062ed9d27db SHA512 cbf0a25f3a23fc540e9d638fabc23f761f1c240ebb4814e761e90437d71fc559cd155768ab9e78fc192220d8a605c66c3af342ed736b719181656170b98d7bf5 @@ -38,5 +39,5 @@ DIST windows_x86_64_gnu-0.42.1.crate 697614 BLAKE2B 3cef0a3da3ce142bbdf932dbb54e DIST windows_x86_64_gnullvm-0.42.1.crate 362788 BLAKE2B fff81e63b86ad04ce22ad3e05ec4cc02c0b791384c93bafb50832f6db9cb7fd9301ad3845339a08dd8cadac1d59f3e8dc9d5f56d7a987989dbfc16b9131af67b SHA512 8cc988b5995a4726bb7518b7fccff528274ad9b2b0160fe247eb240f9ced10db95afe7bff91bfc5a08ebd8237b6821e4a4abad1ff9da45022f1ce7e7586bcf05 DIST windows_x86_64_msvc-0.42.1.crate 664606 BLAKE2B 6c460cfa392aad0d11add200d652a42ee1a60052570527c4e85405f765255375729d4e26287f5246dcad65fa89ccadea23c5135171b311e6da5027e33149c547 SHA512 a651b1a34f101125f929c1d1f5e933691c7a5c19d0bb0c501fb6812236d2771805428e3bd5e05be7d72715595f5fc9e7978dd7934e5d92e9b78a41c2ece695b2 EBUILD pendulum-2.1.2-r2.ebuild 1016 BLAKE2B 00f262dcd729c6eb67a9a38a32254df8c3ef3160b0d4f97dafbbd15cf37bb61d1e8d13ec09f4eee30b87281cb3c404b73450e7cec40d8da5167b909c5d458339 SHA512 8ecb0412003f734d3ada27d610a4da348691fee07fe8649e0567a5dece5d7e5e557f10983453958df311ea389425fe071a4adb2c17dc7f8c7230d9fe033e2759 -EBUILD pendulum-3.0.0.ebuild 1850 BLAKE2B 2516547066e6fb9cf129ed5b1a6c0a243a48b15195c08db0be026b177e81092dc970f720684a596d06d581df81e36fee18b413fc899912086018401adc97a3cc SHA512 7031687f9c765dde50ef1c2cb9581ffe153f7e1db2d93d535ea4d3ad1d947da2c15b8d7942b417da4bfdf038ef78e311c151553fa5d70bd2ceea4c0b3b46e4bc +EBUILD pendulum-3.0.0-r1.ebuild 2020 BLAKE2B ce3da9eb25f65d0a39f52fb1db8f8a0cec2dd836cf65bf067131ad63986c9328aae4bbee9d2d051c15e62880b761b3bef8a2b3f8553315ecfcca2d7f38a5f41c SHA512 cd69f1bf07b9be04ade86f51d43c0ca8d47a46f553f4e8cb1698ca783fcb66bc680d49222ef19fd28b5925f8b61e633d82c2b840779ba4cefbf83925157c70b1 MISC metadata.xml 389 BLAKE2B 516d7400e97ab8c53ea341d642ac5d7098232b8bc5e622308a535ca3ae3f34f08893954b820232467bd66da7bed729e10205ac20e75190347ae5aa607b4bd88b SHA512 f5d036a5075eeaedfd073671a10bb2972912760549db758d126273abcb18e68ea057dbad0d3bc7915406ee0e519bf10e6ae1cb15c2f0ecd64303a456440987ca diff --git a/dev-python/pendulum/files/pendulum-3.0.0-system-tzdata.patch b/dev-python/pendulum/files/pendulum-3.0.0-system-tzdata.patch new file mode 100644 index 000000000000..c99bbb3ca9ea --- /dev/null +++ b/dev-python/pendulum/files/pendulum-3.0.0-system-tzdata.patch @@ -0,0 +1,50 @@ +From 0143f10dfcc94f5cba1a83912e055026a0282c19 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Fri, 2 Feb 2024 17:48:55 +0100 +Subject: [PATCH] Fix `pendulum.tz.timezones()` to use system tzdata + +Fix the `pendulum.tz.available_timezones()` to use +`available_timezones()` function instead of iterating over the files +in `tzdata` package. This is more in line with PEP 615, as the system +timezone functions will operate on system-provided tzdata when +available, and use the `tzdata` package only if it's not available. +Therefore, the previous code would yield a potentially different list +of timezones than the system actually provides. + +Furthermore, Gentoo provides a dummy `tzdata` package that does not +provide any data, since Python always uses system tzdata. This change +is necessary to make pendulum work again on Gentoo. + +Fixes #769 +--- + src/pendulum/tz/__init__.py | 10 ++-------- + 1 file changed, 2 insertions(+), 8 deletions(-) + +diff --git a/src/pendulum/tz/__init__.py b/src/pendulum/tz/__init__.py +index 36c2c692..8dc64705 100644 +--- a/src/pendulum/tz/__init__.py ++++ b/src/pendulum/tz/__init__.py +@@ -9,7 +9,7 @@ + from pendulum.tz.timezone import UTC + from pendulum.tz.timezone import FixedTimezone + from pendulum.tz.timezone import Timezone +-from pendulum.utils._compat import resources ++from pendulum.utils._zoneinfo import available_timezones + + + PRE_TRANSITION = "pre" +@@ -22,13 +22,7 @@ + + + def timezones() -> tuple[str, ...]: +- global _timezones +- +- if _timezones is None: +- with cast(Path, resources.files("tzdata").joinpath("zones")).open() as f: +- _timezones = tuple(tz.strip() for tz in f.readlines()) +- +- return _timezones ++ return available_timezones() + + + def fixed_timezone(offset: int) -> FixedTimezone: diff --git a/dev-python/pendulum/pendulum-3.0.0.ebuild b/dev-python/pendulum/pendulum-3.0.0-r1.ebuild index dc6bceec790c..2baadad9d93e 100644 --- a/dev-python/pendulum/pendulum-3.0.0.ebuild +++ b/dev-python/pendulum/pendulum-3.0.0-r1.ebuild @@ -1,11 +1,11 @@ -# Copyright 2022-2023 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=maturin -PYTHON_COMPAT=( pypy3 python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..12} ) CRATES=" autocfg@1.1.0 @@ -84,3 +84,10 @@ BDEPEND=" " distutils_enable_tests pytest + +PATCHES=( + # https://github.com/sdispater/pendulum/pull/801 + "${FILESDIR}/${P}-system-tzdata.patch" +) + +QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/pendulum/_pendulum.*.so" diff --git a/dev-python/pypy/Manifest b/dev-python/pypy/Manifest index 49eeccee9e31..05cbdf581de9 100644 --- a/dev-python/pypy/Manifest +++ b/dev-python/pypy/Manifest @@ -3,5 +3,5 @@ DIST pypy2.7-gentoo-patches-7.3.15.tar.xz 5324 BLAKE2B 395b1292b59cc9b2147fd4887 DIST pypy2.7-v7.3.14-src.tar.bz2 19910947 BLAKE2B 3d03b16b4e6344b8590aaf1815202782bb355ab21422c5ea5b40cd84f36fa2ff37b2493313a3faf242039b9b91e3c8ea8fe1237a487a0dac44e4c27bf29f5f85 SHA512 e806aedc1625c1601fa623c3b03881f820d37455c5432bef345f85ef0300247f7725efe3bf470fe533aa422dbceaadca636d0c4bf74c65e1e04c0f82380e53f0 DIST pypy2.7-v7.3.15-src.tar.bz2 19834343 BLAKE2B 4e1145cac007223de0616029dfe763a8d2b3e25a6d867c98da0e8e0431d775c6aa7e50834c761e19f96b96309dbb415a39d7811c68b1b3a26c16cd222911205d SHA512 40448c7c94878bcb88402de8719a4a6a4ffe3f68d7e70500f04fe77a460b1605c83dace360988d2dae70fa2c9bb31a20c22003f70a3a2fde988f6d60507edefe EBUILD pypy-7.3.14.ebuild 7044 BLAKE2B ed398d0f40847340bcf899672fca6b28d5a747d50d674f41a5dddc3e91e1ff5ba794d81d5a78c09f560ff09a6ae2f89a95e9ffbae5bf9746e30f2760996719cc SHA512 91f9e097a8395337f5e676df144d99c1aabd6887eac9abf1e072bcd5aed6f4de148da972e1d3ebd30aaeed3213b5d0d22fa51f00154e1c2ce4b07fe8251e356e -EBUILD pypy-7.3.15.ebuild 7135 BLAKE2B 56bb977f353a6d869d9fe4d70c47d3c57a6377577bfe899948aa9ca184122e4518ae2d51cc12f4f1fd454ec8e119c73da248f8cf4ec99121c8addf8c48465020 SHA512 a990eebd0fe30035e99d00805961f6564cf2dd346e63906815e9e3d4206308ce6a6555f2d255931369bd38ffc0d4debcfbd7be878ded97829352cd25a029edc8 +EBUILD pypy-7.3.15.ebuild 7118 BLAKE2B 8ed45ba0650c6d65b82638fcc3cc7bbf8f9c54786aa018aeab4e77afc4c3d7c4e2d3c537458235b3d1847138aa5d1b8a5cf0283811ec62a5a7a8f3c0e0185e5a SHA512 9b9e1f604941eb5e44b977a93b7f78b846c3e7a350e31de6e96be3fdd0bfd760f41a2dfa85ac99a88f9d28d0dfedd58ec21cc15354c31136f15e5de31092ca4a MISC metadata.xml 622 BLAKE2B 91a78c7c4050edc5e4f42da93c5233fbaeff11133708650ed5c29c1e44eb4b038679f4ab3f87f38f5e61eb89107def4bde09cd5d73e3dd1638b0e9565febde97 SHA512 75bddcaf5fe5c33523a78b5bd9b66a8d97b61d50f11ca8765cf7ecf4e962e88586476d1fdb8b7d33e9562a5cfd4b3fc446ccf07f62d25fe38f04c58485c8654c diff --git a/dev-python/pypy/pypy-7.3.15.ebuild b/dev-python/pypy/pypy-7.3.15.ebuild index 6e2429669fac..1f54095e77c1 100644 --- a/dev-python/pypy/pypy-7.3.15.ebuild +++ b/dev-python/pypy/pypy-7.3.15.ebuild @@ -26,7 +26,7 @@ LICENSE="MIT" SLOT="0/73" KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" IUSE="bzip2 full-stdlib gdbm +jit ncurses sqlite tk" -RESTRICT="!full-stdlib? ( test )" +RESTRICT="test" RDEPEND=" || ( @@ -99,7 +99,7 @@ src_compile() { done # Verify that CFFI module list is up-to-date - local expected_cksum=2d3acf18 + local expected_cksum=-7df4eab0 local local_cksum=$( ../pypy-c - <<-EOF import binascii |