diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-02-10 18:29:33 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-02-10 18:29:33 +0000 |
| commit | 6c244326e747a9140da30e3660976b2925dd1e60 (patch) | |
| tree | a27d76d0f0335485a24623a085db0f42cfda734d /dev-python | |
| parent | 73be496af59cba8128ca2187ce8d3a32678ae7bf (diff) | |
| download | baldeagleos-repo-6c244326e747a9140da30e3660976b2925dd1e60.tar.gz baldeagleos-repo-6c244326e747a9140da30e3660976b2925dd1e60.tar.xz baldeagleos-repo-6c244326e747a9140da30e3660976b2925dd1e60.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
53 files changed, 785 insertions, 571 deletions
diff --git a/dev-python/aiohttp/aiohttp-3.9.3.ebuild b/dev-python/aiohttp/aiohttp-3.9.3.ebuild index dd8aa361c3de..a9fccc81a9f4 100644 --- a/dev-python/aiohttp/aiohttp-3.9.3.ebuild +++ b/dev-python/aiohttp/aiohttp-3.9.3.ebuild @@ -40,8 +40,8 @@ BDEPEND=" dev-python/pytest-forked[${PYTHON_USEDEP}] dev-python/pytest-mock[${PYTHON_USEDEP}] dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/re-assert[${PYTHON_USEDEP}] $(python_gen_cond_dep ' - dev-python/re-assert[${PYTHON_USEDEP}] dev-python/time-machine[${PYTHON_USEDEP}] ' 'python3*') test-rust? ( @@ -107,14 +107,6 @@ python_test() { # on PyPy3 but the test suite needs an explicit switch, # sigh local -x AIOHTTP_NO_EXTENSIONS=1 - - EPYTEST_IGNORE+=( - # Skip tests requiring dev-python/re-assert -> dev-python/regex - tests/test_streams.py - tests/test_urldispatch.py - tests/test_client_session.py - tests/test_web_response.py - ) ;; esac diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index 1524379ec30c..f43f6385309c 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -5,3 +5,4 @@ DIST boto3-1.34.35.gh.tar.gz 771771 BLAKE2B 2126de54d6d7fe94bab546d1f4be4b99f6ec DIST boto3-1.34.36.gh.tar.gz 772161 BLAKE2B f5ca23c960e6dda208a17b3c73b169354ecc759508b7aa28ef20150dce540ed813e426854a5c97a30233cc26c4a3d5ad87024f2ab4cace345a0b675ca0958df5 SHA512 2c33262aa6513e1f7640738d1b03010f5c5e8f7fceb18e5e055e5bd34845bcd475e80f8e5736e96136b4d176165f2d3ebd9a4c79a9f14ec12c46e3b81c71c465 DIST boto3-1.34.37.gh.tar.gz 772370 BLAKE2B 67b75d72d31d2520109e2d021b20c9d0aa91a503b73ce4167656204a53ab02a40b0b96ae7df7cb05254dc709aeaa971a3b002c44920ffe1beaf09dcdd9fe254c SHA512 52c60da9aeb431a365cb722ebe45db485fb8d36514fa057d40b35fae21abc24c07a4935b1a9133b037def2126f2ea7b71ed536f6eb8ff1c6fc1590d186dc2d71 DIST boto3-1.34.38.gh.tar.gz 772844 BLAKE2B 59db9187488ecbf263ca6920bcf9524b1e2bed88e1dbed994984a38e449d7e4970ccf861eeec84c9dc1e044bae0b3fea2f5cd2065675b2d7e1df7ceb8a124cf1 SHA512 702e4dfbb6088c32158cf938b9db9081f6a31c91ac37b3b336ae3c0b02ee697f0c58dd971ada2b3bf5de702e91dd015983222c1a1879e0dfdce7780afd4fe052 +DIST boto3-1.34.39.gh.tar.gz 773491 BLAKE2B 69256649eb3bc5a856adffe4fb1e0e3f1e14e9a8ff557a9c4a4a8009bc0b8483555e9350f98656d3088c271152db199201c2739e4860fbc0c63810e19a13eca4 SHA512 88fb84a97c072f3e1719116d10dae2a8a840f495aa89f42f13fb105209d0d098390cbdbc443811ae78a684735fa571dbe66bf10c0e53718e783a17de36a18197 diff --git a/dev-python/boto3/boto3-1.34.39.ebuild b/dev-python/boto3/boto3-1.34.39.ebuild new file mode 100644 index 000000000000..c6201d2c5818 --- /dev/null +++ b/dev-python/boto3/boto3-1.34.39.ebuild @@ -0,0 +1,58 @@ +# 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_{8,9,10,11,12} ) + +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 ~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.10.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + ) +" + +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() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index 777de142cbe9..ad0069534a37 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -5,3 +5,4 @@ DIST botocore-1.34.35.gh.tar.gz 12683490 BLAKE2B 4cb287495e77de15803b36755962a0e DIST botocore-1.34.36.gh.tar.gz 12688895 BLAKE2B b05dbc906d6f49fe8df7c608cefa85bf08f59f9e086540366b5a46db4baa3edb7bbdb79ecfe3a9e0a8857cd9317f5deb6323b583ad092beadd9b0eb52c8c892f SHA512 6cd8985a729fd36a74ff3211b2021ceef7ea2c9a74ef259117e2df5c2fc97cbdf070539d47224720b33024af92ca9041f979fd7d7e84aba8955e820e22e96e2a DIST botocore-1.34.37.gh.tar.gz 12691397 BLAKE2B ee44e6f4e3728e660dc8299bd14584b06e624c14443701782cb9f296700146dc1d438eee737579ecc1294374599799302373e0d7b668c7b649c76fea5fd3316c SHA512 289f6bf8a622a59ede8bfdac71fd31fea15193790ee0e0f2bd773be68ecec1c9de93325f25bb964d2094fd829c3292930416badb6abf78ad92ccc077fd651a7c DIST botocore-1.34.38.gh.tar.gz 12694520 BLAKE2B ff21e6247fb2cc5f050abc78e45e21523310aadb0fedf9a028f23dcddeb2ed28b2a08e7fb7c817b8c8eb286ec4b6702f1312b5dcc141ffc8043175ebec6c33f5 SHA512 3b2eb3d9b1b48106c0176391cb76ca74b5d546938c61284ae4475cf33d13cfc95bf1f2d3b8c7eb8dc33907e18a351977fe9a6d0cadc9742f49c12a7775570a09 +DIST botocore-1.34.39.gh.tar.gz 12697404 BLAKE2B d8670c591c06cf5b02562adb234225dde1da6a805d40f314ea7e88b8dc532dc9cb3bff80255aff8798137584a8038b3747e5dc428fd0dc20def923c9a9953a5d SHA512 e5091955cbaa838365664458e71e77ecc4649e12995735a367ea007bdf5e10b41e4009afa8c3832f88a6c49888091b7d668834f1e5edbd64298d88c4eb8f3f1c diff --git a/dev-python/botocore/botocore-1.34.39.ebuild b/dev-python/botocore/botocore-1.34.39.ebuild new file mode 100644 index 000000000000..857224b496b7 --- /dev/null +++ b/dev-python/botocore/botocore-1.34.39.ebuild @@ -0,0 +1,67 @@ +# 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_{8,9,10,11,12} ) + +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 ~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_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 + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/clang-python/Manifest b/dev-python/clang-python/Manifest index 5ae0120ba5e2..49ffe8b82468 100644 --- a/dev-python/clang-python/Manifest +++ b/dev-python/clang-python/Manifest @@ -4,9 +4,6 @@ DIST llvm-project-16.0.6.src.tar.xz 118013488 BLAKE2B 95192d39cbd2914e5609db3659 DIST llvm-project-16.0.6.src.tar.xz.sig 566 BLAKE2B 2060cebd5ed57cb8a86a44238c43dfd4b921649298b10c3d19da308374c1e49869174294e29943c2af459fe06428264e26881d6c1288ebbc48686cc2cf467c7a SHA512 ca249262c7102e0889ec1bdc6f71a3a6f0e7e5d5fbab8abcd6fccd2871e7955eff7af5b055a76006097baf0dfaf2f5069eff3035b3107fc552abdb2481b21447 DIST llvm-project-17.0.6.src.tar.xz 127838860 BLAKE2B d6ede1a9fda8756995c3e0654111941649e15794179641806f18919f1dc68c41ca0cabd5693b5096d05dccc3a391cd20d34af1137bf8af92ed3117a1ce84d1b2 SHA512 6d85bf749e0d77553cc215cbfa61cec4ac4f4f652847f56f946b6a892a99a5ea40b6ab8b39a9708a035001f007986941ccf17e4635260a8b0c1fa59e78d41e30 DIST llvm-project-17.0.6.src.tar.xz.sig 438 BLAKE2B 186e75b6a0fbfe1e85408589c149e1800fcc47d685b74e4260018e05cd08bc793d1d1197c9c50e177eea941a3d0c65cb0c583ce6dae449099b920adf8a508ef7 SHA512 f78c55053a6450625f3e95f52c305110b4468a9854fec75831b65b8d6ceee3c9206ab9e63c4b5fda8be9bd344f72cfbdaae0520ed240abd505e08ebeaa25d340 -DIST llvm-project-18.1.0rc1.src.tar.xz 131969632 BLAKE2B 0cc2f3049a89ee07182189a1ff7aec1751bfe6bbaed4887e139854737fe4eb0ec924b37d8d5b01e298d6a4b271735a615283465262345d0a288180edd6276139 SHA512 85afc331c8a023f4d8177cc42143b968b94d6987a7ed38b8be1170c6b4e1ef1a79d2d4e44d5fae98b713959b5d69bd4e44c6ba84355f59e8fe99588cbca03d7a -DIST llvm-project-18.1.0rc1.src.tar.xz.sig 566 BLAKE2B c9fd7e92e0c6bb8291314ed388d518d15b75c5d4e7ba5da461c2176c5519d721c5ae95d8ecf99ce17bdc398cf23f13b540aacab306c2923e4c0ac8a5f059746f SHA512 0bb072ef2d3156241bcb74102c977db73720f38918e1a0b2cbe6191b6884ce5750ed9f5af69575599bad840c0151a04f81ebc5194c4ce258cbd6516d6c26d9cb DIST llvm-project-18.1.0rc2.src.tar.xz 131993176 BLAKE2B 8df1e34a54214975efe1b9a649753a2dc20c04e3c763bd8648000f48dd18f27ccfdc597ff6e68e0f408310493dfa92f48c7eee53376501e8ebc3b7c614809c15 SHA512 b595bb5d029723fee4e8f8edeaddd6fdcd48d668f66f4239e3208fd19d3a3622e8e4f90ae3fa4b1216fca1621d6c6b6ebf4d99dec7febff2457d0ceb79e8617a DIST llvm-project-18.1.0rc2.src.tar.xz.sig 566 BLAKE2B c765549386a92883bd348d9be25a3c92b1e66a1bac71385ef99978ec2af413a7616a2d9699c57554d927f95b80a3584572557d26e3df16b2ff6678359d5fd6b0 SHA512 83bb4c133f34faec8a0109689ed7aa18222c9a803ba8c95c571a18e854726024f106a1c8e3a820020255c426b7fa8bda26789ff1546972e233fbe3e3ab3a8e91 -DIST llvm-project-1f13203029333ac99cc9844b8b6915aae3fc0902.tar.gz 205629630 BLAKE2B cd6c127bc7b63fffc4707863ab8a34e23371ce28878818723ba74d78a1be1b43c2f401fba7de2084f628f9418b7f0e7b9fe9c224b92dc44233cde2f5e3470333 SHA512 0b35754d6e8836267393d0d63effe04e1af5851b217252953ca3a75e7d71e32b1188991d34ff649f8c1cf2a1b49b844ca7e0704597655ffd37d151f4b9a0cf36 DIST llvm-project-78b4e7c5e349d8c101b50affbd260eb109748f8f.tar.gz 207433034 BLAKE2B ab7189fe82b5a9309348b499130295b3057dbb263ad9c60b1748e4ea92be3a85f0160baa1408dde5516650994951d9f948223d2d6260492a07b07dde51a51ff9 SHA512 366ecb02720d2b550ebeca989abf74ca1c93b2585a95fa378f44edc6c3329ee4e1548f5fa2cf7a19e59bc817abe6cc8850841415227380114c59b58867959a5a diff --git a/dev-python/clang-python/clang-python-18.1.0_rc1.ebuild b/dev-python/clang-python/clang-python-18.1.0_rc1.ebuild deleted file mode 100644 index 82c18f7c0f95..000000000000 --- a/dev-python/clang-python/clang-python-18.1.0_rc1.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) -inherit llvm.org python-r1 - -DESCRIPTION="Python bindings for sys-devel/clang" -HOMEPAGE="https://llvm.org/" - -LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" -SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -# The module is opening libclang.so directly, and doing some blasphemy -# on top of it. -DEPEND=" - >=sys-devel/clang-${PV}:* - !sys-devel/llvm:0[clang(-),python(-)] - !sys-devel/clang:0[python(-)] -" -RDEPEND=" - ${DEPEND} - ${PYTHON_DEPS} -" -BDEPEND=" - ${PYTHON_DEPS} - test? ( - sys-devel/clang:${LLVM_MAJOR} - ) -" - -LLVM_COMPONENTS=( clang/bindings/python ) -llvm.org_set_globals - -python_test() { - # tests rely on results from a specific clang version, so override - # the search path - local -x CLANG_LIBRARY_PATH=${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/$(get_libdir) - local -x CLANG_NO_DEFAULT_CONFIG=1 - "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" -} - -src_test() { - python_foreach_impl python_test -} - -src_install() { - python_foreach_impl python_domodule clang -} diff --git a/dev-python/clang-python/clang-python-19.0.0_pre20240127.ebuild b/dev-python/clang-python/clang-python-19.0.0_pre20240127.ebuild deleted file mode 100644 index 82c18f7c0f95..000000000000 --- a/dev-python/clang-python/clang-python-19.0.0_pre20240127.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) -inherit llvm.org python-r1 - -DESCRIPTION="Python bindings for sys-devel/clang" -HOMEPAGE="https://llvm.org/" - -LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" -SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -# The module is opening libclang.so directly, and doing some blasphemy -# on top of it. -DEPEND=" - >=sys-devel/clang-${PV}:* - !sys-devel/llvm:0[clang(-),python(-)] - !sys-devel/clang:0[python(-)] -" -RDEPEND=" - ${DEPEND} - ${PYTHON_DEPS} -" -BDEPEND=" - ${PYTHON_DEPS} - test? ( - sys-devel/clang:${LLVM_MAJOR} - ) -" - -LLVM_COMPONENTS=( clang/bindings/python ) -llvm.org_set_globals - -python_test() { - # tests rely on results from a specific clang version, so override - # the search path - local -x CLANG_LIBRARY_PATH=${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/$(get_libdir) - local -x CLANG_NO_DEFAULT_CONFIG=1 - "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" -} - -src_test() { - python_foreach_impl python_test -} - -src_install() { - python_foreach_impl python_domodule clang -} diff --git a/dev-python/clr-loader/clr-loader-0.2.6.ebuild b/dev-python/clr-loader/clr-loader-0.2.6.ebuild index 74b62cf4a382..876cf3f6813e 100644 --- a/dev-python/clr-loader/clr-loader-0.2.6.ebuild +++ b/dev-python/clr-loader/clr-loader-0.2.6.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -51,19 +51,20 @@ DOTNET_PKG_PROJECTS=( ) EPYTEST_DESELECT=( - # Mono + # Mono only. 'tests/test_common.py::test_mono' 'tests/test_common.py::test_mono_debug' 'tests/test_common.py::test_mono_signal_chaining' 'tests/test_common.py::test_mono_set_dir' - # MS Windows only + # MS Windows only. 'tests/test_common.py::test_netfx' 'tests/test_common.py::test_netfx_chinese_path' 'tests/test_common.py::test_netfx_separate_domain' ) distutils_enable_tests pytest +dotnet-pkg_force-compat pkg_setup() { check-reqs_pkg_setup @@ -71,8 +72,6 @@ pkg_setup() { } src_prepare() { - distutils-r1_src_prepare - # To be compatible with .NET >= 6.0. cat <<-EOF > Directory.Build.props || die <Project> @@ -81,17 +80,9 @@ src_prepare() { </PropertyGroup> </Project> EOF + nuget_writeconfig "$(pwd)/" - # Because python scripts perform the build. - cat <<EOF > NuGet.config || die -<?xml version="1.0" encoding="utf-8"?> -<configuration> -<packageSources> -<clear /> -<add key="nuget" value="${NUGET_PACKAGES}" /> -</packageSources> -</configuration> -EOF + distutils-r1_src_prepare } src_configure() { diff --git a/dev-python/dask/Manifest b/dev-python/dask/Manifest index 73700a2519e4..61f8896bce65 100644 --- a/dev-python/dask/Manifest +++ b/dev-python/dask/Manifest @@ -1,2 +1,3 @@ DIST dask-2024.1.0.gh.tar.gz 8975960 BLAKE2B bcc72c1428d0626eb686551c69b0dcbc7b9615524bbcdbc1bb6d5113929f32d53cc7d0952622d352ef7413057b9f90689471b3540b3748beb6cddd0dbbdef2f6 SHA512 a2a436cba1f84d7223ed049c395807f900bc012d7fb8c8ae18c27b15787885e6a6a02cd17da2cc7f765b26469190217e2c8306495fbfc82e3018e1bcee54d24b DIST dask-2024.1.1.gh.tar.gz 9328425 BLAKE2B 6b6208c59e0446816a962a9a3dc6a1754eba589810aacdab0c1ce38edd6d593763d1868578a344babfa74afd390ac1997d2461586b12180679fdc67ae26e0a74 SHA512 a5e424333c5d19f67d73c2b036544ef03122a99c2eb6a52019929f1e7b87297c776cbea713062372cf1685ef3b79d47734d6d0acd2c054ffadcbb3d96fb6deeb +DIST dask-2024.2.0.gh.tar.gz 9335533 BLAKE2B c23bf3da4624b187f30cf0ca5fe885a705e8e4be9b9d919ff491399d1029d43c4343159acf9bd6a61611af7ecacd8c00bd1cb199176b742ad3c556e2a5da65c9 SHA512 8a0b5c17aa34b309aed370852ddfb25cde220de87fe9c1afd8d88f7a4abad9f4523c90424f8a5cc1d7186850f35071ee10e7a33396ca2c4c4be975783cc5fe2e diff --git a/dev-python/dask/dask-2024.2.0.ebuild b/dev-python/dask/dask-2024.2.0.ebuild new file mode 100644 index 000000000000..c0cb053ad044 --- /dev/null +++ b/dev-python/dask/dask-2024.2.0.ebuild @@ -0,0 +1,93 @@ +# 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_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="Task scheduling and blocked algorithms for parallel processing" +HOMEPAGE=" + https://www.dask.org/ + https://github.com/dask/dask/ + https://pypi.org/project/dask/ +" +SRC_URI=" + https://github.com/dask/dask/archive/${PV}.tar.gz -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/click-8.1[${PYTHON_USEDEP}] + >=dev-python/cloudpickle-1.5.0[${PYTHON_USEDEP}] + >=dev-python/fsspec-2021.9.0[${PYTHON_USEDEP}] + >=dev-python/importlib-metadata-4.13.0[${PYTHON_USEDEP}] + >=dev-python/numpy-1.21[${PYTHON_USEDEP}] + >=dev-python/pandas-1.3[${PYTHON_USEDEP}] + >=dev-python/packaging-20.0[${PYTHON_USEDEP}] + >=dev-python/partd-1.2.0[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + >=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}] + >=dev-python/toolz-0.10.0[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/toolz[${PYTHON_USEDEP}] + >=dev-python/versioneer-0.28[${PYTHON_USEDEP}] + test? ( + dev-python/moto[${PYTHON_USEDEP}] + dev-python/numexpr[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # fails with sqlalchemy-2.0, even though we don't use it x_x + sed -i -e '/RemovedIn20Warning/d' pyproject.toml || die + sed -i -e 's:--cov-config=pyproject.toml::' pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # more tests relying on -Werror + "dask/array/tests/test_overlap.py::test_map_overlap_no_depth[None]" + dask/array/tests/test_random.py::test_RandomState_only_funcs + dask/dataframe/tests/test_dataframe.py::test_view + dask/dataframe/tests/test_shuffle.py::test_npartitions_auto_raises_deprecation_warning + # TODO + dask/array/tests/test_reductions.py::test_mean_func_does_not_warn + dask/tests/test_config.py::test__get_paths + dask/array/tests/test_linalg.py::test_solve_assume_a + "dask/dataframe/tests/test_dataframe.py::test_repartition_npartitions[<lambda>0-float-5-1-True]" + "dask/dataframe/tests/test_dataframe.py::test_repartition_npartitions[<lambda>1-float-5-1-True]" + dask/array/tests/test_image.py::test_preprocess + dask/tests/test_system.py::test_cpu_count_cgroups_v2 + # require sqlalchemy<2.0 + dask/dataframe/io/tests/test_sql.py + # crashes + dask/tests/test_base.py::test_tokenize_object_with_recursion_error + # regression with new pandas (?) + dask/dataframe/tests/test_multi.py::test_concat5 + ) + + if ! has_version -b "dev-python/pyarrow[parquet,${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + # fails if pyarrow is installed without USE=parquet + # (optional dep, skipped if it's not installed at all) + dask/dataframe/io/tests/test_parquet.py::test_pyarrow_filter_divisions + ) + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p pytest_rerunfailures -m "not network" +} diff --git a/dev-python/deprecated/deprecated-1.2.14.ebuild b/dev-python/deprecated/deprecated-1.2.14.ebuild index 6285c442e0d2..84860fec9b4d 100644 --- a/dev-python/deprecated/deprecated-1.2.14.ebuild +++ b/dev-python/deprecated/deprecated-1.2.14.ebuild @@ -1,4 +1,4 @@ -# Copyright 2019-2023 Gentoo Authors +# Copyright 2019-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -18,7 +18,7 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86" RDEPEND=" dev-python/wrapt[${PYTHON_USEDEP}] diff --git a/dev-python/iminuit/Manifest b/dev-python/iminuit/Manifest index d045c3a3c116..3655becc0b2f 100644 --- a/dev-python/iminuit/Manifest +++ b/dev-python/iminuit/Manifest @@ -1,2 +1,3 @@ DIST iminuit-2.21.3.tar.gz 437827 BLAKE2B 5196e896769f6312bb6ba9af8d6f03bea6023a9459ccbe8553e4c10ba5dc2ed90e4e4b57bdd104f7b72e7514a50c0d4c717c76adf206d7eaddcd3c4c54c4d210 SHA512 5e48d4451caf56688143fa4590528fb4ed0660e144dbb3d1c409b84f793593478979728b4af9748b7bbdb7063e2ef7e05476a2ecd52af089f351522aadfc9ba4 DIST iminuit-2.25.1.tar.gz 2921727 BLAKE2B db3460ccfa9a0eebf9995758b4ea42eb6e11c09eb3ed9e99aa36ae544c741f07a492ef7228755495229bcf7964932c2667894c2173b5d458833685c2c1ca226c SHA512 a4047f1aaf8e09c0cd531ac10db9a73477cedc2de832e96696e523c8e2319e55925c64996429df15b74b27e72c9c24d8f2b2af3637043967aff377b0a489c003 +DIST iminuit-2.25.2.tar.gz 2929388 BLAKE2B e7e7a8c1d27538a95b527dcd8c01eeefac98914c568dcc58a234e37224cee5234bc107c6774a08f1117e28cf7919147ca832f6f3f150f95eaf0b03c5ce1ea312 SHA512 110eb0920262f9599defb1db984de6266200de5998fa81d2015e81bc1bb3e0b26524a706c060666f1e6248bc95ff17df7453bb53d20f703522b90889bedc1dc4 diff --git a/dev-python/iminuit/iminuit-2.25.2.ebuild b/dev-python/iminuit/iminuit-2.25.2.ebuild new file mode 100644 index 000000000000..93edfe9bfe73 --- /dev/null +++ b/dev-python/iminuit/iminuit-2.25.2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=scikit-build-core +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit cmake distutils-r1 virtualx pypi + +DESCRIPTION="Minuit numerical function minimization in Python" +HOMEPAGE=" + https://github.com/scikit-hep/iminuit/ + https://pypi.org/project/iminuit/ +" + +LICENSE="MIT LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] +" +DEPEND=" + dev-python/pybind11[${PYTHON_USEDEP}] +" +BDEPEND=" + ${BDEPEND} + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/annotated-types[${PYTHON_USEDEP}] + dev-python/ipython[${PYTHON_USEDEP}] + dev-python/ipywidgets[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + local EPYTEST_DESELECT=( + # precision error + tests/test_cost.py::test_Template_with_model_2D + + # TODO + tests/test_describe.py::test_with_pydantic_types + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + # nonfatal implied by virtx + nonfatal epytest || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/ipykernel/ipykernel-6.29.0.ebuild b/dev-python/ipykernel/ipykernel-6.29.0-r1.ebuild index 234a6fb14e87..3fccdc37a8ec 100644 --- a/dev-python/ipykernel/ipykernel-6.29.0.ebuild +++ b/dev-python/ipykernel/ipykernel-6.29.0-r1.ebuild @@ -21,11 +21,6 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc RDEPEND=" >=dev-python/comm-0.1.1[${PYTHON_USEDEP}] - !elibc_Darwin? ( - $(python_gen_cond_dep ' - >=dev-python/debugpy-1.6.5[${PYTHON_USEDEP}] - ' 'python*') - ) >=dev-python/ipython-7.23.1[${PYTHON_USEDEP}] >=dev-python/jupyter-client-8[${PYTHON_USEDEP}] >=dev-python/jupyter-core-4.12[${PYTHON_USEDEP}] @@ -51,6 +46,12 @@ BDEPEND=" distutils_enable_tests pytest +src_prepare() { + # debugpy is actually optional + sed -i -e '/debugpy/d' pyproject.toml || die + distutils-r1_src_prepare +} + python_compile() { distutils-r1_python_compile # Use python3 in kernel.json configuration, bug #784764 diff --git a/dev-python/ipykernel/ipykernel-6.29.2.ebuild b/dev-python/ipykernel/ipykernel-6.29.1-r1.ebuild index 3a4df971118e..38a6d02e62a9 100644 --- a/dev-python/ipykernel/ipykernel-6.29.2.ebuild +++ b/dev-python/ipykernel/ipykernel-6.29.1-r1.ebuild @@ -21,11 +21,6 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 RDEPEND=" >=dev-python/comm-0.1.1[${PYTHON_USEDEP}] - !elibc_Darwin? ( - $(python_gen_cond_dep ' - >=dev-python/debugpy-1.6.5[${PYTHON_USEDEP}] - ' 'python*') - ) >=dev-python/ipython-7.23.1[${PYTHON_USEDEP}] >=dev-python/jupyter-client-8[${PYTHON_USEDEP}] >=dev-python/jupyter-core-4.12[${PYTHON_USEDEP}] @@ -51,6 +46,12 @@ BDEPEND=" distutils_enable_tests pytest +src_prepare() { + # debugpy is actually optional + sed -i -e '/debugpy/d' pyproject.toml || die + distutils-r1_src_prepare +} + python_compile() { distutils-r1_python_compile # Use python3 in kernel.json configuration, bug #784764 diff --git a/dev-python/ipykernel/ipykernel-6.29.1.ebuild b/dev-python/ipykernel/ipykernel-6.29.2-r1.ebuild index 3a4df971118e..38a6d02e62a9 100644 --- a/dev-python/ipykernel/ipykernel-6.29.1.ebuild +++ b/dev-python/ipykernel/ipykernel-6.29.2-r1.ebuild @@ -21,11 +21,6 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 RDEPEND=" >=dev-python/comm-0.1.1[${PYTHON_USEDEP}] - !elibc_Darwin? ( - $(python_gen_cond_dep ' - >=dev-python/debugpy-1.6.5[${PYTHON_USEDEP}] - ' 'python*') - ) >=dev-python/ipython-7.23.1[${PYTHON_USEDEP}] >=dev-python/jupyter-client-8[${PYTHON_USEDEP}] >=dev-python/jupyter-core-4.12[${PYTHON_USEDEP}] @@ -51,6 +46,12 @@ BDEPEND=" distutils_enable_tests pytest +src_prepare() { + # debugpy is actually optional + sed -i -e '/debugpy/d' pyproject.toml || die + distutils-r1_src_prepare +} + python_compile() { distutils-r1_python_compile # Use python3 in kernel.json configuration, bug #784764 diff --git a/dev-python/langdetect/Manifest b/dev-python/langdetect/Manifest index a11d7c268c91..e9da2ac43cac 100644 --- a/dev-python/langdetect/Manifest +++ b/dev-python/langdetect/Manifest @@ -1 +1,3 @@ DIST langdetect-1.0.9.tar.gz 981474 BLAKE2B ea8a9c3f16a2987c080742473bff4f2c1503f53fb3c2b40b0b1d6212bb6133ea22dce7864ffcfb8968c3a46b157d45cb3e2cf6f84bdbed0266cc716a853b032c SHA512 7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db +EBUILD langdetect-1.0.9.ebuild 493 BLAKE2B 0df8bce19bc80f79f8e76bcef5a4c2caf333365fe0cb9a3c076b7858bceded5a3e58921474f866a2709dd657b7ed330c1ec4a7f9d7bab0fcf1bc92d77cabc32d SHA512 ea2a1adcb133ac5fc951ba1aa90ef1ce3dfcc424e59727591763d4875aa044a74188be2d15fd89c6b2e83ed6ea04ec3d9851ed584ae79d2c2c127bde7d994b48 +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 deleted file mode 100644 index 637368d2f237..000000000000 --- a/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch +++ /dev/null @@ -1,13 +0,0 @@ -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 630fe63c6f53..c09b7356f549 100644 --- a/dev-python/langdetect/langdetect-1.0.9.ebuild +++ b/dev-python/langdetect/langdetect-1.0.9.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2024 Gentoo Authors +# Copyright 2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,6 +19,4 @@ 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 736a1167c898..020e07f2a3dd 100644 --- a/dev-python/langdetect/metadata.xml +++ b/dev-python/langdetect/metadata.xml @@ -1,6 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> - - <origin>gentoo-guru-overlay</origin> + <maintainer type="person"> + <email>marcin.deranek@slonko.net</email> + <name>Marcin Deranek</name> + </maintainer> + <upstream> + <bugs-to>https://github.com/Mimino666/langdetect/issues</bugs-to> + </upstream> + <origin>slonko-overlay</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/lit/Manifest b/dev-python/lit/Manifest index 5ae0120ba5e2..49ffe8b82468 100644 --- a/dev-python/lit/Manifest +++ b/dev-python/lit/Manifest @@ -4,9 +4,6 @@ DIST llvm-project-16.0.6.src.tar.xz 118013488 BLAKE2B 95192d39cbd2914e5609db3659 DIST llvm-project-16.0.6.src.tar.xz.sig 566 BLAKE2B 2060cebd5ed57cb8a86a44238c43dfd4b921649298b10c3d19da308374c1e49869174294e29943c2af459fe06428264e26881d6c1288ebbc48686cc2cf467c7a SHA512 ca249262c7102e0889ec1bdc6f71a3a6f0e7e5d5fbab8abcd6fccd2871e7955eff7af5b055a76006097baf0dfaf2f5069eff3035b3107fc552abdb2481b21447 DIST llvm-project-17.0.6.src.tar.xz 127838860 BLAKE2B d6ede1a9fda8756995c3e0654111941649e15794179641806f18919f1dc68c41ca0cabd5693b5096d05dccc3a391cd20d34af1137bf8af92ed3117a1ce84d1b2 SHA512 6d85bf749e0d77553cc215cbfa61cec4ac4f4f652847f56f946b6a892a99a5ea40b6ab8b39a9708a035001f007986941ccf17e4635260a8b0c1fa59e78d41e30 DIST llvm-project-17.0.6.src.tar.xz.sig 438 BLAKE2B 186e75b6a0fbfe1e85408589c149e1800fcc47d685b74e4260018e05cd08bc793d1d1197c9c50e177eea941a3d0c65cb0c583ce6dae449099b920adf8a508ef7 SHA512 f78c55053a6450625f3e95f52c305110b4468a9854fec75831b65b8d6ceee3c9206ab9e63c4b5fda8be9bd344f72cfbdaae0520ed240abd505e08ebeaa25d340 -DIST llvm-project-18.1.0rc1.src.tar.xz 131969632 BLAKE2B 0cc2f3049a89ee07182189a1ff7aec1751bfe6bbaed4887e139854737fe4eb0ec924b37d8d5b01e298d6a4b271735a615283465262345d0a288180edd6276139 SHA512 85afc331c8a023f4d8177cc42143b968b94d6987a7ed38b8be1170c6b4e1ef1a79d2d4e44d5fae98b713959b5d69bd4e44c6ba84355f59e8fe99588cbca03d7a -DIST llvm-project-18.1.0rc1.src.tar.xz.sig 566 BLAKE2B c9fd7e92e0c6bb8291314ed388d518d15b75c5d4e7ba5da461c2176c5519d721c5ae95d8ecf99ce17bdc398cf23f13b540aacab306c2923e4c0ac8a5f059746f SHA512 0bb072ef2d3156241bcb74102c977db73720f38918e1a0b2cbe6191b6884ce5750ed9f5af69575599bad840c0151a04f81ebc5194c4ce258cbd6516d6c26d9cb DIST llvm-project-18.1.0rc2.src.tar.xz 131993176 BLAKE2B 8df1e34a54214975efe1b9a649753a2dc20c04e3c763bd8648000f48dd18f27ccfdc597ff6e68e0f408310493dfa92f48c7eee53376501e8ebc3b7c614809c15 SHA512 b595bb5d029723fee4e8f8edeaddd6fdcd48d668f66f4239e3208fd19d3a3622e8e4f90ae3fa4b1216fca1621d6c6b6ebf4d99dec7febff2457d0ceb79e8617a DIST llvm-project-18.1.0rc2.src.tar.xz.sig 566 BLAKE2B c765549386a92883bd348d9be25a3c92b1e66a1bac71385ef99978ec2af413a7616a2d9699c57554d927f95b80a3584572557d26e3df16b2ff6678359d5fd6b0 SHA512 83bb4c133f34faec8a0109689ed7aa18222c9a803ba8c95c571a18e854726024f106a1c8e3a820020255c426b7fa8bda26789ff1546972e233fbe3e3ab3a8e91 -DIST llvm-project-1f13203029333ac99cc9844b8b6915aae3fc0902.tar.gz 205629630 BLAKE2B cd6c127bc7b63fffc4707863ab8a34e23371ce28878818723ba74d78a1be1b43c2f401fba7de2084f628f9418b7f0e7b9fe9c224b92dc44233cde2f5e3470333 SHA512 0b35754d6e8836267393d0d63effe04e1af5851b217252953ca3a75e7d71e32b1188991d34ff649f8c1cf2a1b49b844ca7e0704597655ffd37d151f4b9a0cf36 DIST llvm-project-78b4e7c5e349d8c101b50affbd260eb109748f8f.tar.gz 207433034 BLAKE2B ab7189fe82b5a9309348b499130295b3057dbb263ad9c60b1748e4ea92be3a85f0160baa1408dde5516650994951d9f948223d2d6260492a07b07dde51a51ff9 SHA512 366ecb02720d2b550ebeca989abf74ca1c93b2585a95fa378f44edc6c3329ee4e1548f5fa2cf7a19e59bc817abe6cc8850841415227380114c59b58867959a5a diff --git a/dev-python/lit/lit-18.1.0_rc1.ebuild b/dev-python/lit/lit-18.1.0_rc1.ebuild deleted file mode 100644 index 5ed5b5bd096e..000000000000 --- a/dev-python/lit/lit-18.1.0_rc1.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# 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_{8,9,10,11,12} ) - -inherit distutils-r1 llvm.org - -DESCRIPTION="A stand-alone install of the LLVM suite testing tool" -HOMEPAGE="https://llvm.org/" - -LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" -SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" - -# Tests require 'FileCheck' and 'not' utilities (from llvm) -BDEPEND=" - test? ( - dev-python/psutil[${PYTHON_USEDEP}] - sys-devel/llvm - ) -" - -LLVM_COMPONENTS=( llvm/utils/lit ) -llvm.org_set_globals - -# TODO: move the manpage generation here (from sys-devel/llvm) - -src_prepare() { - # flaky test - # https://github.com/llvm/llvm-project/issues/72022 - rm tests/progress-bar.py || die - - cd "${WORKDIR}" || die - distutils-r1_src_prepare -} - -python_test() { - local -x LIT_PRESERVES_TMP=1 - local litflags=$(get_lit_flags) - ./lit.py ${litflags//;/ } tests || die -} diff --git a/dev-python/lit/lit-19.0.0_pre20240127.ebuild b/dev-python/lit/lit-19.0.0_pre20240127.ebuild deleted file mode 100644 index 5ed5b5bd096e..000000000000 --- a/dev-python/lit/lit-19.0.0_pre20240127.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# 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_{8,9,10,11,12} ) - -inherit distutils-r1 llvm.org - -DESCRIPTION="A stand-alone install of the LLVM suite testing tool" -HOMEPAGE="https://llvm.org/" - -LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" -SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" - -# Tests require 'FileCheck' and 'not' utilities (from llvm) -BDEPEND=" - test? ( - dev-python/psutil[${PYTHON_USEDEP}] - sys-devel/llvm - ) -" - -LLVM_COMPONENTS=( llvm/utils/lit ) -llvm.org_set_globals - -# TODO: move the manpage generation here (from sys-devel/llvm) - -src_prepare() { - # flaky test - # https://github.com/llvm/llvm-project/issues/72022 - rm tests/progress-bar.py || die - - cd "${WORKDIR}" || die - distutils-r1_src_prepare -} - -python_test() { - local -x LIT_PRESERVES_TMP=1 - local litflags=$(get_lit_flags) - ./lit.py ${litflags//;/ } tests || die -} diff --git a/dev-python/netaddr/Manifest b/dev-python/netaddr/Manifest index 730a4576b6ca..067bd2a445ff 100644 --- a/dev-python/netaddr/Manifest +++ b/dev-python/netaddr/Manifest @@ -1 +1,2 @@ DIST netaddr-0.10.1.tar.gz 2225283 BLAKE2B 1e350909779af0bf48d74834194358386cf4f8e11fa7b03c971b3011bcec437cc39feb72e7e79d55eb330e6ee138d15bb6dba9293667e1adb4ed1c6d42a35d78 SHA512 ca04171d5cbfd569d4f262f4870610edfd98be35899cb70983dbff5f37add963e05987ddbe1ab22d9b615580ac1abe96a8c2903681b18af8c9f2f96899b618ff +DIST netaddr-1.0.0.tar.gz 2233464 BLAKE2B c79e7dafe81219f39d97d1d7e5f320d8082e9a967edb9faf9345aac9f58d9deb37152d4d1583bd869594531c98f27bb4bbd3e439c217152b188b03cb7b82b8d0 SHA512 0eb27a655c03ea2a26ea11b88324f6c1c15b6458abd0ba056a4651038261038c8c852a866b5c45e96a87f107a2b23ec259c868c2122ae450b31b4fff91ea9962 diff --git a/dev-python/netaddr/metadata.xml b/dev-python/netaddr/metadata.xml index b789e13acbb1..337742a2ed4b 100644 --- a/dev-python/netaddr/metadata.xml +++ b/dev-python/netaddr/metadata.xml @@ -10,6 +10,9 @@ <bugs-to>https://github.com/netaddr/netaddr/issues</bugs-to> <doc>https://netaddr.readthedocs.io/</doc> </upstream> + <use> + <flag name="cli">Provide a command-line interface</flag> + </use> <origin>gentoo-staging</origin> <stabilize-allarches/> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/netaddr/netaddr-1.0.0.ebuild b/dev-python/netaddr/netaddr-1.0.0.ebuild new file mode 100644 index 000000000000..7b3ac3f1f2fc --- /dev/null +++ b/dev-python/netaddr/netaddr-1.0.0.ebuild @@ -0,0 +1,37 @@ +# 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_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Network address representation and manipulation library" +HOMEPAGE=" + https://github.com/netaddr/netaddr/ + https://pypi.org/project/netaddr/ + https://netaddr.readthedocs.io/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="cli" + +RDEPEND=" + cli? ( dev-python/ipython[${PYTHON_USEDEP}] ) +" + +distutils_enable_sphinx docs/source \ + dev-python/furo +distutils_enable_tests pytest + +src_prepare() { + if ! use cli; then + sed -i -e '/netaddr\.cli/d' pyproject.toml || die + fi + + distutils-r1_src_prepare +} diff --git a/dev-python/pikepdf/pikepdf-8.11.2.ebuild b/dev-python/pikepdf/pikepdf-8.11.2.ebuild index acdb1e9f21bc..3b68b5d9fc52 100644 --- a/dev-python/pikepdf/pikepdf-8.11.2.ebuild +++ b/dev-python/pikepdf/pikepdf-8.11.2.ebuild @@ -17,7 +17,7 @@ HOMEPAGE=" LICENSE="MPL-2.0" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~s390 sparc x86" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~s390 sparc x86" # Check QPDF_MIN_VERSION in pyproject.toml on bumps, as well as # https://qpdf.readthedocs.io/en/stable/release-notes.html. diff --git a/dev-python/pytest-fixture-config/Manifest b/dev-python/pytest-fixture-config/Manifest deleted file mode 100644 index cd6c26d940aa..000000000000 --- a/dev-python/pytest-fixture-config/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pytest-fixture-config-1.7.0.tar.gz 9884 BLAKE2B d844b07a8b7d59f6761ee71147a0945225a3f30bdd9b0751972bf6149b444ad95c49f3d5001d6414c535c1a230ed1e47ceb90b26c50324ec21165430e633cc21 SHA512 c861bbbb91efff338255734ddb4a8b615880c32a12c981160e9e7575d38adff8c5febad46bb9b4208634e39d4cfa73dec342265ccc1951168c1b12fd334cd746 diff --git a/dev-python/pytest-fixture-config/metadata.xml b/dev-python/pytest-fixture-config/metadata.xml deleted file mode 100644 index cf583d1a0415..000000000000 --- a/dev-python/pytest-fixture-config/metadata.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>python@gentoo.org</email> - <name>Python</name> - </maintainer> - <longdescription> - Simple configuration objects for Py.test fixtures. Allows you to skip - tests when their required config variables aren't set. - </longdescription> - <upstream> - <maintainer> - <email>eeaston@gmail.com</email> - <name>Edward Easton</name> - </maintainer> - </upstream> - <origin>gentoo-staging</origin> - <stabilize-allarches/> -</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/pytest-fixture-config/pytest-fixture-config-1.7.0-r2.ebuild b/dev-python/pytest-fixture-config/pytest-fixture-config-1.7.0-r2.ebuild deleted file mode 100644 index 9513c22071cd..000000000000 --- a/dev-python/pytest-fixture-config/pytest-fixture-config-1.7.0-r2.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# 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_{8,9,10,11,12} pypy3 ) - -inherit distutils-r1 pypi - -DESCRIPTION="Virtualenv fixture for py.test" -HOMEPAGE=" - https://github.com/man-group/pytest-plugins/ - https://pypi.org/project/pytest-fixture-config/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" - -RDEPEND=" - dev-python/pytest[${PYTHON_USEDEP}] -" -BDEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - dev-python/setuptools-git[${PYTHON_USEDEP}] - test? ( - dev-python/six[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest diff --git a/dev-python/pytest-shutil/Manifest b/dev-python/pytest-shutil/Manifest deleted file mode 100644 index f72bfbdf3cc0..000000000000 --- a/dev-python/pytest-shutil/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pytest-shutil-1.7.0.tar.gz 23497 BLAKE2B e13641491fb4bd448973b8004ac9ded2f9b7c412ea93af7f9206e5fc38ea7554073374116eeefc529d2ae35e8a25e678fef5a27089af89026077a72d11d6016d SHA512 3746c08b17834621a7142ed9d5915b5c348c13367f5b423b258d3471bcb9c9e983c61c25ca936f879b8b82f80512512b7f3ade5555c24a790c72b502e3f3d144 diff --git a/dev-python/pytest-shutil/files/pytest-shutil-1.7.0-py312.patch b/dev-python/pytest-shutil/files/pytest-shutil-1.7.0-py312.patch deleted file mode 100644 index 905550622fc1..000000000000 --- a/dev-python/pytest-shutil/files/pytest-shutil-1.7.0-py312.patch +++ /dev/null @@ -1,39 +0,0 @@ -From bbb9e5c7cba84fb4665a521569d1cfcca08ee4e5 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> -Date: Sat, 27 May 2023 18:05:44 +0200 -Subject: [PATCH] pytest-shutil: Replace deprecated imp module - -Replace the use of the deprecated `imp` module with `importlib.util', -as the former has been removed from Python 3.12. ---- - pytest-shutil/pytest_shutil/run.py | 7 +++++-- - 1 file changed, 5 insertions(+), 2 deletions(-) - -diff --git a/pytest-shutil/pytest_shutil/run.py b/pytest-shutil/pytest_shutil/run.py -index 7d46aea..08a6a34 100644 ---- a/pytest_shutil/run.py -+++ b/pytest_shutil/run.py -@@ -3,7 +3,7 @@ - """ - import sys - import os --import imp -+import importlib.util - import logging - from functools import update_wrapper - import inspect -@@ -112,7 +112,10 @@ def run_module_as_main(module, argv=[]): - filename = os.path.splitext(filename)[0] + ".py" - - with patch("sys.argv", new=argv): -- imp.load_source('__main__', os.path.join(where, filename)) -+ spec = importlib.util.spec_from_file_location( -+ "__main__", os.path.join(where, filename)) -+ module = importlib.util.module_from_spec(spec) -+ spec.loader.exec_module(module) - - - def _evaluate_fn_source(src, *args, **kwargs): --- -2.40.1 - diff --git a/dev-python/pytest-shutil/metadata.xml b/dev-python/pytest-shutil/metadata.xml deleted file mode 100644 index 403bc564fee8..000000000000 --- a/dev-python/pytest-shutil/metadata.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>python@gentoo.org</email> - <name>Python</name> - </maintainer> - <longdescription> - This library is a goodie-bag of Unix shell and environment management - tools for automated tests. A summary of the available functions is - below, look at the source for the full listing. - </longdescription> - <upstream> - <maintainer> - <email>eeaston@gmail.com</email> - <name>Edward Easton</name> - </maintainer> - </upstream> - <origin>gentoo-staging</origin> - <stabilize-allarches/> -</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/pytest-shutil/pytest-shutil-1.7.0-r4.ebuild b/dev-python/pytest-shutil/pytest-shutil-1.7.0-r4.ebuild deleted file mode 100644 index 54b546cd90c1..000000000000 --- a/dev-python/pytest-shutil/pytest-shutil-1.7.0-r4.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# 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_{8,9,10,11,12} pypy3 ) - -inherit distutils-r1 pypi - -DESCRIPTION="A goodie-bag of unix shell and environment tools for py.test" -HOMEPAGE=" - https://github.com/man-group/pytest-plugins/ - https://pypi.org/project/pytest-shutil/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" - -RDEPEND=" - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - dev-python/execnet[${PYTHON_USEDEP}] - dev-python/path[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/termcolor[${PYTHON_USEDEP}] -" -BDEPEND=" - ${RDEPEND} - dev-python/setuptools-git[${PYTHON_USEDEP}] -" - -distutils_enable_tests pytest - -PATCHES=( - # https://github.com/man-group/pytest-plugins/pull/219 - "${FILESDIR}"/${P}-py312.patch -) - -EPYTEST_DESELECT=( - # colors no longer happen automagically to non-tty, not important - # https://github.com/man-group/pytest-plugins/pull/217 - tests/unit/test_cmdline.py::test_pretty_formatter -) - -python_prepare_all() { - # remove unnecessary deps - # (contextlib2 is not used in py3) - sed -i -e '/path\.py/d' -e '/contextlib2/d' setup.py || die - - distutils-r1_python_prepare_all -} diff --git a/dev-python/pytest-verbose-parametrize/Manifest b/dev-python/pytest-verbose-parametrize/Manifest deleted file mode 100644 index c5d68a728927..000000000000 --- a/dev-python/pytest-verbose-parametrize/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pytest-verbose-parametrize-1.7.0.tar.gz 12301 BLAKE2B 908d8c9d82861783931dc25c6b522e13f252e4b04e01a2f6a0e646cd63720816242ef143041abf0aa6b67fb574d5f84d05029edd11e589728b0e5b63f92f898e SHA512 ac81cdf002d60b4af916c4beb4c832c9c39dc9dcfa3eea7385b093f9ea18391cbf968a4e908abdb23523a7cb1e294dce2017083414e61eef6762f157319e2cf4 diff --git a/dev-python/pytest-verbose-parametrize/files/pytest-verbose-parametrize-1.7.0_collections-abc.patch b/dev-python/pytest-verbose-parametrize/files/pytest-verbose-parametrize-1.7.0_collections-abc.patch deleted file mode 100644 index f4b0720c3600..000000000000 --- a/dev-python/pytest-verbose-parametrize/files/pytest-verbose-parametrize-1.7.0_collections-abc.patch +++ /dev/null @@ -1,8 +0,0 @@ ---- a/pytest_verbose_parametrize.py -+++ b/pytest_verbose_parametrize.py -@@ -1,4 +1,4 @@ --from collections import Iterable -+from collections.abc import Iterable - from six import string_types, text_type - - diff --git a/dev-python/pytest-verbose-parametrize/metadata.xml b/dev-python/pytest-verbose-parametrize/metadata.xml deleted file mode 100644 index 615915853c8d..000000000000 --- a/dev-python/pytest-verbose-parametrize/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>marecki@gentoo.org</email> - <name>Marek Szuba</name> - </maintainer> - - <origin>gentoo-staging</origin> - <stabilize-allarches/> -</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/pytest-verbose-parametrize/pytest-verbose-parametrize-1.7.0-r1.ebuild b/dev-python/pytest-verbose-parametrize/pytest-verbose-parametrize-1.7.0-r1.ebuild deleted file mode 100644 index 5ac50ca138fe..000000000000 --- a/dev-python/pytest-verbose-parametrize/pytest-verbose-parametrize-1.7.0-r1.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# 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_{8,9,10,11,12} ) - -inherit distutils-r1 pypi - -DESCRIPTION="More descriptive parametrized-test IDs for py.test" -HOMEPAGE="https://github.com/man-group/pytest-plugins https://pypi.org/project/pytest-verbose-parametrize/" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" - -# The test suite is borked, some of the tests are extremely sensitive to Python -# verbosity level whereas others act differently depending on whether the package -# has previously been installed or not. -RESTRICT="test" - -RDEPEND="dev-python/pytest[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}]" -BDEPEND="dev-python/setuptools-git[${PYTHON_USEDEP}] - test? ( - dev-python/coverage[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pytest-virtualenv[${PYTHON_USEDEP}] - )" - -PATCHES=( - "${FILESDIR}"/${PN}-1.7.0_collections-abc.patch -) - -distutils_enable_tests pytest diff --git a/dev-python/pytest-virtualenv/Manifest b/dev-python/pytest-virtualenv/Manifest deleted file mode 100644 index 2d56bfde9fee..000000000000 --- a/dev-python/pytest-virtualenv/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pytest-virtualenv-1.7.0.tar.gz 15767 BLAKE2B 5ee65aff72c50c8facef682827f58a8053d658aa072f3a69d50d13335dda2da37ffc29af009b52a50349647a4a38e149ba1b9847115fc4b4c4f54f063198b14f SHA512 0463ebf44ae18ee50a60e421a22aaaf0e34f827ec8f21c8f0dc79cbdc253748f9d1e5b33e4f418b52f0d8fd45990e162bb6410686ebe9fdc02650c286901d474 diff --git a/dev-python/pytest-virtualenv/metadata.xml b/dev-python/pytest-virtualenv/metadata.xml deleted file mode 100644 index 9461c2596db5..000000000000 --- a/dev-python/pytest-virtualenv/metadata.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>python@gentoo.org</email> - <name>Python</name> - </maintainer> - <longdescription> - Create a Python virtual environment in your test that cleans up on - teardown. The fixture has utility methods to install packages and list - what's installed. - </longdescription> - <upstream> - <maintainer> - <email>eeaston@gmail.com</email> - <name>Edward Easton</name> - </maintainer> - </upstream> - <origin>gentoo-staging</origin> - <stabilize-allarches/> -</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/pytest-virtualenv/pytest-virtualenv-1.7.0-r2.ebuild b/dev-python/pytest-virtualenv/pytest-virtualenv-1.7.0-r2.ebuild deleted file mode 100644 index 3be5d798aa9a..000000000000 --- a/dev-python/pytest-virtualenv/pytest-virtualenv-1.7.0-r2.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# 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_{8,9,10,11,12} pypy3 ) - -inherit distutils-r1 pypi - -DESCRIPTION="Virtualenv fixture for py.test" -HOMEPAGE=" - https://github.com/man-group/pytest-plugins/ - https://pypi.org/project/pytest-virtualenv/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" - -RDEPEND=" - dev-python/pytest-fixture-config[${PYTHON_USEDEP}] - dev-python/pytest-shutil[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/setuptools[${PYTHON_USEDEP}] - dev-python/virtualenv[${PYTHON_USEDEP}] -" -BDEPEND=" - dev-python/setuptools-git[${PYTHON_USEDEP}] - test? ( - dev-python/mock[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -python_test() { - local EPYTEST_DESELECT=() - if [[ ${EPYTHON} == python3.12 ]]; then - EPYTEST_DESELECT+=( - # assumes setuptools is installed inside virtualenv - # https://github.com/man-group/pytest-plugins/issues/220 - tests/integration/test_tmpvirtualenv.py::test_installed_packages - ) - fi - - epytest -} diff --git a/dev-python/python-distutils-extra/python-distutils-extra-2.47.ebuild b/dev-python/python-distutils-extra/python-distutils-extra-2.47.ebuild index cbd4e27f28c2..a1d8c89bde0b 100644 --- a/dev-python/python-distutils-extra/python-distutils-extra-2.47.ebuild +++ b/dev-python/python-distutils-extra/python-distutils-extra-2.47.ebuild @@ -19,7 +19,7 @@ SRC_URI=" LICENSE="GPL-2+" SLOT="0" -KEYWORDS="amd64 arm arm64 ~ia64 ~loong ppc ~ppc64 ~riscv x86" +KEYWORDS="amd64 arm arm64 ~ia64 ~loong ppc ppc64 ~riscv x86" IUSE="test" RESTRICT="!test? ( test )" diff --git a/dev-python/python-multipart/Manifest b/dev-python/python-multipart/Manifest index 8aafaa70b284..69dc5d61eb40 100644 --- a/dev-python/python-multipart/Manifest +++ b/dev-python/python-multipart/Manifest @@ -1,2 +1,3 @@ DIST python-multipart-0.0.6.gh.tar.gz 48648 BLAKE2B 4995136e6fcda8df952a6ee868238a507f3d5ea8f8454d4c4933e89b4897440f9186bd820af427f81b3240ca3610aa8300a944e4a0436291cc414f5e97daca30 SHA512 fb996725266996aefb5284b4815ecd8d0005344359f29780f0c2817125f625f3910be14d7d937e975b3ca9fb27a2a483401ab342a0c861df0e1112d447b1f083 DIST python-multipart-0.0.7.gh.tar.gz 48727 BLAKE2B 723910a769c7a574480a8e60be23a5e279daa487972b78d72db74ea8a2969b60711eb48bdc6a8a0e27baf8cfb3cec388eef95dafe69b44012b1ee9221d5c88ce SHA512 fc4429a50550087f4c05e4a35fdf3f3a0a6e00a8401d6478481f54427af88a9b0da237785142edc044f0802c40ffa54b6a6b70949ad4fbe12de5a06ce5a724de +DIST python-multipart-0.0.8.gh.tar.gz 48838 BLAKE2B 62c400c5c2024cc7706af418ee2957ab2f05a68a53a72f457c2da75d12233667461d7d7d1d1620a2e59e1d42927c6fde7b90617fe8a08d9341147f15a5230e4e SHA512 9ec89558faf6efd282699a6ef8e6d1fe540ca6694be7c547369840ec28e0bcccf094b3ef05155e08577a7884047f99aed78051a2ef05926432f8306570009d69 diff --git a/dev-python/python-multipart/python-multipart-0.0.8.ebuild b/dev-python/python-multipart/python-multipart-0.0.8.ebuild new file mode 100644 index 000000000000..e7ffa87173b8 --- /dev/null +++ b/dev-python/python-multipart/python-multipart-0.0.8.ebuild @@ -0,0 +1,31 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A streaming multipart parser for Python" +HOMEPAGE=" + https://github.com/Kludex/python-multipart/ + https://pypi.org/project/python-multipart/ +" +SRC_URI=" + https://github.com/Kludex/python-multipart/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +BDEPEND=" + test? ( + dev-python/pyyaml[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/pythonnet/pythonnet-3.0.3.ebuild b/dev-python/pythonnet/pythonnet-3.0.3.ebuild index 5f24ea889cbc..f5c053ae0710 100644 --- a/dev-python/pythonnet/pythonnet-3.0.3.ebuild +++ b/dev-python/pythonnet/pythonnet-3.0.3.ebuild @@ -257,18 +257,9 @@ pkg_setup() { } src_prepare() { - distutils-r1_src_prepare + nuget_writeconfig "$(pwd)/" - # Because python scripts perform the build. - cat <<EOF > NuGet.config || die -<?xml version="1.0" encoding="utf-8"?> -<configuration> -<packageSources> -<clear /> -<add key="nuget" value="${NUGET_PACKAGES}" /> -</packageSources> -</configuration> -EOF + distutils-r1_src_prepare } src_configure() { diff --git a/dev-python/re-assert/files/re-assert-1.1.0-re-fallback.patch b/dev-python/re-assert/files/re-assert-1.1.0-re-fallback.patch new file mode 100644 index 000000000000..b292d48d6e0f --- /dev/null +++ b/dev-python/re-assert/files/re-assert-1.1.0-re-fallback.patch @@ -0,0 +1,42 @@ +diff --git a/re_assert.py b/re_assert.py +index 840401e..8818da1 100644 +--- a/re_assert.py ++++ b/re_assert.py +@@ -1,8 +1,13 @@ ++import sys ++ + from typing import Any + from typing import Optional + from typing import Pattern + +-import regex ++if sys.implementation.name == "cpython": ++ import regex ++else: ++ import re as regex + + + class Matches: # TODO: Generic[AnyStr] (binary pattern support) +@@ -12,6 +17,9 @@ class Matches: # TODO: Generic[AnyStr] (binary pattern support) + self._type = type(pattern) + + def _fail_message(self, fail: str) -> str: ++ if sys.implementation.name != "cpython": ++ return "regex failed to match" ++ + # binary search to find the longest substring match + pos, bound = 0, len(fail) + while pos < bound: +diff --git a/setup.cfg b/setup.cfg +index 46303ca..74cf999 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -20,7 +20,7 @@ classifiers = + [options] + py_modules = re_assert + install_requires = +- regex ++ regex; python_implementation=="CPython" + python_requires = >=3.6.1 + + [bdist_wheel] diff --git a/dev-python/re-assert/re-assert-1.1.0-r3.ebuild b/dev-python/re-assert/re-assert-1.1.0-r3.ebuild new file mode 100644 index 000000000000..3f9c5e25468d --- /dev/null +++ b/dev-python/re-assert/re-assert-1.1.0-r3.ebuild @@ -0,0 +1,59 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Show where your regex match assertion failed" +HOMEPAGE=" + https://github.com/asottile/re-assert/ + https://pypi.org/project/re-assert/ +" +SRC_URI=" + https://github.com/asottile/re-assert/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/regex[${PYTHON_USEDEP}] + ' 'python*') +" + +distutils_enable_tests pytest + +PATCHES=( + # use `re` as fallback since `regex` doesn't support PyPy + "${FILESDIR}/${P}-re-fallback.patch" +) + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local EPYTEST_DESELECT=() + + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # message/repr mismatches due to using `re` module + tests/re_assert_test.py::test_fail_at_beginning + tests/re_assert_test.py::test_fail_at_end_of_line + tests/re_assert_test.py::test_fail_at_end_of_line_mismatching_newline + tests/re_assert_test.py::test_fail_end_of_line_with_newline + tests/re_assert_test.py::test_fail_multiple_lines + tests/re_assert_test.py::test_match_with_tabs + tests/re_assert_test.py::test_matches_repr_with_flags + tests/re_assert_test.py::test_repr_with_failure + ) + ;; + esac + + epytest +} diff --git a/dev-python/sentry-sdk/Manifest b/dev-python/sentry-sdk/Manifest index 4d3ac2f41c46..43e08295ec9b 100644 --- a/dev-python/sentry-sdk/Manifest +++ b/dev-python/sentry-sdk/Manifest @@ -2,3 +2,4 @@ DIST sentry-python-1.39.2.gh.tar.gz 452370 BLAKE2B 8ab1b4464ecbd8164c20d926a78f4 DIST sentry-python-1.40.0.gh.tar.gz 457692 BLAKE2B 8f5d299c991f169eaba255ad13fc30620cda7f4d26b0f6ac353a28eef7f1c7001d9a20d61a4d565dc620dbd9292ce11a5bf9fe8c26129f1c340661f218074b53 SHA512 cb3297e96064b3c71a4f28ad1781277f3101c2171d6e8339664c400531f13ed8b394317601b20940261575ff1646801bc8cde760d595bdffa97af4cda4e27d6d DIST sentry-python-1.40.1.gh.tar.gz 458026 BLAKE2B 2f4f34be4dd90bcdace51b593feb54e09ab3ec936c637c8eb484177289ffeaa588c73f474686986a90131c3b746867b552d6fbc29c3c7f1f360f878ed9ee5141 SHA512 07af5062e15d6d9a5c5ac678e4d3274d566dce9929f8b7412d9606749f93b5cf8405bb56577752afc4234f924d8b7ebd536d5a910589faa5dd94f5ecd9d0c9b8 DIST sentry-python-1.40.2.gh.tar.gz 458073 BLAKE2B 807ab048ced25a121bc681ace1b04a0f2cee5c49d18674b97b6e15a1466a3a73566dbf05abf052610fe3fe469eacf92dbc5e94367004ffc5d35da409c9c3792a SHA512 b14926d673afdcbc1cd1c09b667e3a407bfd8bc3643ecce0c811d429932ff1a291b4cad9abbeef7de03fff22d1159b7c7c0baac307e19bc8ac60c2cfb87154bc +DIST sentry-python-1.40.3.gh.tar.gz 458533 BLAKE2B cbf7a5ccd10b23369865fdaf4c59e6bf3b2491e896a46696552022b239f4177ac12b65fa0a5d8fabb727a078bd7bc1762f387b2e6b7855c3f1f139aa58fa6bba SHA512 1956f4d6102b1de3fa0fe38a0ba68b4ecb83385c0f9a9056657a1641bd3080178884310b9a3381d5dbd8a8e50b5d31fc81b1a1e1df0a51a8a2a7f793debdac32 diff --git a/dev-python/sentry-sdk/sentry-sdk-1.40.3.ebuild b/dev-python/sentry-sdk/sentry-sdk-1.40.3.ebuild new file mode 100644 index 000000000000..3a927641cc8f --- /dev/null +++ b/dev-python/sentry-sdk/sentry-sdk-1.40.3.ebuild @@ -0,0 +1,151 @@ +# 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_{8,9,10,11,12} ) + +inherit distutils-r1 + +MY_P=sentry-python-${PV} +DESCRIPTION="Python client for Sentry" +HOMEPAGE=" + https://sentry.io/ + https://github.com/getsentry/sentry-python/ + https://pypi.org/project/sentry-sdk/ +" +SRC_URI=" + https://github.com/getsentry/sentry-python/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + dev-python/urllib3[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/asttokens[${PYTHON_USEDEP}] + dev-python/django[${PYTHON_USEDEP}] + dev-python/executing[${PYTHON_USEDEP}] + dev-python/fakeredis[${PYTHON_USEDEP}] + dev-python/flask-login[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/pyrsistent[${PYTHON_USEDEP}] + <dev-python/pytest-8[${PYTHON_USEDEP}] + dev-python/pytest-aiohttp[${PYTHON_USEDEP}] + dev-python/pytest-django[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] + dev-python/pytest-localserver[${PYTHON_USEDEP}] + dev-python/python-socks[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + dev-python/werkzeug[${PYTHON_USEDEP}] + dev-python/zope-event[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}/sentry-sdk-1.21.0-ignore-warnings.patch" +) + +python_test() { + local EPYTEST_IGNORE=( + # tests require Internet access + tests/integrations/httpx/test_httpx.py + tests/integrations/requests/test_requests.py + tests/integrations/stdlib/test_httplib.py + tests/integrations/flask/test_flask.py + tests/integrations/django/test_basic.py + tests/integrations/socket/test_socket.py + # wtf is it supposed to do?! + tests/integrations/gcp/test_gcp.py + # broken by rq-1.10.1 (optional dep) + tests/integrations/rq/test_rq.py + # fastapi is not packaged + tests/integrations/asgi/test_fastapi.py + # TODO + tests/integrations/bottle + # TODO: causes breakage in other tests + tests/integrations/starlette + # TODO + tests/integrations/tornado + # requires mockupdb + tests/integrations/pymongo + # requires AWS access + tests/integrations/aws_lambda + # requires quart_auth + tests/integrations/quart + ) + + local EPYTEST_DESELECT=( + # hangs + 'tests/test_transport.py::test_transport_works' + # TODO + 'tests/test_basics.py::test_auto_enabling_integrations_catches_import_error' + tests/test_client.py::test_databag_depth_stripping + tests/test_client.py::test_databag_string_stripping + tests/test_client.py::test_databag_breadth_stripping + tests/integrations/asgi/test_asgi.py::test_auto_session_tracking_with_aggregates + tests/integrations/asgi/test_asgi.py::test_websocket + tests/integrations/aiohttp/test_aiohttp.py::test_transaction_style + tests/integrations/aiohttp/test_aiohttp.py::test_traces_sampler_gets_request_object_in_sampling_context + tests/integrations/django/test_data_scrubbing.py::test_scrub_django_custom_session_cookies_filtered + # incompatible version? + tests/integrations/falcon/test_falcon.py + tests/integrations/sqlalchemy/test_sqlalchemy.py::test_large_event_not_truncated + tests/integrations/django/test_data_scrubbing.py::test_scrub_django_session_cookies_{filtered,removed} + # test_circular_references: apparently fragile + 'tests/integrations/threading/test_threading.py::test_circular_references' + # test for new feature, fails with IndexError + tests/integrations/wsgi/test_wsgi.py::test_session_mode_defaults_to_request_mode_in_wsgi_handler + # TODO + tests/integrations/wsgi/test_wsgi.py::test_auto_session_tracking_with_aggregates + tests/integrations/wsgi/test_wsgi.py::test_profile_sent_when_profiling_enabled + tests/test_profiler.py::test_sample_buffer + tests/test_profiler.py::test_thread_scheduler_takes_first_samples + tests/test_profiler.py::test_thread_scheduler_takes_more_samples + tests/test_profiler.py::test_thread_scheduler_single_background_thread + # broken with py3.11, *shrug* + tests/test_profiler.py::test_extract_stack_with_max_depth + # TODO + tests/integrations/sqlalchemy/test_sqlalchemy.py::test_long_sql_query_preserved + tests/integrations/sqlalchemy/test_sqlalchemy.py::test_engine_name_not_string + tests/test_scrubber.py::test_breadcrumb_extra_scrubbing + tests/test_scrubber.py::test_span_data_scrubbing + # this is not even funny + tests/test_utils.py::test_installed_modules + # flaky hypothesis stuff + tests/test_serializer.py::test_bytes_serialization_repr_many + # TODO + tests/integrations/aiohttp/test_aiohttp.py::test_basic + tests/tracing/test_decorator_py3.py::test_trace_decorator_{,a}sync_py3 + # crashes Python + tests/integrations/grpc/test_grpc_aio.py + # hangs + tests/integrations/threading/test_threading.py::test_propagates_threadpool_hub + # TODO + tests/test_utils.py::test_default_release + tests/integrations/sqlalchemy/test_sqlalchemy.py::test_orm_queries + tests/integrations/sqlalchemy/test_sqlalchemy.py::test_transactions + tests/integrations/sqlalchemy/test_sqlalchemy.py::test_query_source + tests/integrations/stdlib/test_subprocess.py::test_subprocess_basic + tests/integrations/threading/test_threading.py + tests/integrations/wsgi/test_wsgi.py + 'tests/utils/test_contextvars.py::test_leaks[threads]' + # skipped without gevent but breaks stuff via broken teardown? + tests/test_metrics.py::test_no_metrics_with_gevent + # TODO + tests/utils/test_contextvars.py::test_leaks + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p asyncio -p aiohttp -p pytest_forked +} diff --git a/dev-python/starlette/Manifest b/dev-python/starlette/Manifest index 773e116e9b97..b7932fde27dc 100644 --- a/dev-python/starlette/Manifest +++ b/dev-python/starlette/Manifest @@ -3,3 +3,4 @@ DIST starlette-0.36.1.gh.tar.gz 2843494 BLAKE2B 633cd664785f32423c0dfeab04b40034 DIST starlette-0.36.2.gh.tar.gz 2843707 BLAKE2B 7ec75189d7e9864fe15823692d2d264586be8772a0ff29e1d539eb15f858ef9d77ef6398e203f5c2f8a507869026fd8863931a176923f29bf11457e58cdb66fa SHA512 fedccb1db4cfe4a0dac321c843ae211e436ec5b07c0e65b663914657a9cec61a900d95dac09b6752a51defbb310a8dce30f0867574523a3c96cf33cd19b61c76 DIST starlette-0.36.3.gh.tar.gz 2844320 BLAKE2B 74e2b7449cf18393c63a2123e7537704bcf85528d504c33dc579b7660ef13c11fe74ba4da6e680063d9849f5addddaeaa5c20cc770bf658613b56da2f7d9191d SHA512 998e8958810efbc329382d86f6084d7ed90dca68bb64c51349b2dae6740ba537db10ec68a007e95a81ab06f5df39c64d998b3e87432a8fc75da3ead0963bcc5d DIST starlette-0.37.0.gh.tar.gz 2845423 BLAKE2B f471d6170cecc0a4421b865306a76147e3c946892abef3a5f8e04a03e8aab830c5702079db9af81ef8eaaba9812286c1364599e556fb4a3c4aae511849d706a3 SHA512 7750d76f2c7d8ee5aba47ba21583d0167c16965538a3735c9098ea44c6f335d893f314550b90ddf2ac9dd592fb777f5cd8035020d7c31cff46e4813b3194730f +DIST starlette-0.37.1.gh.tar.gz 2846156 BLAKE2B 16645f53f3153c04b846776c09b978dda853319f561d136eed42a5da260705238e512f915fd4a86960f0723060270738972ff12f78a3de37c78c7698585a7011 SHA512 ad5393a06966f290976fd60038c56a6ec71c5424bf50298a76ab8f165db4cac81f62cd4b9181e4e573eca4eb1ffeaa64eb44eaa43d41485ef62678af59c8e0dc diff --git a/dev-python/starlette/starlette-0.37.1.ebuild b/dev-python/starlette/starlette-0.37.1.ebuild new file mode 100644 index 000000000000..2bc6499860f7 --- /dev/null +++ b/dev-python/starlette/starlette-0.37.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 + +MY_P=${P/_p/.post} +DESCRIPTION="The little ASGI framework that shines" +HOMEPAGE=" + https://www.starlette.io/ + https://github.com/encode/starlette/ + https://pypi.org/project/starlette/ +" +# no docs or tests in sdist, as of 0.27.0 +SRC_URI=" + https://github.com/encode/starlette/archive/${PV/_p/.post}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + <dev-python/anyio-5[${PYTHON_USEDEP}] + >=dev-python/anyio-3.4.0[${PYTHON_USEDEP}] + >=dev-python/httpx-0.22.0[${PYTHON_USEDEP}] + dev-python/itsdangerous[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + >=dev-python/python-multipart-0.0.7[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/trio[${PYTHON_USEDEP}] + ) +" + +EPYTEST_IGNORE=( + # Unpackaged 'databases' dependency + tests/test_database.py +) + +distutils_enable_tests pytest diff --git a/dev-python/tox/tox-4.12.1-r1.ebuild b/dev-python/tox/tox-4.12.1-r1.ebuild new file mode 100644 index 000000000000..60ee4e5af69b --- /dev/null +++ b/dev-python/tox/tox-4.12.1-r1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="virtualenv-based automation of test activities" +HOMEPAGE=" + https://tox.readthedocs.io/ + https://github.com/tox-dev/tox/ + https://pypi.org/project/tox/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/cachetools[${PYTHON_USEDEP}] + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/filelock[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/platformdirs[${PYTHON_USEDEP}] + dev-python/pluggy[${PYTHON_USEDEP}] + dev-python/pyproject-api[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.{9..10}) + dev-python/virtualenv[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + dev-python/build[${PYTHON_USEDEP}] + dev-python/distlib[${PYTHON_USEDEP}] + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/re-assert[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/time-machine[${PYTHON_USEDEP}] + ' 'python*') + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # upstream lower bounds are meaningless + sed -i -e 's:>=[0-9.]*::' pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + # devpi_process is not packaged, and has lots of dependencies + cat > "${T}"/devpi_process.py <<-EOF || die + def IndexServer(*args, **kwargs): raise NotImplementedError() + EOF + + local -x PYTHONPATH=${T}:${PYTHONPATH} + local EPYTEST_DESELECT=( + # Internet + tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_build_wheel_external + tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_run_installpkg_targz + ) + local EPYTEST_IGNORE=( + # requires devpi* + tests/test_provision.py + ) + + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( + 'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[explicit-True-True]' + 'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[requirements-True-True]' + 'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[constraints-True-True]' + 'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[explicit+requirements-True-True]' + 'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[requirements_indirect-True-True]' + 'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[requirements_constraints_indirect-True-True]' + ) + + epytest +} |
