diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-08-08 07:03:59 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-08-08 07:03:59 +0000 |
| commit | b187a1e269af258d23150c81fec2b8a9b166868c (patch) | |
| tree | 316404c4eaa90c8e5c7caa7f9f264a91333ad853 /dev-python | |
| parent | cb592d529338c3f249db15ab2dd00031a4bd073e (diff) | |
| download | baldeagleos-repo-b187a1e269af258d23150c81fec2b8a9b166868c.tar.gz baldeagleos-repo-b187a1e269af258d23150c81fec2b8a9b166868c.tar.xz baldeagleos-repo-b187a1e269af258d23150c81fec2b8a9b166868c.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
28 files changed, 690 insertions, 91 deletions
diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index bb00c67a4828..77906bfbb350 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -4,3 +4,4 @@ DIST boto3-1.40.1.gh.tar.gz 978197 BLAKE2B c93f3550d41c13292dd8f4dcaab9d896faca1 DIST boto3-1.40.2.gh.tar.gz 978635 BLAKE2B 0bdcea2a77084d40591ed7974145491dda55b2cf6d3979d6df951992161356e35ad51e92cf74a02609c0f0892ed546df541e3dd1fb867140c0f0e0c8c6e6182f SHA512 9f238ceafa569a2607fb72bd3c4d05c83493b81b1ed36b76136efa6df464e67e90643082307f026d72d6f9a78ddb4486a01859609b980e7c6a22da2b7b0e1465 DIST boto3-1.40.3.gh.tar.gz 979059 BLAKE2B 3c357e5b59dfa3444d7d737b34a482d8e15e36ff98dad1d24ea95412474bf9765958bb7e7726c6b83a10147ac8e8c1bc9d8fada6e8211c9c0d6efa1c0bc48d7d SHA512 562ee9f1c0ddb0f5f076fab448efe0cdc24354bdea5b0ca8600e657d449df442dd477215ad47c6d17a40c0ad4b149adab17fe02ef483a709e04e30062cb24a9b DIST boto3-1.40.4.gh.tar.gz 979905 BLAKE2B 944fd1cef82e2674f43ddc34820b8848ef391d465f1e5f3b961c86cab16d249f5accd861f3c62f24fa036850d288d0b30804e9ad86dfa093427435922220df34 SHA512 555ac28647ce76a94878df446fed5058ba3984cee9e27eb50167ea75e01a041452741db6870f259732b580a8d8abd011ff5ca1d3a42339843ee403569c88f8ea +DIST boto3-1.40.5.gh.tar.gz 980864 BLAKE2B c9f322d3b37b5e0cac5ccb28a300faee477cad5504c9be0e0686c95bdea318721a2815cf58a53bcecbae8c64250cacd8d49108bfb290ed1ac0381a70a1ac44d3 SHA512 0137e7af642512918fe518b544b41784f34f799c7bd0c6469b76c6064d36f40448b20f3e4411a5b83f3353acf7f07a56f14401c7719b5e0d7340bc40d479ff02 diff --git a/dev-python/boto3/boto3-1.40.5.ebuild b/dev-python/boto3/boto3-1.40.5.ebuild new file mode 100644 index 000000000000..bd6e26787db4 --- /dev/null +++ b/dev-python/boto3/boto3-1.40.5.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..14} ) + +inherit distutils-r1 + +DESCRIPTION="The AWS SDK for Python" +HOMEPAGE=" + https://github.com/boto/boto3/ + https://pypi.org/project/boto3/ +" +SRC_URI=" + https://github.com/boto/boto3/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/botocore-${PV}[${PYTHON_USEDEP}] + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] + >=dev-python/s3transfer-0.13.0[${PYTHON_USEDEP}] +" + +EPYTEST_PLUGINS=() +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_prepare_all() { + # don't lock versions to narrow ranges + sed -e '/botocore/ d' \ + -e '/jmespath/ d' \ + -e '/s3transfer/ d' \ + -i setup.py || die + + # do not rely on bundled deps in botocore (sic!) + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_python_prepare_all +} + +python_test() { + epytest tests/{functional,unit} +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index 4a48271ca2e3..6235e923b009 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -4,3 +4,4 @@ DIST botocore-1.40.1.gh.tar.gz 15055179 BLAKE2B 0fd7e4f74e51fe45284fe550bb853964 DIST botocore-1.40.2.gh.tar.gz 15059931 BLAKE2B f05f8d9dc04e8a7c04010711dd3864addccf1369ed44b40c35f6b814639ae9c6d7dcb55944f6df29dacd7f15949276d08f499ad079cf63506388d22edbbe4c9d SHA512 e7c816c47e240e208e90d7e7a4523d32c2db97a60c7412e8a07b02b35eea5a4fe102e584ba45b10b39d277728cecaec5ce2bb19b4cfdb880b396aeb2d81e1e34 DIST botocore-1.40.3.gh.tar.gz 15089274 BLAKE2B ec281c7a1fd99d904666d42bc2a357a97ded61808967af2d89bc97d47f14efba077f39011f7a5125ded3b498fb924c2909d68e6035d9ec4394e2f0da409788f2 SHA512 4fc67b660527bf0a83ade85db963f3f744130ca8e4e84a33c75e9b9acbb5190ec0d4e14f0cd50d4646a2035b67ef0e7bd030563cb796ed2ba89783a3743c072f DIST botocore-1.40.4.gh.tar.gz 15090499 BLAKE2B 6afbc6ee43a90f3364db408cecdb91aa924edde4147cf47f5b332a56136282f802717a54384055e98fdfa60cac23aad90e804b5b9dce4a164ddf526b6353f499 SHA512 01ef86358796f77db76aa8034b4f3d1b52a34b400e1012c73a113ae18af644f6afba2c4caf1f4fc9d6f1725d3b56c58a7c08f263d5f1fd75bcf5214c8ffe85cb +DIST botocore-1.40.5.gh.tar.gz 15091481 BLAKE2B c0ab4c295227805ee84e72e30318b6672970f0ef886b619303d52b87a16f85526d6dc78161b0335b1ec62a1778a73cc35e7b9f1d19a2c468bbcde1715b3610c6 SHA512 d2e1aaf62a34b36174aa80bb281e991e0e1f0dbe61240cc0fb89221756fefae3aa9d4dec1c2e1768d1a4263f56e8a2cc0e0526cde4545fea9562c5b132667bf8 diff --git a/dev-python/botocore/botocore-1.40.5.ebuild b/dev-python/botocore/botocore-1.40.5.ebuild new file mode 100644 index 000000000000..a931fcaefec4 --- /dev/null +++ b/dev-python/botocore/botocore-1.40.5.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..14} ) + +inherit distutils-r1 + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE=" + https://github.com/boto/botocore/ + https://pypi.org/project/botocore/ +" +SRC_URI=" + https://github.com/boto/botocore/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + <dev-python/jmespath-2[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +# unbundled packages +RDEPEND+=" + dev-python/requests[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=() +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # unpin deps + sed -i -e "s:>=.*':':" setup.py || die + + # unbundle deps + rm -r botocore/vendored || die + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # rely on bundled six + tests/functional/test_six_imports.py::test_no_bare_six_imports + tests/functional/test_six_threading.py::test_six_thread_safety + ) + + epytest tests/{functional,unit} +} diff --git a/dev-python/langdetect/Manifest b/dev-python/langdetect/Manifest index d12ab8aeaca8..a11d7c268c91 100644 --- a/dev-python/langdetect/Manifest +++ b/dev-python/langdetect/Manifest @@ -1,3 +1 @@ DIST langdetect-1.0.9.tar.gz 981474 BLAKE2B ea8a9c3f16a2987c080742473bff4f2c1503f53fb3c2b40b0b1d6212bb6133ea22dce7864ffcfb8968c3a46b157d45cb3e2cf6f84bdbed0266cc716a853b032c SHA512 7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db -EBUILD langdetect-1.0.9.ebuild 494 BLAKE2B 9cd8a2a93a8d45bf51fe2324402b175d641762ea591fcb99459427f977a95eccffa6ca4777ca4df39814eea6eac62711567faa654456d32f79023a4685804504 SHA512 d973b85ba1a44389a4275f02a779a93a005f7c2e096467b94b072862e4984d5b42cf33f9821ac68aa5b85b12c98983a90b96049989d8c84497969174b6bb838e -MISC metadata.xml 457 BLAKE2B 630128a3e982b6d60cc7b9f74c79fcb5ee47a71a02c73a50af9da8cedb6fad8e20a7f74b881e5b25c6483b92c9edbd56552cd38b2d9cbfa8b3eb4530facea969 SHA512 674f4f5cd809c6c77bc14e0f5687fa972bef14bdfa0b3343c5d66b7163eef1906eb87d060c8288732f825de71dce291ad0b841a5f2f0dd230f957b5687e45d45 diff --git a/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch b/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch new file mode 100644 index 000000000000..637368d2f237 --- /dev/null +++ b/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch @@ -0,0 +1,13 @@ +Fix "Package 'langdetect.profiles' is absent from the `packages` configuration." + +--- a/setup.py ++++ b/setup.py +@@ -18,7 +18,7 @@ setup( + author_email='michal.danilak@gmail.com', + url='https://github.com/Mimino666/langdetect', + keywords='language detection library', +- packages=['langdetect', 'langdetect.utils', 'langdetect.tests'], ++ packages=['langdetect', 'langdetect.utils', 'langdetect.tests', 'langdetect.profiles'], + include_package_data=True, + install_requires=['six'], + license='MIT', diff --git a/dev-python/langdetect/langdetect-1.0.9.ebuild b/dev-python/langdetect/langdetect-1.0.9.ebuild index 56733bbffc48..99577c43fc3e 100644 --- a/dev-python/langdetect/langdetect-1.0.9.ebuild +++ b/dev-python/langdetect/langdetect-1.0.9.ebuild @@ -1,9 +1,9 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 pypi @@ -19,4 +19,6 @@ KEYWORDS="~amd64" RDEPEND="dev-python/six[${PYTHON_USEDEP}]" +PATCHES=( "${FILESDIR}/${P}-explicit-config.patch" ) + distutils_enable_tests unittest diff --git a/dev-python/langdetect/metadata.xml b/dev-python/langdetect/metadata.xml index 020e07f2a3dd..c0f74ac187e2 100644 --- a/dev-python/langdetect/metadata.xml +++ b/dev-python/langdetect/metadata.xml @@ -2,11 +2,9 @@ <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>marcin.deranek@slonko.net</email> - <name>Marcin Deranek</name> + <email>pastalian46@gmail.com</email> + <name>Takuya Wakazono</name> </maintainer> - <upstream> - <bugs-to>https://github.com/Mimino666/langdetect/issues</bugs-to> - </upstream> - <origin>slonko-overlay</origin> + + <origin>gentoo-guru-overlay</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/nitrokey/Manifest b/dev-python/nitrokey/Manifest index 5c18935b7e7b..85e46440f805 100644 --- a/dev-python/nitrokey/Manifest +++ b/dev-python/nitrokey/Manifest @@ -1,2 +1 @@ -DIST nitrokey-0.2.4.gh.tar.gz 1228955 BLAKE2B 3284bd8bd52d075445e544099d70080e25c429485fc0e0a3ce7adc7ea4dfadc2de74422720cdc59939818eedbd4336f05ea398c49216daf465b4474856e9629e SHA512 b66dac46c6fc400a4d3bff0d2aa45bcda364d092797b70c1e273413600080e4dbb74634d0bf3886fe9717c2b1419ac9e5b8852147c9fa29c64eb826f37bfde7e DIST nitrokey-0.3.2.gh.tar.gz 1234369 BLAKE2B f4024eacc4974710a6754e2091835b0d7b533d1ce44ee08d9d0287a2fc794d8c0feb8f5a5f99152c553546f740d47bbcdf11e19b4a28b88e2c13a8384de17fd4 SHA512 f49788388dda6a9f06e09fca7b68b34dfb70693e323982db92fc96a8775c67d49447cabd57d77cf2fc9075eeb5901d8260c608b5b2b3a222f9b06605d074932f diff --git a/dev-python/nitrokey/nitrokey-0.2.4.ebuild b/dev-python/nitrokey/nitrokey-0.2.4.ebuild deleted file mode 100644 index 4fbca861e1c0..000000000000 --- a/dev-python/nitrokey/nitrokey-0.2.4.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 - -DESCRIPTION="Python SDK for Nitrokey devices" -HOMEPAGE="https://github.com/Nitrokey/nitrokey-sdk-py https://pypi.org/project/nitrokey/" -SRC_URI="https://github.com/Nitrokey/nitrokey-sdk-py/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" -S="${WORKDIR}/nitrokey-sdk-py-${PV}" -LICENSE="Apache-2.0 MIT" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - >=dev-python/crcmod-1.7[${PYTHON_USEDEP}] - >=dev-python/cryptography-41[${PYTHON_USEDEP}] - >=dev-python/fido2-1.1.2:=[${PYTHON_USEDEP}] - >=dev-python/hidapi-0.14[${PYTHON_USEDEP}] - >=dev-python/protobuf-5.26:=[${PYTHON_USEDEP}] - >=dev-python/pyserial-3.5[${PYTHON_USEDEP}] - >=dev-python/requests-2[${PYTHON_USEDEP}] - >=dev-python/semver-3[${PYTHON_USEDEP}] - >=dev-python/tlv8-0.10[${PYTHON_USEDEP}] - >=dev-python/types-protobuf-5.26[${PYTHON_USEDEP}] - >=dev-python/types-requests-2.32[${PYTHON_USEDEP}] - >=dev-python/typing-extensions-4[${PYTHON_USEDEP}] -" - -distutils_enable_sphinx docs -distutils_enable_tests pytest diff --git a/dev-python/pillow-heif/Manifest b/dev-python/pillow-heif/Manifest index 845eeeed5b48..cf1b77dc9f3b 100644 --- a/dev-python/pillow-heif/Manifest +++ b/dev-python/pillow-heif/Manifest @@ -1,2 +1,2 @@ -DIST pillow_heif-0.22.0.tar.gz 18551571 BLAKE2B 60edcd7f1e6427651f85a2d8604b2a478646ba90cc1aeb09b768b7cf94b333d14e0d0d118d26d7ef68e6a79873d2d18f7f85ad0ae02ae81b8298e6c758ae01d0 SHA512 072de5e3afbfb373e36b51898f67e12d1abcd9a391e33b2dafe19372bb0f3ffca20ab1a7f7f8dcd0dc163a7c8aee27040613deb5d2adba0fd3b6c774cbff8c85 DIST pillow_heif-1.0.0.tar.gz 18270881 BLAKE2B 7d0e1add32a5e851c8d6eafe2270e505bd1bebcb08336db28f8230c95987c38a5b86e6c83ef6c963ca141b81364db3a21ca17fb9aac05b41db60262cb0bc3f9a SHA512 92f4b629e77501b73acbbd6a810179dd9526f08a44e98a00be4c47401db04b2d654f849142282dcdb91319bb5bc150fa68a83b56e29f8613e1de29215b312819 +DIST pillow_heif-1.1.0.tar.gz 18271020 BLAKE2B 15f151625c1f253a44c451bd24da0f643353b6881cebbb3823e8682c5b518abf846c6850bc50462cbfe1e9e5afa1f69e1f5223e0f494cb92644b38cb9c39e7ba SHA512 50c576f52a16c96dd812718a397d75f0c564d009cbaa6abe499b43d3e70834212f1295e411c6e6babbfb526997c5963b1fc022f0829fa2b8298ae3871f130474 diff --git a/dev-python/pillow-heif/pillow-heif-0.22.0.ebuild b/dev-python/pillow-heif/pillow-heif-1.1.0.ebuild index fcdac6383881..6fe12603b995 100644 --- a/dev-python/pillow-heif/pillow-heif-0.22.0.ebuild +++ b/dev-python/pillow-heif/pillow-heif-1.1.0.ebuild @@ -19,29 +19,20 @@ SLOT="0" KEYWORDS="~amd64" RDEPEND=" - !test? ( - dev-python/pillow[${PYTHON_USEDEP}] - >=media-libs/libheif-1.17.6:= - ) - test? ( - dev-python/pillow[jpeg,lcms,webp,zlib,${PYTHON_USEDEP}] - >=media-libs/libheif-1.17.6:=[x265] - ) + dev-python/pillow[${PYTHON_USEDEP}] + >=media-libs/libheif-1.19.5:= " BDEPEND=" test? ( dev-python/defusedxml[${PYTHON_USEDEP}] dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[jpeg,lcms,webp,zlib,${PYTHON_USEDEP}] + >=media-libs/libheif-1.19.5:=[x265] media-libs/opencv[png,python,${PYTHON_USEDEP}] ) " PATCHES=( "${FILESDIR}/${PN}-0.21.0-respect-cflags.patch" ) -EPYTEST_DESELECT=( - # only works with libeif-1.19.5 - # https://github.com/bigcat88/pillow_heif/pull/312/commits/d740dcce7d967d025c4100611cc7a4632aa3fc3a - "tests/read_test.py::test_heif_read_images" -) - +EPYTEST_PLUGINS=() distutils_enable_tests pytest diff --git a/dev-python/pyfakefs/pyfakefs-5.9.1.ebuild b/dev-python/pyfakefs/pyfakefs-5.9.1.ebuild index d40a848d4357..b54a6a05533a 100644 --- a/dev-python/pyfakefs/pyfakefs-5.9.1.ebuild +++ b/dev-python/pyfakefs/pyfakefs-5.9.1.ebuild @@ -28,6 +28,8 @@ python_test() { local EPYTEST_DESELECT=( # requires *.dist-info/RECORD file that we're stripping pyfakefs/tests/fake_filesystem_test.py::RealFileSystemAccessTest::test_add_package_metadata + # wants dev-python/openpyxl + pyfakefs/tests/patched_packages_test.py::TestPatchedPackages::test_read_excel ) local EPYTEST_IGNORE=( # test for regression with opentimelineio package diff --git a/dev-python/pyfakefs/pyfakefs-5.9.2.ebuild b/dev-python/pyfakefs/pyfakefs-5.9.2.ebuild index cb2af549a025..d9374aa09c61 100644 --- a/dev-python/pyfakefs/pyfakefs-5.9.2.ebuild +++ b/dev-python/pyfakefs/pyfakefs-5.9.2.ebuild @@ -29,6 +29,8 @@ python_test() { local EPYTEST_DESELECT=( # requires *.dist-info/RECORD file that we're stripping pyfakefs/tests/fake_filesystem_test.py::RealFileSystemAccessTest::test_add_package_metadata + # wants dev-python/openpyxl + pyfakefs/tests/patched_packages_test.py::TestPatchedPackages::test_read_excel ) local EPYTEST_IGNORE=( # test for regression with opentimelineio package diff --git a/dev-python/pyvis/Manifest b/dev-python/pyvis/Manifest new file mode 100644 index 000000000000..c473ebfc8c30 --- /dev/null +++ b/dev-python/pyvis/Manifest @@ -0,0 +1 @@ +DIST pyvis-0.3.1.gh.tar.gz 103923114 BLAKE2B ce4a571875b11f6f06e5e3d7ab6c29962654825216b37490e74479d57df8c6fc380c83a6dfd5eb810ef0798262f04c185dec51cdc868b4fb5123b7de2c7c1049 SHA512 8200e0c04566be1e7541e45ce1a604d7f044f53b9637d87279742aa1947c3a0482b12c73f2ba759c47521011969b5278576b73829ad0d91a5b3b0fb7ff20492e diff --git a/dev-python/pyvis/metadata.xml b/dev-python/pyvis/metadata.xml new file mode 100644 index 000000000000..270e7c6f7b3f --- /dev/null +++ b/dev-python/pyvis/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>arnauxabia@gmail.com</email> + <name>Arnau Camprubí</name> + </maintainer> + <longdescription lang="en"> + A python library for quick generation of visual network graphs with minimal code, designed as a wrapper around the popular Javascript visJS library. + </longdescription> + + <origin>gentoo-guru-overlay</origin> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/pyvis/pyvis-0.3.1.ebuild b/dev-python/pyvis/pyvis-0.3.1.ebuild new file mode 100644 index 000000000000..743449806125 --- /dev/null +++ b/dev-python/pyvis/pyvis-0.3.1.ebuild @@ -0,0 +1,27 @@ +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python package for creating and visualizing interactive network graphs" +HOMEPAGE=" + https://github.com/WestHealth/pyvis + https://pypi.org/project/pyvis/ + https://pyvis.readthedocs.io/ +" +SRC_URI="https://github.com/WestHealth/pyvis/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/jinja2-2.10[${PYTHON_USEDEP}] + >=dev-python/networkx-1.11[${PYTHON_USEDEP}] + >=dev-python/ipython-5.3.0[${PYTHON_USEDEP}] + >=dev-python/pandas-0.23.4[${PYTHON_USEDEP}] + >=dev-python/jsonpickle-1.4.1[${PYTHON_USEDEP}] + >=dev-python/numpy-1.19.5[${PYTHON_USEDEP}] +" diff --git a/dev-python/redis/Manifest b/dev-python/redis/Manifest index 7f99323700e3..7b1385653d7f 100644 --- a/dev-python/redis/Manifest +++ b/dev-python/redis/Manifest @@ -1,2 +1,3 @@ DIST redis-py-6.2.0.gh.tar.gz 4865662 BLAKE2B c341983e7eaa2cff959170bd970a596f4585a169158cc526de2117791a0bec78e1eef633fce02fe5d130e6a73fe76c1396b3e8e2e5f9037013ed526614144406 SHA512 d7f170021026bc7377b46cb9dce4ef3d9307ed9bddeed554ab64a08b2d1f1dd66f7ae7a31e51704176dab1b52367e94ac1596c1c1d125c9bab60675ed2f4d9f8 DIST redis-py-6.3.0.gh.tar.gz 4878636 BLAKE2B e6eb22f563c197bb30538636aa0aff3cb5b1921805f9d7312214cbf06673e9eca6bef2d6dad805ed9382ac72922f78a47aa3fe476aa468d259b1abf0278bb9e0 SHA512 066d68e04477885d078ff825d33ca2f6a9d87ea5e7b80d76153edc47908b8216abab18f905b1e10bff9efd3f4f4d3c3905c372e411328da069a36712ab5b4215 +DIST redis-py-6.4.0.gh.tar.gz 4878820 BLAKE2B 672421ec98cec3c908f3980fb995433e2e52137d9e6786b43fe7d6412884e6774d234698cac96f9a96a6176e14c55cc2742b3697b70c1d9a308a8a6ee0e5b8ce SHA512 94df8fb65e991d98be6e776b8c889d73615f5b1ab8727a9b5f6982f50ef441bc2c3aff0db3383cd8001df2fd525f98513046f7a1ff7f067fc16c479aecf507ae diff --git a/dev-python/redis/redis-6.4.0.ebuild b/dev-python/redis/redis-6.4.0.ebuild new file mode 100644 index 000000000000..a3d89451285b --- /dev/null +++ b/dev-python/redis/redis-6.4.0.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 + +MY_P=redis-py-${PV} +DESCRIPTION="Python client for Redis key-value store" +HOMEPAGE=" + https://github.com/redis/redis-py/ + https://pypi.org/project/redis/ +" +SRC_URI=" + https://github.com/redis/redis-py/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" + +BDEPEND=" + test? ( + dev-db/redis + dev-python/numpy[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=( pytest-{asyncio,timeout} ) +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # Flaky test + tests/test_pubsub.py::TestPubSubDeadlock::test_pubsub_deadlock + # require extra redis modules that apparently aren't packaged + # on Gentoo + tests/{,test_asyncio/}test_bloom.py + tests/{,test_asyncio/}test_graph.py + tests/{,test_asyncio/}test_json.py + tests/{,test_asyncio/}test_timeseries.py + # apparently available only in "Redis Stack 7.2 RC3 or later" + tests/test_commands.py::TestRedisCommands::test_tfunction_load_delete + tests/test_commands.py::TestRedisCommands::test_tfunction_list + tests/test_commands.py::TestRedisCommands::test_tfcall + # TODO + tests/test_commands.py::TestRedisCommands::test_lolwut + tests/test_commands.py::TestRedisCommands::test_module + tests/test_commands.py::TestRedisCommands::test_module_loadex + tests/test_commands.py::TestRedisCommands::test_zrank_withscore + tests/test_commands.py::TestRedisCommands::test_zrevrank_withscore + tests/test_commands.py::TestRedisCommands::test_xinfo_consumers + tests/test_asyncio/test_commands.py::TestRedisCommands::test_zrank_withscore + tests/test_asyncio/test_commands.py::TestRedisCommands::test_zrevrank_withscore + tests/test_asyncio/test_commands.py::TestRedisCommands::test_xinfo_consumers + tests/test_asyncio/test_pubsub.py::TestPubSubAutoReconnect::test_reconnect_socket_error[pool-hiredis-listen] + # requires sentinel? + tests/{,test_asyncio/}test_sentinel.py + ) + local EPYTEST_IGNORE=( + # fails over missing certs, we don't do cluster anyway + tests/test_asyncio/test_cluster.py + # require redis_entraid + tests/test_asyncio/test_credentials.py + tests/test_credentials.py + ) + + # TODO: try to run more servers? + epytest -m "not redismod and not onlycluster and not replica and not ssl" +} + +src_test() { + local redis_pid="${T}"/redis.pid + local redis_port=6379 + + if has_version ">=dev-db/redis-7"; then + local extra_conf=" + enable-debug-command yes + enable-module-command yes + " + fi + + # Spawn Redis itself for testing purposes + einfo "Spawning Redis" + einfo "NOTE: Port ${redis_port} must be free" + "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server" + daemonize yes + pidfile ${redis_pid} + port ${redis_port} + bind 127.0.0.1 ::1 + ${extra_conf} + EOF + + # Run the tests + distutils-r1_src_test + + # Clean up afterwards + kill "$(<"${redis_pid}")" || die +} diff --git a/dev-python/tulir-telethon/Manifest b/dev-python/tulir-telethon/Manifest index f93a6b4a666f..6c9fbf6ff42a 100644 --- a/dev-python/tulir-telethon/Manifest +++ b/dev-python/tulir-telethon/Manifest @@ -1,2 +1,2 @@ -DIST tulir-telethon-1.35.0a1.tar.gz 590359 BLAKE2B e145d6c89f7c465c308994c3646fcdd2e99941c37b3ba0be170f8784b0d8e18b5b513fad9b52e8d706532e359649d3368759f6d4676438c200882902a8a5be83 SHA512 17199aea16ede2051583cac857bac65b23301273f64e157c29acca142c7fe4bb9d3ea8d147c121a095b7a30c0bb92eab83aee3946093168ca5096fa84c9d4167 DIST tulir-telethon-1.37.0_alpha1.gh.tar.gz 504857 BLAKE2B ce9bedc0ef7c6b1673ce62aa9f298c92d11aba5d0ea59eb47ab48b0529e9e8e60c9b86c0bdea2dfc9052a0458c7d8129d7a8f1f75e6bf16df45381177b04b4f8 SHA512 db704622d58677c4b7470850ad37129c227487caa3cf34d60a5fa81f91306a46f943bcecbbe8ca045c7f47c780b917ada3e9a1860aa82c99751a131fc847b15a +DIST tulir-telethon-1.99.0_alpha6.gh.tar.gz 513983 BLAKE2B b3b23b5f0a67c9428791b9d48f3fe31d26d1ac57dab3cca421cb99d41d2ffaf26b966f534142f5be70ff9019e46c9150eb133ee97ce87542227754d7007f886b SHA512 4ee9fb57ddd55559353e05ba55f6ba613ed7c36d329611a9b3c7d4a51e21a2a2ac99c257ee9045574bb33e8e9f0411da3b67ab6a25323f22c55809fa73e15b07 diff --git a/dev-python/tulir-telethon/tulir-telethon-1.35.0_alpha1.ebuild b/dev-python/tulir-telethon/tulir-telethon-1.35.0_alpha1.ebuild deleted file mode 100644 index cf4b33305cc1..000000000000 --- a/dev-python/tulir-telethon/tulir-telethon-1.35.0_alpha1.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2022-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYPI_NO_NORMALIZE=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 pypi - -MY_PV="${PV/_alph/}" -DESCRIPTION="Pure Python 3 MTProto API Telegram client library, for bots too!" -HOMEPAGE="https://github.com/tulir/Telethon/" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - dev-python/cryptg[${PYTHON_USEDEP}] - dev-python/hachoir[${PYTHON_USEDEP}] - dev-python/pillow[${PYTHON_USEDEP}] - dev-python/pyaes[${PYTHON_USEDEP}] - dev-python/pysocks[${PYTHON_USEDEP}] - dev-python/python-socks[${PYTHON_USEDEP}] - dev-python/rsa[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND}" diff --git a/dev-python/tulir-telethon/tulir-telethon-1.99.0_alpha6.ebuild b/dev-python/tulir-telethon/tulir-telethon-1.99.0_alpha6.ebuild new file mode 100644 index 000000000000..7837a20956f9 --- /dev/null +++ b/dev-python/tulir-telethon/tulir-telethon-1.99.0_alpha6.ebuild @@ -0,0 +1,46 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYPI_NO_NORMALIZE=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 pypi + +MY_PN="Telethon" +MY_PV="${PV/_alph/}" +DESCRIPTION="Full-featured Telegram client library for Python 3" +HOMEPAGE=" + https://pypi.org/project/tulir-telethon/ + https://github.com/tulir/Telethon/ +" +SRC_URI="https://github.com/tulir/${MY_PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}/${MY_PN}-${MY_PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/cryptg[${PYTHON_USEDEP}] + dev-python/hachoir[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pyaes[${PYTHON_USEDEP}] + dev-python/pysocks[${PYTHON_USEDEP}] + dev-python/python-socks[${PYTHON_USEDEP}] + dev-python/rsa[${PYTHON_USEDEP}] +" + +EPYTEST_PLUGINS=( pytest-asyncio ) +EPYTEST_DESELECT=( + # incompatible with recent pytest-asyncio changes + tests/telethon/test_helpers.py::TestSyncifyAsyncContext +) + +distutils_enable_tests pytest + +python_test() { + epytest tests/telethon +} diff --git a/dev-python/uv-build/Manifest b/dev-python/uv-build/Manifest index a94be95c78a0..2646992516a8 100644 --- a/dev-python/uv-build/Manifest +++ b/dev-python/uv-build/Manifest @@ -3,3 +3,4 @@ DIST uv_build-0.7.22.tar.gz 314318 BLAKE2B e8118eda79bd6bea375a2b19d87a0d9c2da8e DIST uv_build-0.8.2.tar.gz 317577 BLAKE2B 0bf4d94fcb8052fa5fc71970cdda92438491bc4f3a0723b1f4565eb7f416058d253b14542adb4ea1883e56cb3c1fcf899840bb8406e133749ad894a181d5c8d7 SHA512 14272a8bf350542d5aaeaaf32542bf70b45724bda3a57eb4d701c8f3c0648244c683f3ea6d011920c5c02d1880e92787ce0758055b78eab2b3e61b20e03eea9c DIST uv_build-0.8.4.tar.gz 318914 BLAKE2B 303fb5d95d7e62269eba53ca41d7e3ae32df84e49bcf3d13cca58e21a73696964f06484d0aabc874bb66e3da5a91efae16d620732fd026ba36a43fc24fcfbe9a SHA512 875de875a2c1f73d4d4d53f1844ce11dbfde69dca552da3fabb071689309d01f4759cdb3ca71142dfdf791be5e1ada0de9a0326ad2107acd93483fa25eb518b4 DIST uv_build-0.8.5.tar.gz 318967 BLAKE2B a09040001b1c777022fce38a5d28a584bad3dfa60627107f6054d779012b06a611eb11e903beef9112f636de4b238a1b29f5aa38ec477af6f91e1e957f5584cc SHA512 3bc3de1d240d78d5034c97801bcb6696d3ade9fb1a3cfe838a2ed66e7225ea72fa61ff82fdee66b213c7e5f63b0ee6ec2e04820102f3b50c3292107a643a3749 +DIST uv_build-0.8.6.tar.gz 318772 BLAKE2B faf4f36b32cf308d3c70d52b84bd135d108db4018bc4c7eadf193448e422fe8b0deb1cf68f7264413152697708f9a15748a017d0ece151c19c1677916b3727b9 SHA512 da83c3ba7f2daa1c39a8bac5b18635eff4afc93460ea23b770518ebaf44bef573654e272c117e257f4126124c71a5b661f2751ff36be792c03ee28f257d1eddc diff --git a/dev-python/uv-build/uv-build-0.8.6.ebuild b/dev-python/uv-build/uv-build-0.8.6.ebuild new file mode 100644 index 000000000000..6156796bc3d2 --- /dev/null +++ b/dev-python/uv-build/uv-build-0.8.6.ebuild @@ -0,0 +1,99 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Maturin compiles uv-build executable for every impl, we do not want +# that, so we use another backend. And since we use another backend, +# why not dogfood it in the first place? +DISTUTILS_USE_PEP517=standalone +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="PEP517 uv build backend" +HOMEPAGE=" + https://github.com/astral-sh/uv/ + https://pypi.org/project/uv-build/ +" + +LICENSE="|| ( Apache-2.0 MIT )" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/uv-${PV} +" +BDEPEND=" + test? ( + app-arch/unzip + dev-python/build[${PYTHON_USEDEP}] + ) +" + +src_prepare() { + distutils-r1_src_prepare + + # use the executable from dev-python/uv instead of building + # a largely overlapping uv-build executable (at least for now) + sed -i -e '/USE_UV_EXECUTABLE/s:False:True:' python/uv_build/__init__.py || die + + # replace the build-system section + sed -i -e '/\[build-system\]/,$d' pyproject.toml || die + cat >> pyproject.toml <<-EOF || die + [build-system] + requires = ["uv_build<9999"] + build-backend = "uv_build" + backend-path = ["src"] + EOF + + # rename to make uv-build find it + mv python src || die +} + +python_test() { + "${EPYTHON}" -m build -n || die "Self-build failed with ${EPYTHON}" + + local zip_result=$( + unzip -t "dist/uv_build-${PV}-py3-none-any.whl" || die + ) + local zip_expected="\ +Archive: dist/uv_build-${PV}-py3-none-any.whl + testing: uv_build/ OK + testing: uv_build/__init__.py OK + testing: uv_build/__main__.py OK + testing: uv_build/py.typed OK + testing: uv_build-${PV}.dist-info/ OK + testing: uv_build-${PV}.dist-info/WHEEL OK + testing: uv_build-${PV}.dist-info/METADATA OK + testing: uv_build-${PV}.dist-info/RECORD OK +No errors detected in compressed data of dist/uv_build-${PV}-py3-none-any.whl.\ +" + if [[ ${zip_result} != ${zip_expected} ]]; then + eerror ".zip result:\n${zip_result}" + eerror ".zip expected:\n${zip_expected}" + die ".whl result mismatch" + fi + + local tar_result=$( + tar -tf "dist/uv_build-${PV}.tar.gz" || die + ) + local tar_expected="\ +uv_build-${PV}/PKG-INFO +uv_build-${PV}/ +uv_build-${PV}/README.md +uv_build-${PV}/pyproject.toml +uv_build-${PV}/src +uv_build-${PV}/src/uv_build +uv_build-${PV}/src/uv_build/__init__.py +uv_build-${PV}/src/uv_build/__main__.py +uv_build-${PV}/src/uv_build/py.typed\ +" + if [[ ${tar_result} != ${tar_expected} ]]; then + eerror ".tar.gz result:\n${tar_result}" + eerror ".tar.gz expected:\n${tar_expected}" + die ".tar.gz result mismatch" + fi +} diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest index 73a05818e206..ebc1c4b61e78 100644 --- a/dev-python/uv/Manifest +++ b/dev-python/uv/Manifest @@ -1,5 +1,6 @@ DIST pubgrub-06ec5a5f59ffaeb6cf5079c6cb184467da06c9db.gh.tar.gz 99881 BLAKE2B 5fcc2d1a06eb44351773081de4f616c93301eb2fe71b0c6f7b95779ec4bd9bb6cccc702a87a6399b0674711302a19de3a96fa31044660430fd74ff549000ad25 SHA512 3f0b18aecbc73fee91fc7de9f10d240ddc06c836fa2f116c1f007dd7818d099e6aea1852ca0b8d1a26ac19aac896535dba1a6298851a65515b553810c6245784 DIST reqwest-middleware-ad8b9d332d1773fde8b4cd008486de5973e0a3f8.gh.tar.gz 41975 BLAKE2B db42a68b8f0d592edc297462c19a34caa068464b9a5f307e8e1c1fdacde95cd08c5af0f73fa55ed62217dee63940a1d02a4322c5edb2c2c8a568a7e04efd80e6 SHA512 2dad83835c87cdd79e2a08c19b5024b3fdf30d1d8cd14e480e434612e856ecc20a5404881ff81d5793d3e9d5808ee3d59ce920312a86a100535009da43d7d46b +DIST rs-async-zip-285e48742b74ab109887d62e1ae79e7c15fd4878.gh.tar.gz 37003 BLAKE2B c4aed18d82641ced2771ad8b8e800c45b1ded279e8ba1874ec9766907d042ae13b460beac739ced6e31c03a647e4238af96fb41e8c0dff4c5d4dd7f59c0ebbff SHA512 d6dd699f43ca6e23a4c8abb8673b37d3983081a8c78545492ea3c1d0b35e3a491277c341df6dd64fb7efaec3b23eb479dede99e9b41016b5504d1a6dc9fbc617 DIST rs-async-zip-c909fda63fcafe4af496a07bfda28a5aae97e58d.gh.tar.gz 51763 BLAKE2B 59d053bc6692014d884a9247dea1b57a8789469ba2abbcc92ec21bb0022cbd74874afc463082156ab697aa6c80635019857a5d7e2dc150274e8b04d720518c36 SHA512 3a309566f4925b02496fcf19bc2865968edf6fb65082ca4079d2cee79e6b0353a1910c079f2afe656da0d0f6ddde5102052a221ea35a7dabc6d690a11218b20a DIST tl-6e25b2ee2513d75385101a8ff9f591ef51f314ec.gh.tar.gz 37106 BLAKE2B c30d1c33f6f52e2bc83823eb6319f8a3e462b7c7408fb6a08f995747857ef234f81db4135a04f9d183095fe473a4087f8f0cb89d8f87ef4400285d2ce034ec22 SHA512 4abbc4240ed129c92da8d616e27a6df0f24cdc85a0803acfdae588ca91f9e5b8d482e3ac88b2e657ff68917b1b43cef1e7ef3c887f624659b231fa5a13fcae68 DIST uv-0.7.19-crates.tar.xz 58207040 BLAKE2B 0e8761c020d5931f3ed134482fac5130b27e5e8f4a713faef225264f8f4d4a734fa6ce4a1ba97c771890ebf71549c7f6e1fe2353c6e763a60081393135091049 SHA512 1264bf6604f41902367e570615e5663850c3264753f100e3dee92be7bb83e3f9a4455727dbfdaa09ec736570d99ddf342bffed14e1ae65ddc4e362a9217d28c5 @@ -12,3 +13,5 @@ DIST uv-0.8.4-crates.tar.xz 46195956 BLAKE2B c3b086c5a369a96dffbcb74f127f2a26f42 DIST uv-0.8.4.gh.tar.gz 4223170 BLAKE2B 19875bf1def508c904f7ef73f59ef9ee1f9dc8cb927e0a312d5107035f7dd6bfd6bc1fc4ac0ae40719bc91541532783adedfaa5643dae7a17a17972a0e39479d SHA512 4a7fe390452f86f5ecbcc3270eb384c7a69c2db33a6993d1dbace8730be9a347fc71696c5d40d259e80f0f49f4661f90bbbe02cbed42d86421d2cfaf64de937e DIST uv-0.8.5-crates.tar.xz 46204000 BLAKE2B caeb9358b1731fb9b06753541256e9d8c70a7e762388e9250ed3bfbedf7acbc77f1a173c323083a5d3a21afa5803d8c9c8476eb12eeee6ab72ed5853117e09fe SHA512 779efef1a0643e1779e4ae34e3f4a95fe73fd2322872f1c0cb97c41f5d5d0f559677c1d144159611dd8ca007aea9218524daa99a9c8ad1485b6e883fb16be793 DIST uv-0.8.5.gh.tar.gz 4236752 BLAKE2B 53da673797d909722b352e13a38594f3f86cb306ea7eefdda2785c3cb4db60aa0d6ce94968cccba337a034f0bc51d9f50561379007755404bedc45d4e9b6bf7b SHA512 a9f383f8b1474450a295699688aeb1c97969b80750d53913312bc67a5f4e92072f29c9148b4c8217e11f62cf386b0c623cddea62f1681f049edbd4a66ae119fd +DIST uv-0.8.6-crates.tar.xz 46208952 BLAKE2B f9557a45fbfaa9d6006f935629130960b5d414cd185d7fbdb1415e7f3875568d07ade946a0b606712e9e2e06e7964bb0fb8318e02e78609899a852ed073b87a6 SHA512 c79fa70a6a670dc2d80efbf0b51942806b2b16ab7b4c63983ab634453ab32142322302bd68ab80f5bcfee08138bca8d04a7d152c76ca5d94bfc40255cab8477b +DIST uv-0.8.6.gh.tar.gz 4255911 BLAKE2B 198ed83cb487f25a35957959bca32f98b8f5343712a7a9bbf3f817f189f1ec9c7903fa2e64ec65c9b3e18a469506c942ebb0ca50b39a353dc7e82228386fb69c SHA512 d164488e967364d254bab989933a5faf27c52c91da1bdeb6f3419fce335dfac5d4ea6cd717cac6b05fee9f85605cf21930c3d37119c49a98cb13c53d51ea996d diff --git a/dev-python/uv/uv-0.8.6.ebuild b/dev-python/uv/uv-0.8.6.ebuild new file mode 100644 index 000000000000..7c54a2fe66b8 --- /dev/null +++ b/dev-python/uv/uv-0.8.6.ebuild @@ -0,0 +1,184 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" +" + +declare -A GIT_CRATES=( + [async_zip]='https://github.com/astral-sh/rs-async-zip;285e48742b74ab109887d62e1ae79e7c15fd4878;rs-async-zip-%commit%' + [pubgrub]='https://github.com/astral-sh/pubgrub;06ec5a5f59ffaeb6cf5079c6cb184467da06c9db;pubgrub-%commit%' + [reqwest-middleware]='https://github.com/astral-sh/reqwest-middleware;ad8b9d332d1773fde8b4cd008486de5973e0a3f8;reqwest-middleware-%commit%/reqwest-middleware' + [reqwest-retry]='https://github.com/astral-sh/reqwest-middleware;ad8b9d332d1773fde8b4cd008486de5973e0a3f8;reqwest-middleware-%commit%/reqwest-retry' + [tl]='https://github.com/astral-sh/tl;6e25b2ee2513d75385101a8ff9f591ef51f314ec;tl-%commit%' + [version-ranges]='https://github.com/astral-sh/pubgrub;06ec5a5f59ffaeb6cf5079c6cb184467da06c9db;pubgrub-%commit%/version-ranges' +) + +RUST_MIN_VER="1.85.0" + +inherit cargo check-reqs + +CRATE_PV=${PV} +DESCRIPTION="A Python package installer and resolver, written in Rust" +HOMEPAGE=" + https://github.com/astral-sh/uv/ + https://pypi.org/project/uv/ +" +# pypi sdist misses scripts/, needed for tests +SRC_URI=" + https://github.com/astral-sh/uv/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + ${CARGO_CRATE_URIS} +" +if [[ ${PKGBUMPING} != ${PVR} ]]; then + SRC_URI+=" + https://github.com/gentoo-crate-dist/uv/releases/download/${CRATE_PV}/uv-${CRATE_PV}-crates.tar.xz + " +fi + +# most of the code +LICENSE="|| ( Apache-2.0 MIT )" +# crates/pep508-rs is || ( Apache-2.0 BSD-2 ) which is covered below +# Dependent crate licenses +LICENSE+=" + 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD + CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016 + ZLIB +" +# ring crate +LICENSE+=" openssl" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +IUSE="test" +RESTRICT="test" +PROPERTIES="test_network" + +DEPEND=" + app-arch/bzip2:= + app-arch/xz-utils:= + app-arch/zstd:= +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + test? ( + dev-lang/python:3.9 + dev-lang/python:3.10 + dev-lang/python:3.11 + dev-lang/python:3.12 + dev-lang/python:3.13 + !!~dev-python/uv-0.5.0 + ) +" + +QA_FLAGS_IGNORED="usr/bin/.*" + +check_space() { + local CHECKREQS_DISK_BUILD=3G + use debug && CHECKREQS_DISK_BUILD=9G + check-reqs_pkg_setup +} + +pkg_pretend() { + check_space +} + +pkg_setup() { + check_space + rust_pkg_setup +} + +src_prepare() { + default + + # replace upstream crate substitution with our crate substitution, sigh + local pkg + for pkg in reqwest-middleware reqwest-retry; do + local dep=$(grep "^${pkg}" "${ECARGO_HOME}"/config.toml || die) + sed -i -e "/\[patch\.crates-io\]/,\$s;^${pkg}.*$;${dep};" Cargo.toml || die + done + + # force thin lto, makes build much faster and less memory hungry + # (i.e. makes it possible to actually build uv on 32-bit PPC) + sed -i -e '/lto/s:fat:thin:' Cargo.toml || die + + # enable system libraries where supported + export ZSTD_SYS_USE_PKG_CONFIG=1 + # TODO: unbundle libz-ng-sys, tikv-jemalloc-sys? + + # remove unbundled sources, just in case + find "${ECARGO_VENDOR}"/{bzip2,lzma,zstd}-sys-*/ -name '*.c' -delete || die + + # bzip2-sys requires a pkg-config file + # https://github.com/alexcrichton/bzip2-rs/issues/104 + mkdir "${T}/pkg-config" || die + export PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}} + cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die + Name: bzip2 + Version: 9999 + Description: + Libs: -lbz2 + EOF +} + +src_configure() { + local myfeatures=( + git + pypi + python + ) + + cargo_src_configure --no-default-features +} + +src_compile() { + cd crates/uv || die + cargo_src_compile +} + +src_test() { + # work around https://github.com/astral-sh/uv/issues/4376 + local -x PATH=${BROOT}/usr/lib/python-exec/python3.12:${PATH} + local -x COLUMNS=100 + local -x PYTHONDONTWRITEBYTECODE= + # fix tests failing because of our config + local -x XDG_CONFIG_DIRS=${T} + + cd crates/uv || die + cargo_src_test --no-fail-fast +} + +src_install() { + cd crates/uv || die + cargo_src_install + + insinto /etc/xdg/uv + newins - uv.toml <<-EOF || die + # These defaults match Fedora, see: + # https://src.fedoraproject.org/rpms/uv/pull-request/18 + + # By default ("automatic"), uv downloads missing Python versions + # automatically and keeps them in the user's home directory. + # Disable that to make downloading opt-in, and especially + # to avoid unnecessarily fetching custom Python when the distro + # package would be preferable. Python builds can still be + # downloaded manually via "uv python install". + # + # https://docs.astral.sh/uv/reference/settings/#python-downloads + python-downloads = "manual" + + # By default ("managed"), uv always prefers self-installed + # Python versions over the system Python, independently + # of versions. Since we generally expect users to use that + # to install old Python versions not in ::gentoo anymore, + # this effectively means that uv would end up preferring very + # old Python versions over the newer ones that are provided + # by the system. Default to using the system versions to avoid + # this counter-intuitive behavior. + # + # https://docs.astral.sh/uv/reference/settings/#python-preference + python-preference = "system" + EOF +} diff --git a/dev-python/xattr/Manifest b/dev-python/xattr/Manifest index 212548630685..fb9905a3d0a7 100644 --- a/dev-python/xattr/Manifest +++ b/dev-python/xattr/Manifest @@ -1 +1,2 @@ DIST xattr-1.1.0.tar.gz 16634 BLAKE2B e920afbdc7c154e4558debb08f3b3230295854c799dcc3a28eaddb6d5a9a011bcab460c3d9a3f944cc43705796fb1fb5c57bb3b15653a128b91be17decc7b86c SHA512 b23eb96be5d6810ff2251418a2c2687d15cc98ceed422abe4a8bce01c77dda2969525f07feaf468bc43b60b6df6d573f15787b6221ed5816a772abd93ac47f8f +DIST xattr-1.2.0.tar.gz 17293 BLAKE2B 5a13a9fa6d0ec1f4378d37b444d2168c615ce33299bde12f7d0715837c172c6809b552043836d80ac0d7a88502e98e3fb36ca462f63def59b2913d7537cd993f SHA512 6c6cafccd05eba8abbfb1c62d5234ca04c52b608670ece395f62e70a3c8e7cfcc3f5e12a25ad888e92fb6aad2c717686c9f14448523cf4180c3effeb1556db72 diff --git a/dev-python/xattr/xattr-1.2.0.ebuild b/dev-python/xattr/xattr-1.2.0.ebuild new file mode 100644 index 000000000000..118f550aa7d0 --- /dev/null +++ b/dev-python/xattr/xattr-1.2.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 +DISTUTILS_EXT=1 +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python wrapper for extended filesystem attributes" +HOMEPAGE=" + https://pypi.org/project/xattr/ + https://github.com/xattr/xattr +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + $(python_gen_cond_dep '!dev-python/pyxattr[${PYTHON_USEDEP}]') +" +BDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/cffi-1.16.0[${PYTHON_USEDEP}] + ' 'python*') + test? ( sys-apps/attr ) +" + +distutils_enable_tests pytest + +python_test() { + cd "${T}" || die + epytest "${S}"/tests +} + +check_xattr() { + touch tt || die + + setfattr -n "user.testAttr" -v "attribute value" tt || return 1 + getfattr -n "user.testAttr" tt >/dev/null || return 1 + + rm -f tt + return 0 +} + +src_test() { + if ! check_xattr; then + ewarn "Extended attributes not supported on your filesystem, skipping tests" + return 0 + fi + + distutils-r1_src_test +} |
