diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-04-03 18:53:06 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-04-03 18:53:06 +0000 |
| commit | d874d599ed8dd6b79d1e3437440b30c3d1693de5 (patch) | |
| tree | 60b4439957625af456764753262c5592254bfc19 /dev-python | |
| parent | 219097d618bb3c2c0aa0fef4aa4d6ecb83467bf4 (diff) | |
| download | baldeagleos-repo-d874d599ed8dd6b79d1e3437440b30c3d1693de5.tar.gz baldeagleos-repo-d874d599ed8dd6b79d1e3437440b30c3d1693de5.tar.xz baldeagleos-repo-d874d599ed8dd6b79d1e3437440b30c3d1693de5.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
50 files changed, 1548 insertions, 197 deletions
diff --git a/dev-python/argcomplete/Manifest b/dev-python/argcomplete/Manifest index f4280c4149e9..b022724e699e 100644 --- a/dev-python/argcomplete/Manifest +++ b/dev-python/argcomplete/Manifest @@ -1,2 +1,3 @@ DIST argcomplete-3.6.0.tar.gz 73135 BLAKE2B 3e1cd3f28652278483ba7bfb5c73308580ee390da388a0e23932c553d2c79d45a4e7d6a7bd8c01299080caf70c0ced1d04b3708dcdc6ed975f00170d22eb81e8 SHA512 cccc7f8b760cee5e43b03d97a4bb8f1569e82dd8761a540bb6abb54f8ed2fff09c8b8491c4e175360c00b0e75a5e1b7b4b53734db969e250aff5fbb74dcd0514 DIST argcomplete-3.6.1.tar.gz 73474 BLAKE2B 096beabe258c155e13ba6f60edbab5e9f01f0a8b5aa93141082b8590ea46b3ecbe905960cc5cb1956aab36ba04724ce5f18066ab99db10e3b49acfbd5535cbca SHA512 948f83f42e8fcb7c8a5aac614413d1d33ec6aedb5ef578cb3a88a148fc334d5072ac269c03fbbfec4f845f4492a5918bbf55fd6c765448bbd56edf24704b3616 +DIST argcomplete-3.6.2.tar.gz 73403 BLAKE2B 3b998ade06ea6a22acaa91b78b3e5770c02b00926e028c24a8ed59fee3a8edf2aa234c03581f59354728fc54f2ce01a6526930b8f160fbdfbbefe73d5b2aae48 SHA512 19843c958a6bd5b48dd86c3f5140f74a21cec6df48adef480758197f32ea961cfb19642f6f16297fed10db93ca16df85966a2ac4a6d809b987fd528221299ea8 diff --git a/dev-python/argcomplete/argcomplete-3.6.2.ebuild b/dev-python/argcomplete/argcomplete-3.6.2.ebuild new file mode 100644 index 000000000000..57fcd9048df9 --- /dev/null +++ b/dev-python/argcomplete/argcomplete-3.6.2.ebuild @@ -0,0 +1,44 @@ +# 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 pypi + +DESCRIPTION="Bash tab completion for argparse" +HOMEPAGE=" + https://github.com/kislyuk/argcomplete/ + https://pypi.org/project/argcomplete/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +# pip is called as an external tool +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + app-shells/fish + app-shells/tcsh + app-shells/zsh + dev-python/pexpect[${PYTHON_USEDEP}] + >=dev-python/pip-19 + ) +" + +PATCHES=( + # increase test timeouts -- this is particularly necessary + # for entry point tests because they read metadata of all installed + # packages which can take real long on systems with lots of packages + "${FILESDIR}/argcomplete-3.1.6-timeout.patch" +) + +python_test() { + "${EPYTHON}" test/test.py -v || die +} diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index 8745b2dcf09f..5fafd33d69e0 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -7,4 +7,5 @@ DIST boto3-1.37.22.gh.tar.gz 919362 BLAKE2B f36e850e4b7089325f32c41ef1d60373fbdf DIST boto3-1.37.23.gh.tar.gz 920294 BLAKE2B c1bfcb5dd8c883c122b530ac2756c77884d74a43caeaeaded4e7f26bf9fbe829c7b4d70968b19e2561b4ed495c8e05e141ae365fcff7fa10159ff0c04dcc1f3e SHA512 b2fb0b4730e32ec881e933eeb6e57ce5dcffe9cfe5f586a15e5a9abea5d3a515d5db0c66058af3c0c8c206472fdfef80b74b750bd024718078ec9a5a94b01e29 DIST boto3-1.37.24.gh.tar.gz 920927 BLAKE2B 420db6c337247d54992f094aecf0c1a08fd0c49c565d5b30d53d3111dc321828a09006734018f4487c633919bcf3d6ff1d073d1147c1498ba11ef7fba9f25dee SHA512 f4c6d8e8014f05b0fcc78d8d70940387f034de026674cc640ada7f2eaf001f072f96ce4231b65a123efcf8a4051bcdc3c1ab67b2e14551d3c225279a341b9ad4 DIST boto3-1.37.25.gh.tar.gz 920853 BLAKE2B f1ef1df964b0fc8d1b3072d7c26c8737f52556745152b055940355f62ca578a2fa99110d9aaacaef6ca7173466953a4f9e9d4d1ea248cc896ac17cdde92b9fef SHA512 eda2476087dd106549ef51e83785def18bcee070c3cd03a7fca54b63d404c363aa9bf26b85760b9ac7dffc3ff51bbaf947d8e6f8e33ea5fc617a74059109e597 +DIST boto3-1.37.26.gh.tar.gz 921345 BLAKE2B 50b79e4a2df074174e5559d0fe4add434af4aa15784ad9b439145f32dfd86371dc80c9ec5dd57d31b200fba6d8c8f7159259601f40149f02cf2f75065f70eeb8 SHA512 d184e919826c07d04502ce6de4ec0e670a086ed92b8d386965c2bb37ea27433fb9656db52b98b7e08e1f2d7cfc49bde589f0ad8a6c37ddf97e08999a9d86ecf6 DIST boto3-1.37.9.gh.tar.gz 911836 BLAKE2B d190525b9c5e39b445042aba6d8e57da5e49165775901ceebe44b76fd2780ec85a2f5a8a08d3a9a5e451d42bbae19b679e565a7a9acc663258ea0b7909a9a798 SHA512 12cba48d5f2c158b372eaf4e44903e22ca963e5712c3c463fbfd20626a771efe30530852b6c9ab70132a26472ff1b4656095675a5de37524f6b489c25175f8fe diff --git a/dev-python/boto3/boto3-1.37.26.ebuild b/dev-python/boto3/boto3-1.37.26.ebuild new file mode 100644 index 000000000000..dfe05b3d9a81 --- /dev/null +++ b/dev-python/boto3/boto3-1.37.26.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_{9,10,11,12,13} ) + +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.11.0[${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 d304ef4e369c..c1d2ee5b0082 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -7,4 +7,5 @@ DIST botocore-1.37.22.gh.tar.gz 14402437 BLAKE2B 4519e3f3ca1c42b2e0445d98d7afd66 DIST botocore-1.37.23.gh.tar.gz 14408721 BLAKE2B 6309e847210a3f7f916679078fba54afff6369d0d983638a1f0535da30349e918699c022929585d5d106a47822f746429b5eb4e52f0996059ce38f989cbf05c2 SHA512 61147b40c082469c5d99ba626ce1549c2d640c25151ae39e588c1ca15c20aa3eff1eeb1d91de18c62203099d45f1a70541e675b9c5ab14f5c04f90982f9a2ddd DIST botocore-1.37.24.gh.tar.gz 14428720 BLAKE2B ca94c865048529d48eeb02721fdccb18051d7b1190645d80204d306f1774e46342f88dcb5dd51c73c1ecad133d36bf42b6b6e4f4c3bdb31b6468aea398cf4a47 SHA512 bc34c69f507144f6f84ba5af796b0c40ee2ea2d6f3eb2e51bc882ecd782f9cc0334b6ee4380aeb42800491d1f09440039ec57c2de06f45ccaa25a570889d5367 DIST botocore-1.37.25.gh.tar.gz 14523205 BLAKE2B f6bb565b57ee8d1c61c21a5f11363e1c286d359a74884cc65d870c9f06fda7682f23cf9a88e698cef4fc8b1d1b8bee1895bff9088ee3b42e795075a43b49d1cb SHA512 79a76916d97961be7b6b7aafd56f99c0ebb8e8c59e6c1dca4aa6a9ae741528f20c75e685bddc0f843424be3bcaa7cbc541283db9446a5a54eb059efd13982bf8 +DIST botocore-1.37.26.gh.tar.gz 14524501 BLAKE2B d410f6c93e31eed0695b9aaf8bd5acd3a855d4beb4f7273baa6473073a325ca2fceeae5ebc944ced31322e380c7f299468643ea8b09981a220bb8a077f5a37f7 SHA512 1af6e8ff457f3494da129aa4c134923d84d8b6207345604fb128f931ef1da4aeb83897be20224fa80eeb1f334b5a37a21be66bbf95120512e8107ae6e11f8f81 DIST botocore-1.37.9.gh.tar.gz 14346488 BLAKE2B 29ac550ad462ab7c83bad7989588ec62fb57959586a8ec91be9756d90712ad86e3dfd813a347e619b7cac3fd7afb56affcd81926e15d91b8d0ceae2cd4436a8d SHA512 e191c9485e95188049c02020fcb32c4429de6cfd78f237a2026200b7240890d5759f5cdd96166cd2aec035dac82d32db155fe00d9ec6be482c655cfdb44265f9 diff --git a/dev-python/botocore/botocore-1.37.26.ebuild b/dev-python/botocore/botocore-1.37.26.ebuild new file mode 100644 index 000000000000..df85ee0d220c --- /dev/null +++ b/dev-python/botocore/botocore-1.37.26.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_{9,10,11,12,13} ) + +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_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/calver/Manifest b/dev-python/calver/Manifest index 289b439b01d6..c3084e90160a 100644 --- a/dev-python/calver/Manifest +++ b/dev-python/calver/Manifest @@ -1,3 +1,4 @@ DIST calver-2022.06.26.gh.tar.gz 7601 BLAKE2B e4bea1dc8954b4f65003cb06dadebfa6a7ad0554d64c23e5339652955d2e4659ffc093b8d11d284e03bc74267059a10043a45dd1eb7717378fb22327d6409428 SHA512 4d436cead8930cae1a71eddef9f0ecd2881f8cb632c3814dc75390b061a909e7ca969a604a5fded1c66647947856d540e2180bd3ce4bed5087b4dbc9d5edb393 DIST calver-2025.03.31.gh.tar.gz 7950 BLAKE2B 5217d26bccb1997056fc2073fcdc9b8873e689283a0845af52202bdc84aca8502886c995532936ff46469614720d0f58b510354677e45aa7e3cb50a2118bd8b1 SHA512 f728e42326dfb7d1cc5f1a0d86d67c7bd479dc98ef5829d6fe70606317ce36662f5d2c8d06c76a1016a4b9a6e9c5474049b71d53c201c486aaa2d93c7a59a91e DIST calver-2025.04.01.gh.tar.gz 7923 BLAKE2B 83f777161486256459bf2cba236ef670345f88bbd342acf1e43ef94c673364e1b7ed96508701ae252a59069254cd3424abde2495e7080c2b328132968ca167b6 SHA512 e74ac06bf21c7ec610f7f2eac0e6f2e538e3d9b442a7f5e861d5dc484f8a5d839349491a98796401f2834e1fa505d0570c8e2c52dc7b52f33374e0bf4904132f +DIST calver-2025.04.02.gh.tar.gz 8158 BLAKE2B 4e1fb81d8e8295497ae30d2323799460838db3de10317fd2301113d95574630efee7c3abb32e35a97be21f86aac28cb283e2d13e26ead9d421f3f4ddb4e5ab8a SHA512 7af7a2f844bcfcdacd1a4e985c508b1901a5194c3e21e1f7b7c0f381778ac905dba1276ef7201db6140b08fb57fef8acaf293b270710160871e353e8315c9a02 diff --git a/dev-python/calver/calver-2025.04.02.ebuild b/dev-python/calver/calver-2025.04.02.ebuild new file mode 100644 index 000000000000..e16f145fe6d3 --- /dev/null +++ b/dev-python/calver/calver-2025.04.02.ebuild @@ -0,0 +1,39 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Setuptools extension for CalVer package versions" +HOMEPAGE=" + https://github.com/di/calver/ + https://pypi.org/project/calver/ +" +SRC_URI=" + https://github.com/di/calver/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" + +BDEPEND=" + >=dev-python/setuptools-77.0.1[${PYTHON_USEDEP}] + test? ( + dev-python/pretend[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_compile() { + # what a mess, also we need to scope it not to break tests + local -x SOURCE_DATE_EPOCH=$(date --date="${PV//./-}" +%s) + + distutils-r1_src_compile +} diff --git a/dev-python/cfn-lint/Manifest b/dev-python/cfn-lint/Manifest index 9999890813bc..5cbc051b1d24 100644 --- a/dev-python/cfn-lint/Manifest +++ b/dev-python/cfn-lint/Manifest @@ -1,3 +1,4 @@ DIST cfn_lint-1.30.0.tar.gz 2832092 BLAKE2B 0d69bc3702447828c5a03662d00f62e1ee421a554354dc3e754ed509108d0f5ef031e4e256de51476bb4904bba34089ac263203bd688d3c27fff050655b5a35a SHA512 0a8819b5ca691a308622a1a394d19c633c06253f3b8a480a95c12dfcebb94220f0464f11e51ee9719f2d00d097520226d9c2ab6b8944ff0b00e117de21d458d9 DIST cfn_lint-1.31.3.tar.gz 2856311 BLAKE2B 46c7dee3b3a70f59675dd3879604a0860b99b193ce37e11b05f60bb08d1f3e97da7887b8d13be48d5721826ca46f5bdca61945b8d2fc6558d9290eec5257fa64 SHA512 4d63d3d529b292125be9b139ebc73ae75024e61afa0928afd6f73f573aaadd9cb1e359cf4bc61aa245c05de86406b9894bca1519b682248946eff0664bbefeba DIST cfn_lint-1.32.1.tar.gz 2896622 BLAKE2B 2c00467a4f1997fe72f500a339314b5c698a392968978881a11d0982084a6f2ea07ef2ca114a88ca22c99c9ff1748f8a2ba971a1e558df8aa53e2ec6c230c597 SHA512 f81ca1bf437db146d8d533da0f445c46c3bd08dc37b5a7e3d653e0395ae73ecb749b65f944a515331477f5395c856d7e7df9b2e4e41ff22446af142c89039aa3 +DIST cfn_lint-1.32.3.tar.gz 3074127 BLAKE2B e9b951d2d1193d9fab2e51238ea3ef638ecb9c67f8929deea0b649ffcf064bb0b52bd91da0f0ab8d3a4f2cbc20da2b4913d75068be506d0e08501e717a15c189 SHA512 89a68232a7c5753778f5de559d1dcbaa6677d7f33ee0bbf2feeea65e5d39c606111d3ba8fd79b5245c48ecf57af313b792ebc58546d0ed5eaf58eece055f0a14 diff --git a/dev-python/cfn-lint/cfn-lint-1.32.3.ebuild b/dev-python/cfn-lint/cfn-lint-1.32.3.ebuild new file mode 100644 index 000000000000..55473d6d5896 --- /dev/null +++ b/dev-python/cfn-lint/cfn-lint-1.32.3.ebuild @@ -0,0 +1,70 @@ +# 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_{9,10,11,12,13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="CloudFormation Linter" +HOMEPAGE=" + https://github.com/aws-cloudformation/cfn-lint/ + https://pypi.org/project/cfn-lint/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/aws-sam-translator-1.95.0[${PYTHON_USEDEP}] + dev-python/jsonpatch[${PYTHON_USEDEP}] + >=dev-python/jschema-to-python-1.2.3[${PYTHON_USEDEP}] + <dev-python/jsonschema-5[${PYTHON_USEDEP}] + >=dev-python/jsonschema-3.0[${PYTHON_USEDEP}] + dev-python/junit-xml[${PYTHON_USEDEP}] + <dev-python/networkx-4[${PYTHON_USEDEP}] + >dev-python/pyyaml-5.4[${PYTHON_USEDEP}] + >=dev-python/regex-2021.7.1[${PYTHON_USEDEP}] + >=dev-python/sarif-om-1.0.4[${PYTHON_USEDEP}] + >=dev-python/sympy-1.0.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/defusedxml[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # unpin the deps + sed -e 's:~=[0-9.]*::' -i pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # TODO + test/unit/module/test_template.py::TestTemplate::test_build_graph + # requires git repo + test/unit/module/maintenance/test_update_documentation.py::TestUpdateDocumentation::test_update_docs + # Internet + test/unit/module/formatters/test_formatters.py::TestFormatters::test_sarif_formatter + test/unit/module/maintenance/test_update_resource_specs.py::TestUpdateResourceSpecs::test_update_resource_specs_python_3 + # TODO: it looks as if AWS_DEFAULT_REGION didn't work + test/unit/module/core/test_run_cli.py::TestCli::test_bad_config + test/unit/module/core/test_run_cli.py::TestCli::test_override_parameters + test/unit/module/core/test_run_cli.py::TestCli::test_positional_template_parameters + test/unit/module/core/test_run_cli.py::TestCli::test_template_config + # different graphviz version? + test/unit/module/template/test_template.py::TestTemplate::test_build_graph + ) + + # from tox.ini + local -x AWS_DEFAULT_REGION=us-east-1 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/clang/Manifest b/dev-python/clang/Manifest index 518a294cf47a..148419e3a6c1 100644 --- a/dev-python/clang/Manifest +++ b/dev-python/clang/Manifest @@ -14,4 +14,6 @@ DIST llvm-project-1c3a9a853ce68c3c539e7cab21380b9d8b18f426.tar.gz 229448743 BLAK DIST llvm-project-1d133420dc512487e2be0e9d86755f2a7c3497a7.tar.gz 229268288 BLAKE2B aca79bcca631deeab429a03cd2732d78d8ecf0c9615bce181445ed875436806609dc85a57d4f97109492833d620d060ea93fed450a4912c2d94597aeabf84974 SHA512 24ecadfccdf785bfbf27d5007afd2a4d5868493b2c5f48d6cf07c335bfbfef5cba4f12a639971e5f95877ae3b8c7b7fc0c210e404d21036af553de82a5059037 DIST llvm-project-20.1.1.src.tar.xz 147215020 BLAKE2B d1774d060036b5340f765d68cc23cbd1e00730874cb3e65b7236303238d7922a7fa191b631c20c3bf17e54c933672a355d4424f2beea17cd25fcf9f5c4c625dd SHA512 b851d3e24a2775f6e789720614a8192d72956f447a39d75e5160a8acf6bd3a3386fab2cca5590b7e020b65e408ccf32432f8dc03519fd4cf60b4b5674fe0547e DIST llvm-project-20.1.1.src.tar.xz.sig 566 BLAKE2B 76c49401d9b8e283fc29586c32fc1b5205d76b3b83d0f99aa2ac09a63b058478e08588dcfbfc728110172b639eeaf04a884f4e6d707b94cad0dbf2d0dcb30a4f SHA512 469b03f3ddbe56b074724375b09a45ee2730bee0ba4b25f64f93d93ef609c33d39136f051c216a74a35d98a70ffcd3d7507e38d19a20d5006c29a954ca32813b +DIST llvm-project-20.1.2.src.tar.xz 147229028 BLAKE2B 90be4c8b69d44bc3a295f3f63081f999cf35d05e9157ab104d403a5d5b6c3ff97b57a89598d2ec0413988f93a23f97f485b2216bbf0630cade754e9830246621 SHA512 c95e088e471d49c6692c8af1a7e40924467e4c269dada019c44455687c9f0e6a213b9b3ac8afa4e3d20cb3e757afc3400152e7cd06981aeebd61591cac15580d +DIST llvm-project-20.1.2.src.tar.xz.sig 566 BLAKE2B fa4637cd41bddb0425567b17bcb0ba4800ec9a689897610febfba7f49f8218d6aff7bb8f7ecf6bb927397096ca49c0c1817b243e5ba7fc0ba51993ef532dadeb SHA512 d3f6a350ebd9884878442ea202f58328f8e85c30cfb150371e4af7fa8dc560bb421cd0f49f49e6bc95f57de6c06543633f0b2799aab9590750f440e099424e01 DIST llvm-project-21eeca3db0341fef4ab4a6464ffe38b2eba5810c.tar.gz 229546432 BLAKE2B e783f08b93498b252741a07fd3aa3383ca93f66688f9bbdb2e11185c660dfff1020ab4a1ca803ab69ab28dc2fd8b5c3855f45c0b77851b8e6edeb0dc5bf6cbd4 SHA512 54420956b36f3bccabea2171a4103ca20d6b136e1d1f7f217e0ec735be4542bbd840ef228c55f3e9103ad2f9fb41393e611d5aaa1521d01fdd163b770b80ba0b diff --git a/dev-python/clang/clang-20.1.2.ebuild b/dev-python/clang/clang-20.1.2.ebuild new file mode 100644 index 000000000000..1f732ff9189d --- /dev/null +++ b/dev-python/clang/clang-20.1.2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +inherit llvm.org python-r1 + +DESCRIPTION="Python bindings for llvm-core/clang" +HOMEPAGE="https://llvm.org/" + +LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +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=" + >=llvm-core/clang-${PV}:* + !llvm-core/llvm:0[clang(-),python(-)] + !llvm-core/clang:0[python(-)] +" +RDEPEND=" + ${DEPEND} + ${PYTHON_DEPS} +" +BDEPEND=" + ${PYTHON_DEPS} + test? ( + llvm-core/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/crispy-bootstrap5/Manifest b/dev-python/crispy-bootstrap5/Manifest index b4811a53e0b9..a0c94666035d 100644 --- a/dev-python/crispy-bootstrap5/Manifest +++ b/dev-python/crispy-bootstrap5/Manifest @@ -1,2 +1,3 @@ DIST crispy-bootstrap5-2024.10.gh.tar.gz 34186 BLAKE2B 3a005b5b344b3d41692242e0bb69cc42bc10d73ae9d90d74c23d47880939e8fa71280140f053afa919902d7a54dfe7703041f1c6033207b05b776072009cd01e SHA512 84a99877ee0695aaeea70f76fd48c4fab062320cdd82aaa663effb6f311ba7f823de8df6e576b0301afcb6a8241bfdbbacfda12fbffdeb95ac7a16c3f6f95b9e DIST crispy-bootstrap5-2024.2.gh.tar.gz 33509 BLAKE2B 4a1eec0cea4ee2b0fcbdd8aec6b4595a7b981b0502113d5154585702cc20d9c80cf28fd06db8085dd561c154e13fa493ee88bc3a9c0e619684ab56fce1376d70 SHA512 08c0e35caff14c53976283a383da5a8115a64b42a5a0797089c2528f3e2c0e03eb0826f48c1991bdbbd183afc486c0a238c73e782a76eac1d003e5760ddd852e +DIST crispy-bootstrap5-2025.4.gh.tar.gz 36000 BLAKE2B d17c409c0c7d8797c92499d6198d92b051d5251fcd36bc77e77d32da71e679c650128012fd3b2e86575c66994365d828ac39610f6100e6853cdf8f5be278ccee SHA512 971ead38d3430284aa7665bca558ebd4ff5d29f4a979ab7e04736bab4c4d3a4c4c7ff8d25265ec9f2dcfd264d99cae497674e0ef32f284896d99660c93e5ac78 diff --git a/dev-python/crispy-bootstrap5/crispy-bootstrap5-2025.4.ebuild b/dev-python/crispy-bootstrap5/crispy-bootstrap5-2025.4.ebuild new file mode 100644 index 000000000000..b93f669535ff --- /dev/null +++ b/dev-python/crispy-bootstrap5/crispy-bootstrap5-2025.4.ebuild @@ -0,0 +1,35 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 + +DESCRIPTION="Bootstrap5 template pack for django-crispy-forms" +HOMEPAGE=" + https://github.com/django-crispy-forms/crispy-bootstrap5/ + https://pypi.org/project/crispy-bootstrap5/ +" +SRC_URI=" + https://github.com/django-crispy-forms/crispy-bootstrap5/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/django-4.2[${PYTHON_USEDEP}] + >=dev-python/django-crispy-forms-2.3[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-django[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/django-otp/Manifest b/dev-python/django-otp/Manifest index 467edec8855a..09dc1125cd82 100644 --- a/dev-python/django-otp/Manifest +++ b/dev-python/django-otp/Manifest @@ -1,2 +1,2 @@ -DIST django_otp-1.5.3.tar.gz 73785 BLAKE2B 0f69539b271c7ed4cac55e6f52c4f8b67761731df14eef7594d3430b89e44c3b4314084a6ddeb02b85b4b576fffe2c20097e5bad291de2020f2314042d374348 SHA512 c101996982182736743cb14f44cc055722cc510e2082ee312f91b79cf9d87b50aaa1eeec489649723514e7150469be9c7f4f2d71758a7a72d0dffe04f4f875a9 DIST django_otp-1.5.4.tar.gz 74334 BLAKE2B 1d93c329441fcd237411b625618a85a9b93383fb6f2137ebbec74fb6efa13bdae4777c5a2e12188c919400be08a5c9562c4d5c03eda2aee26668ae10791dfa11 SHA512 fb4d642009256f543e2ea8d2f78e144cbb8186f3a878bffbe1bbf5c7c9712effcb52dcaa9bb37474e769c6c83f2ad94f680a083857ce59b4d97824c57641e068 +DIST django_otp-1.6.0.tar.gz 73830 BLAKE2B c68193a6da04d330daa73805389513554944832d0eeaf090d5f7c03fa6f52831658c813c3d4838fe3b71ad7044f1bffe1d74682af78262cf06f38bc05f12a467 SHA512 6800fc61fcf674933a8f0bb928fa97ac794075bc937022866c97d25b2d7f1a02f7402383d487c7a4d7e1bb48abc2ad6fa8c4d808c15222ba8cff35c909b2b22d diff --git a/dev-python/django-otp/django-otp-1.5.3.ebuild b/dev-python/django-otp/django-otp-1.6.0.ebuild index 9bfc2ee6026b..80eb518e0ae6 100644 --- a/dev-python/django-otp/django-otp-1.5.3.ebuild +++ b/dev-python/django-otp/django-otp-1.6.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -21,7 +21,7 @@ IUSE="test" RESTRICT="!test? ( test )" RDEPEND=" - >=dev-python/django-3.2[${PYTHON_USEDEP}] + >=dev-python/django-4.2[${PYTHON_USEDEP}] " BDEPEND=" test? ( diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest index 5fbda51204a0..d5799dc267a0 100644 --- a/dev-python/django/Manifest +++ b/dev-python/django/Manifest @@ -2,8 +2,14 @@ DIST Django-4.2.20.checksum.txt 2417 BLAKE2B ac01acf1c7fdba50e81012563d7d5f6d16a DIST Django-4.2.20.tar.gz 10432686 BLAKE2B df53df6f8439cae50c2e568d20b4c46e2ae12d61ea826580b28a9678ae890ad8eade5bcc813dbb6355126aa8760acbaabffe4a6fd386bedb8fef171d1a09fabd SHA512 6f960772cb95d6cb92ffc29ccec8d53d4f65c371359d350a63653c259288de4047302748008be04b9f4945627e9ef6d52dffa32455acbe26441f49872d73eeec DIST Django-5.0.13.checksum.txt 2417 BLAKE2B af989fee87791a29b6b5e0f37bbbc509c71b429c6b9fa4e3994a77db39aba118a1ab2da872864e8fe302ed0c923a19441996187ed45c9f0c9b56a40d0107624a SHA512 e395c2677e2a844e59979cc88b232be92f0c2459879c8bf391a166cdd04b6e501b07b3741817bf2cebfdd83b157d5b7b346a4a3ba88fe1787cb402abfcdfc1c6 DIST Django-5.0.13.tar.gz 10643726 BLAKE2B 53dbf4e395cda2ed776a281805ad26ab40c15930497cceee85c92dccc50ee0c3d8d6e24fbe3ac48034de271955beae1412f912bd3cc21f196273df806f4c4168 SHA512 6fd976497941715dda659a093d38312d8aeceec7dc71308247845230fee00cd917c7559c3085d0a5c70e577bd89589254b26d6bdcbd728084446602f725ab696 +DIST Django-5.0.14.checksum.txt 2417 BLAKE2B f1798e24a4a290907adc83ac89aea70660026780b9accfc3487d4625d637e17af1347f0f3e6af727b3d4385f0371584edab1c806d07121c77a223c4941f2b441 SHA512 0149a3fdc99a9c2efb7d4e418be354660158e1ec75584c2b5455dfea6d326f3c04030f5414cb1e357d4ca62e225261ca797d6a31ff489260d14b2147401774c4 +DIST Django-5.0.14.tar.gz 10644306 BLAKE2B d19b9695c98116ddae26d6b0c3a6a53e0aa4786b1d74d7fd4f429c1d6d6289d39b106416651db46eff14a3af2fe0da30ebc3c68c5c1567f1a0eed058bd00551d SHA512 53751e7ad38368d947c2b0d0743f3bfa11cef70638c905eb435eee3638aef70ca7656b917b7ef7d78800183075b1f76410def4b3ce553a7a177b8ab7f013490e DIST Django-5.1.7.checksum.txt 2407 BLAKE2B 8ed1a118ab754dfbe9978c28771c9a4925f27038407288d536289021b1c798d643f043c01f41e914216548deb222eac1cead1975bf5bc484982b09534918b91d SHA512 46f6b85df08fda9e91d225b02ccf10919fac6e7ff16151a53840c90bdb85b351dc627996f8f16a827d7f3dc01f24bbd94378e8ce8f09700783ea9bde1519a911 DIST Django-5.1.7.tar.gz 10716510 BLAKE2B 0ed9a8e75715ab60da23e57b83931dd9a06360723439df6e2dd9690ad25ed688a13a1c3ebe35426325d612a0f6cded076dd3efb3a56f5f9e717854abacc36a11 SHA512 8c0d2d79eab1c60f4a50c94e5f584f0ed70835a8b3ac64f4c5c0397fc186cf8e9188926ad08545323a139976efc207c8429faa7f0b5948b21cef98482124980a +DIST Django-5.1.8.checksum.txt 2374 BLAKE2B 04d648a0186ac8a4caced8035bd2653e37975953ea0bc8b310a4bb6c3fff16ad77f006227b4c4ac0fdc5135b552b9a29b1982ae2d04586c519b6208f595d28b3 SHA512 744dc873ab2ac84f16eb2d6ecb2df2211a48076649b8c0b7f9adebaced092125981eb6011d1d2e35c017cb955206bd09149fa39c284b22ae6c76b3d820ed1357 +DIST Django-5.1.8.tar.gz 10723602 BLAKE2B 351380015b98e585c19e16922ed5178a43aef131f07847f1a2b4d48fcf4331d4b58664f7e53ac4665865ae3b8abd809572af1aa2e92b822e75e6b002213d0b27 SHA512 d61ee20eaa37da1f172f0e25b3c4a7cfdbc01a1432ae8ae053040db5ca80faf35a7f998dc8a8c67db60eeb4bdec0794a532b7acca4969f3d0713ce6249de1249 +DIST Django-5.2.checksum.txt 2354 BLAKE2B 8e4029505bcf9e96865efb3bd3c118462b7db47b47674f0ca43ad10eedfb62081bf15b75288e3f4ed80287abd291dc224ff4875de728c36d15008fc391833184 SHA512 bd167d04cd252df76a396bd33b6e3ab75dec5515f3d21a06dccad0d320173118bbb075f21393eae219779034a24fc8b49a81c18c376a8b3e6e0a174e222a6fc9 +DIST Django-5.2.tar.gz 10824891 BLAKE2B 99f24ce1ced59ce281ff3f70a772f61fae449a9acb503284a490b896415b163addbec2e4732b4d736c6a4a3d435b4d519cab4dafa21215349db96bcc718da0d2 SHA512 b2b676b622ab2b4d52a7eebf23dd0660756c263830e850e49ff55a81657877eab5dcb2005829a904177231645f93edd0d60f1317b29d5484c02d7539135c972f DIST Django-5.2b1.checksum.txt 2411 BLAKE2B ed45a877cfb217909b59351bc9b51e8b4d757b3bb812da4597056f79ff86d9d453dad815e4c5932b6b159e51ca696d982ae4cd8bdd78d53f0b9a058643b5e0d2 SHA512 f0a306a337fe54a6e8ab88a8196c5a9da8af0d03c825034f4141ca1e95cbf9092a30c6a346590e9a4b44c4a299178ecbbaacc86d81c58b7d14dc8eb9743f0343 DIST Django-5.2b1.tar.gz 10816962 BLAKE2B 8308cecd8870f9ca3ac96aab370d5f9eba4d4a9c580a19f7214a9bf504eee5c2388f46164a33113126364ffdf1e5f13cf9f30c73c49fb5c6eefe255aed4a30c2 SHA512 212b92758ab32fa29d4a60517a09ee7068fbbc4f8893a4473797641d104fa3c21b20b4dea6ec64471b07991da7d3749226f169ac7fee76651896b4518f016180 DIST Django-5.2rc1.checksum.txt 2385 BLAKE2B 071ce02b5834ecb0273e3ef18ed457da50b6d191ea58cb1941c4bec7b00ef19149bc1eeddf20005fbe762d26b491ad694ee0ece4a915257a0d9cd6231f43fe71 SHA512 03bc004144844c1e0002007083af17efec222f1ec86b2d698a87cc85332e6b5c8c958790dfcc0e131ffe0ad2de43c909aecc8998436e4f9f9ec7cf161c046961 diff --git a/dev-python/django/django-5.0.14.ebuild b/dev-python/django/django-5.0.14.ebuild new file mode 100644 index 000000000000..03e171156e83 --- /dev/null +++ b/dev-python/django/django-5.0.14.ebuild @@ -0,0 +1,105 @@ +# 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_{9,10,11,12,13} pypy3 ) +PYTHON_REQ_USE='sqlite?,threads(+)' + +inherit bash-completion-r1 distutils-r1 multiprocessing optfeature verify-sig + +DESCRIPTION="High-level Python web framework" +HOMEPAGE=" + https://www.djangoproject.com/ + https://github.com/django/django/ + https://pypi.org/project/Django/ +" +SRC_URI=" + https://media.djangoproject.com/releases/$(ver_cut 1-2)/${P^}.tar.gz + https://dev.gentoo.org/~mgorny/dist/python/django-5.0-pypy3.patch.xz + verify-sig? ( https://media.djangoproject.com/pgp/${P^}.checksum.txt ) +" +S="${WORKDIR}/${P^}" + +LICENSE="BSD" +# admin fonts: Roboto (media-fonts/roboto) +LICENSE+=" Apache-2.0" +# admin icons, jquery, xregexp.js +LICENSE+=" MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" +IUSE="doc sqlite test" +RESTRICT="!test? ( test )" + +RDEPEND=" + <dev-python/asgiref-4[${PYTHON_USEDEP}] + >=dev-python/asgiref-3.7.0[${PYTHON_USEDEP}] + >=dev-python/sqlparse-0.3.1[${PYTHON_USEDEP}] + sys-libs/timezone-data +" +BDEPEND=" + test? ( + $(python_gen_impl_dep sqlite) + ${RDEPEND} + >=dev-python/docutils-0.19[${PYTHON_USEDEP}] + >=dev-python/jinja2-2.11.0[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[webp,${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + >=dev-python/selenium-4.8.0[${PYTHON_USEDEP}] + >=dev-python/tblib-1.5.0[${PYTHON_USEDEP}] + sys-devel/gettext + ) + verify-sig? ( >=sec-keys/openpgp-keys-django-20240807 ) +" + +PATCHES=( + "${FILESDIR}"/django-4.0-bashcomp.patch + "${WORKDIR}"/django-5.0-pypy3.patch + # https://github.com/django/django/commit/3426a5c33c36266af42128ee9eca4921e68ea876 + "${FILESDIR}"/django-5.0.6-py313.patch + # https://code.djangoproject.com/ticket/35661 + "${FILESDIR}"/django-5.1-more-pypy3.patch +) + +distutils_enable_sphinx docs --no-autodoc + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/django.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "${P^}.checksum.txt" sha256 "${P^}.tar.gz" + cd "${WORKDIR}" || die + fi + + default +} + +python_test() { + # Tests have non-standard assumptions about PYTHONPATH, + # and don't work with ${BUILD_DIR}/lib. + PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite \ + -v2 --parallel="${EPYTEST_JOBS:-$(makeopts_jobs)}" || + die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + newbashcomp extras/django_bash_completion ${PN}-admin + bashcomp_alias ${PN}-admin django-admin.py + + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature_header "Additional Backend support can be enabled via:" + optfeature "MySQL backend support" dev-python/mysqlclient + optfeature "PostgreSQL backend support" dev-python/psycopg:0 + optfeature_header + optfeature "GEO Django" "sci-libs/gdal[geos]" + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached + optfeature "ImageField Support" dev-python/pillow + optfeature "Password encryption" dev-python/bcrypt +} diff --git a/dev-python/django/django-5.1.8.ebuild b/dev-python/django/django-5.1.8.ebuild new file mode 100644 index 000000000000..967994101b9e --- /dev/null +++ b/dev-python/django/django-5.1.8.ebuild @@ -0,0 +1,99 @@ +# 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_{9,10,11,12,13} pypy3 ) +PYTHON_REQ_USE='sqlite?,threads(+)' + +inherit bash-completion-r1 distutils-r1 multiprocessing optfeature verify-sig + +DESCRIPTION="High-level Python web framework" +HOMEPAGE=" + https://www.djangoproject.com/ + https://github.com/django/django/ + https://pypi.org/project/Django/ +" +SRC_URI=" + https://media.djangoproject.com/releases/$(ver_cut 1-2)/${P^}.tar.gz + verify-sig? ( https://media.djangoproject.com/pgp/${P^}.checksum.txt ) +" +S="${WORKDIR}/${P^}" + +LICENSE="BSD" +# admin fonts: Roboto (media-fonts/roboto) +LICENSE+=" Apache-2.0" +# admin icons, jquery, xregexp.js +LICENSE+=" MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" +IUSE="doc sqlite test" +RESTRICT="!test? ( test )" + +RDEPEND=" + <dev-python/asgiref-4[${PYTHON_USEDEP}] + >=dev-python/asgiref-3.8.1[${PYTHON_USEDEP}] + >=dev-python/sqlparse-0.3.1[${PYTHON_USEDEP}] + sys-libs/timezone-data +" +BDEPEND=" + test? ( + $(python_gen_impl_dep sqlite) + ${RDEPEND} + >=dev-python/docutils-0.19[${PYTHON_USEDEP}] + >=dev-python/jinja2-2.11.0[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[webp,${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + >=dev-python/selenium-4.8.0[${PYTHON_USEDEP}] + >=dev-python/tblib-1.5.0[${PYTHON_USEDEP}] + sys-devel/gettext + ) + verify-sig? ( >=sec-keys/openpgp-keys-django-20240807 ) +" + +PATCHES=( + "${FILESDIR}"/django-4.0-bashcomp.patch +) + +distutils_enable_sphinx docs --no-autodoc + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/django.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "${P^}.checksum.txt" sha256 "${P^}.tar.gz" + cd "${WORKDIR}" || die + fi + + default +} + +python_test() { + # Tests have non-standard assumptions about PYTHONPATH, + # and don't work with ${BUILD_DIR}/lib. + PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite \ + -v2 --parallel="${EPYTEST_JOBS:-$(makeopts_jobs)}" || + die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + newbashcomp extras/django_bash_completion ${PN}-admin + bashcomp_alias ${PN}-admin django-admin.py + + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature_header "Additional Backend support can be enabled via:" + optfeature "MySQL backend support" dev-python/mysqlclient + optfeature "PostgreSQL backend support" dev-python/psycopg:0 + optfeature_header + optfeature "GEO Django" "sci-libs/gdal[geos]" + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached + optfeature "ImageField Support" dev-python/pillow + optfeature "Password encryption" dev-python/bcrypt +} diff --git a/dev-python/django/django-5.2.ebuild b/dev-python/django/django-5.2.ebuild new file mode 100644 index 000000000000..7473f8504efc --- /dev/null +++ b/dev-python/django/django-5.2.ebuild @@ -0,0 +1,99 @@ +# 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_{9,10,11,12,13} pypy3 ) +PYTHON_REQ_USE='sqlite?,threads(+)' + +inherit bash-completion-r1 distutils-r1 multiprocessing optfeature verify-sig + +MY_P=${PN^}-${PV/_} +DESCRIPTION="High-level Python web framework" +HOMEPAGE=" + https://www.djangoproject.com/ + https://github.com/django/django/ + https://pypi.org/project/Django/ +" +SRC_URI=" + https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz + verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt ) +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +# admin fonts: Roboto (media-fonts/roboto) +LICENSE+=" Apache-2.0" +# admin icons, jquery, xregexp.js +LICENSE+=" MIT" +SLOT="0" +IUSE="doc sqlite test" +RESTRICT="!test? ( test )" + +RDEPEND=" + <dev-python/asgiref-4[${PYTHON_USEDEP}] + >=dev-python/asgiref-3.8.1[${PYTHON_USEDEP}] + >=dev-python/sqlparse-0.3.1[${PYTHON_USEDEP}] + sys-libs/timezone-data +" +BDEPEND=" + test? ( + $(python_gen_impl_dep sqlite) + ${RDEPEND} + >=dev-python/docutils-0.19[${PYTHON_USEDEP}] + >=dev-python/jinja2-2.11.0[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[webp,${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + >=dev-python/selenium-4.8.0[${PYTHON_USEDEP}] + >=dev-python/tblib-1.5.0[${PYTHON_USEDEP}] + sys-devel/gettext + ) + verify-sig? ( >=sec-keys/openpgp-keys-django-20240807 ) +" + +PATCHES=( + "${FILESDIR}"/django-4.0-bashcomp.patch +) + +distutils_enable_sphinx docs --no-autodoc + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/django.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" + cd "${WORKDIR}" || die + fi + + default +} + +python_test() { + # Tests have non-standard assumptions about PYTHONPATH, + # and don't work with ${BUILD_DIR}/lib. + PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite \ + -v2 --parallel="${EPYTEST_JOBS:-$(makeopts_jobs)}" || + die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + newbashcomp extras/django_bash_completion ${PN}-admin + bashcomp_alias ${PN}-admin django-admin.py + + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature_header "Additional Backend support can be enabled via:" + optfeature "MySQL backend support" dev-python/mysqlclient + optfeature "PostgreSQL backend support" dev-python/psycopg:0 + optfeature_header + optfeature "GEO Django" "sci-libs/gdal[geos]" + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached + optfeature "ImageField Support" dev-python/pillow + optfeature "Password encryption" dev-python/bcrypt +} diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest index e12cffe0d922..ffceef891559 100644 --- a/dev-python/fakeredis/Manifest +++ b/dev-python/fakeredis/Manifest @@ -1,2 +1,3 @@ DIST fakeredis-2.27.0.tar.gz 157510 BLAKE2B aa427ce2bc0880aeea6fcb063cb98ff60caf600cae8b21c902a1d9193dd14d7a5f0daa7a3114c92d8eedeef84c936dba326c68e054a6c1dd775209d9055a88f3 SHA512 2fd33ca8e0a95e381cef5794beb009a20c9cf21c03954e86c56e634f00ea959615dc6021265f76c14236f219ee1bf606fbd43d46ab1db5dc3426b1c610020728 DIST fakeredis-2.28.0.tar.gz 160940 BLAKE2B 211c86d37f3d0ee2d0afd82bd4e00814cce6ff4fd4580810d3606732d41755521edd4c0447cb4e6912313d141346675e4b8649caec864592e79001549e9220b4 SHA512 5ef685ae964d4687054ecc5fa46dc02709730c0152b38b09382f62a3f0793d3930e4454acbe1d819601247cbb514750360730878013df4b1b96cb78c50195b42 +DIST fakeredis-2.28.1.tar.gz 161179 BLAKE2B 6d3699153209c04ad0befceea95a0dbbaf44a97c33aab94424dd4c1904d2813760f1d9efdc41ecc43e3b686b07e19c319918623c7aaa385cb777b6b861969492 SHA512 b48ada482c48965ed6547960e6f806d448200ea88ef2c3ff56463acd13ac9a2223465a1d5e6e8d136cafe9d84e1e4ebcd5d5d9ae34dcc44c4a05e87005b34b8e diff --git a/dev-python/fakeredis/fakeredis-2.28.1.ebuild b/dev-python/fakeredis/fakeredis-2.28.1.ebuild new file mode 100644 index 000000000000..1f96b776e646 --- /dev/null +++ b/dev-python/fakeredis/fakeredis-2.28.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 2020-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} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Fake implementation of redis API for testing purposes" +HOMEPAGE=" + https://github.com/cunla/fakeredis-py/ + https://pypi.org/project/fakeredis/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/redis-4.3[${PYTHON_USEDEP}] + <dev-python/sortedcontainers-3[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/typing-extensions[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + test? ( + dev-db/redis + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # also lupa + test/test_aioredis2.py::test_failed_script_error + # TODO + "test/test_fakeredis.py::test_set_get_nx[StrictRedis]" + "test/test_fakeredis.py::test_lpop_count[StrictRedis]" + "test/test_fakeredis.py::test_rpop_count[StrictRedis]" + "test/test_fakeredis.py::test_zadd_minus_zero[StrictRedis]" + "test/test_mixins/test_pubsub_commands.py::test_pubsub_channels[StrictRedis]" + test/test_mixins/test_set_commands.py::test_smismember_wrong_type + # new redis-server? + "test/test_mixins/test_pubsub_commands.py::test_pubsub_shardnumsub[StrictRedis]" + # json ext + test/test_json/test_json.py + test/test_json/test_json_arr_commands.py + # tdigest ext? + 'test/test_mixins/test_server_commands.py::test_command[FakeStrictRedis]' + # hexpire ext? + 'test/test_mixins/test_acl_commands.py::test_acl_cat[StrictRedis]' + ) + local EPYTEST_IGNORE=( + # these tests fail a lot... + test/test_hypothesis.py + ) + local args=( + # tests requiring lupa (lua support) + -k 'not test_eval and not test_lua and not test_script' + ) + # Note: this package is not xdist-friendly + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p asyncio -p pytest_mock "${args[@]}" +} + +src_test() { + local redis_pid="${T}"/redis.pid + local redis_port=6390 + + 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 + EOF + + # Run the tests + distutils-r1_src_test + + # Clean up afterwards + kill "$(<"${redis_pid}")" || die +} diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index 964189ed6122..62bd8226be5d 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -3,3 +3,4 @@ DIST hypothesis-6.129.4.gh.tar.gz 9528147 BLAKE2B c85806af24ddd934338f99c9d62a57 DIST hypothesis-6.130.5.gh.tar.gz 9529886 BLAKE2B 4c9bcb811892e5c1251887e0ebebefd57104c1317e38f0ae358312b2f072c2c4e914c619a8a5505bbde57ac81f8351bbc28a1e957b0942ea10f72541937c74b2 SHA512 603c4723574683410e3d660938326c2ddc1f517311613bcf47a029f62d39e7c5a7cd053041ac6837dd53b4ecc9b4ed19c2374c43a6978837c59bfd8f0c2f9862 DIST hypothesis-6.130.6.gh.tar.gz 9530097 BLAKE2B d3f6dd0f43a509cbeb250696029ab32130b180089c2b5b8af924da04b8c64238e7ff076719f145880e590e7996d8480195d2503d64e33fd7ebe0b40d8600de88 SHA512 41254e0756af3e8116818c88996e15c1582945a592e9d7ba9d2fd023a0de62a89b697460b12b99b8560c85988737597d74ae9dc4d8336d4c643ab51cfdcde0eb DIST hypothesis-6.130.7.gh.tar.gz 9530483 BLAKE2B da79c2f77e55e2d920147bd1a067e52931ec49a6e85895ca781e2a846c0d7e782959a07f6caa4f0ffbc44da924d6b800f4b61cc63edff8ac31bcce64758a7181 SHA512 6a102ebc03dd155f499a6d839a55fa3379125604e6b859e4fb56d6e8ad3bc0612779edc74c1cc987147e4f495d0b28ffb06461de78f8119ea7c13c14767ad8d9 +DIST hypothesis-6.130.8.gh.tar.gz 9538996 BLAKE2B 7f2779a69fbb1301cf7cdf0b414aff28e60cb2efb4d2451f2962cda1c048401d1e532e205c993691e1b2aa0f71af1a67274f40dd03a449db4f62de01c22c9dd8 SHA512 85df9ed0477d37b9fb96ada20aa41b8b65b27496fb0a4cfb44ebbab94d6859bc2767e8529f76b53e6f28cc122eea8529784a97b4e4b1803004072e317ecee00f diff --git a/dev-python/hypothesis/hypothesis-6.130.8.ebuild b/dev-python/hypothesis/hypothesis-6.130.8.ebuild new file mode 100644 index 000000000000..08befcf116e3 --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.130.8.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +CLI_COMPAT=( pypy3 python3_{10..13} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite" + +inherit distutils-r1 optfeature + +TAG=hypothesis-python-${PV} +MY_P=hypothesis-${TAG} +DESCRIPTION="A library for property based testing" +HOMEPAGE=" + https://github.com/HypothesisWorks/hypothesis/ + https://pypi.org/project/hypothesis/ +" +SRC_URI=" + https://github.com/HypothesisWorks/hypothesis/archive/${TAG}.tar.gz + -> ${P}.gh.tar.gz +" +S="${WORKDIR}/${MY_P}/hypothesis-python" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="cli" + +RDEPEND=" + >=dev-python/attrs-22.2.0[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/exceptiongroup-1.0.0_rc8[${PYTHON_USEDEP}] + ' 3.9 3.10) + cli? ( + $(python_gen_cond_dep ' + dev-python/black[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + ' "${CLI_COMPAT[@]}") + ) +" +BDEPEND=" + test? ( + dev-python/pexpect[${PYTHON_USEDEP}] + >=dev-python/pytest-8[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + # subtests are broken by warnings from random plugins + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=xdist.plugin,_hypothesis_pytestplugin + local -x HYPOTHESIS_NO_PLUGINS=1 + + # NB: paths need to be relative to pytest.ini, + # i.e. start with hypothesis-python/ + local EPYTEST_DESELECT=() + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # failing due to warnings from numpy/cython + hypothesis-python/tests/pytest/test_fixtures.py::test_given_plus_overridden_fixture + ) + ;; + python3.13) + EPYTEST_DESELECT+=( + # TODO + 'hypothesis-python/tests/cover/test_reflection.py::test_clean_source[case-5]' + ) + ;; + esac + + epytest -o filterwarnings= -p rerunfailures --reruns=5 \ + tests/cover tests/pytest tests/quality +} + +src_install() { + local HAD_CLI= + + distutils-r1_src_install + + if [[ ! ${HAD_CLI} ]]; then + rm -r "${ED}/usr/bin" || die + fi +} + +python_install() { + distutils-r1_python_install + if use cli && has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then + HAD_CLI=1 + else + rm -r "${D}$(python_get_scriptdir)" || die + fi +} + +pkg_postinst() { + optfeature "datetime support" dev-python/pytz + optfeature "dateutil support" dev-python/python-dateutil + optfeature "numpy support" dev-python/numpy + optfeature "django support" dev-python/django dev-python/pytz + optfeature "pandas support" dev-python/pandas + optfeature "pytest support" dev-python/pytest +} diff --git a/dev-python/inline-snapshot/Manifest b/dev-python/inline-snapshot/Manifest index 0981d8f0d427..0848fd829880 100644 --- a/dev-python/inline-snapshot/Manifest +++ b/dev-python/inline-snapshot/Manifest @@ -1,7 +1,4 @@ DIST inline_snapshot-0.20.10.tar.gz 92902 BLAKE2B 74a1f89e92bbce25eb08837524e819fdeccf6ef24c19b2344a3b54a3a95b50855be15aa1f0f6188e1da34887df800829efb05daa6df68d6386f77e11f9b1a87a SHA512 ae8f5833e9334ec7cd9e76d3149a5a05212e2255b817aea1174babe47ced163da579007c2b7d0111b4de29282062b2b32a737d36602baa59c617bba244687011 DIST inline_snapshot-0.20.5.tar.gz 92215 BLAKE2B a366a61f84d07481e1d9bf7033c691873d000f7e4dad100571481360134522db478453928fa9bce681f34d1951c75f9300bb61ce25bf950204fe168d6ed7a2fa SHA512 145dad40507ba7d457a74e63d920d2edcb24f4e7d263956912f5ec964210cae126f7e94771f1e64f5e47eca2e6124c6b87b36af5fb06d3e37242328be4daba8e -DIST inline_snapshot-0.20.8.tar.gz 92748 BLAKE2B 6e06f799197f4a9801f248d407a1e02c10aab34a04ceac9523b3d702d28af28aa680ce20d0e2158a24c7cc6887ff5b8ee71772fe02f921ef3da15785390c009c SHA512 d54ee73679f72426c544f2980ce9ba59e8964e07600d00e87e1b003cfeec7f52256b6239ba0e586f6a5cadc4ad08c1e09a722cb099d3282c7466c467e97e8b59 -DIST inline_snapshot-0.20.9.tar.gz 92793 BLAKE2B 361dbea001903a038db565b58a9b676be2eb17747ec6f482befb2601dd6858ef4773ab4db1e738124dd7768137b4d3fa1386c9898a313a8047572845768651a6 SHA512 d005aa8be72f8e2cf85248d30ddb3a12151da34868a663af8d6b0939e352dd668d405ea210adbb1e8e5db80014f9c3dbc4455c2cb4bc27565956678e484559c0 -DIST inline_snapshot-0.21.0.tar.gz 95119 BLAKE2B 816a9ca0efcd4aba502ab4704b3449b9e8f24eca0f2292a22c291b4c6f7de561df8d3c6e363b1ffb341f89a8a747dd30d5eedecce9341efad1ac0e913d7cc1bc SHA512 c8f9e2c0f57709ec8cdcfa1276871f591c4fbe51f3302fe9c3d9e9b1631db2d15992a204f8c46ef09bac6f2bb461df4350a8029676383934aa92eeea5c69f7f3 -DIST inline_snapshot-0.21.1.tar.gz 254430 BLAKE2B 4f8c1e10b1d28f81aa9aedbba8e8b8b4861aec6880c3fd6387d68a9d970d8c7e16d93618a06fa09006386ab3bbd8e98eab481e9b5ae4868c0eecca126f6c3e4a SHA512 da55d8ab96e5b5cae5635632014a6924807d93b2ec00ec8b5f2ca738fc32ef45ccd652d546ac2e0fad112cf1154538e471d0790d428aebb2d831a5dd0823f748 DIST inline_snapshot-0.21.2.tar.gz 254612 BLAKE2B e8ce2a6dec258c63adefaf4baa65534cab1a707d6ce89e535afcd53835f89c5b420d029ac7eea1690623cb9566c7435330f320ea412e2e23a70b16a15191031b SHA512 44a2d7c809a9a52e46ae028e39ff25e75ba2b492d32671570dfb7faa6d23e8824edfe15bddd371a9e23933e964baa60f2d16fe3e6a330ca8c84c2734f9b5bfb6 +DIST inline_snapshot-0.21.3.tar.gz 254753 BLAKE2B 5b9dd20fd8844c3b63de9f39fdc9e6fd4be1e208006bb4ffdb9e3a643412de5ac8314ff383836d96dfab819c660ca453a417dd85f4626f5c4450f763844c5cc0 SHA512 e77bebe7026700fad239b8d294f0cec0e37f309af6c5584eddaef23d6b54f521b3acb8e499238c9953ecf43275c32f2643a67348ee29403cd9262d054ae21dec diff --git a/dev-python/inline-snapshot/inline-snapshot-0.20.8.ebuild b/dev-python/inline-snapshot/inline-snapshot-0.20.8.ebuild deleted file mode 100644 index fb85b4885ecd..000000000000 --- a/dev-python/inline-snapshot/inline-snapshot-0.20.8.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 2024-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 pypi - -DESCRIPTION="Create and update inline snapshots in your Python tests" -HOMEPAGE=" - https://15r10nk.github.io/inline-snapshot/ - https://github.com/15r10nk/inline-snapshot/ - https://pypi.org/project/inline-snapshot/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" - -RDEPEND=" - >=dev-python/asttokens-2.0.5[${PYTHON_USEDEP}] - >=dev-python/executing-2.2.0[${PYTHON_USEDEP}] - >=dev-python/rich-13.7.1[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/tomli-2.0.0[${PYTHON_USEDEP}] - ' 3.10) -" -BDEPEND=" - test? ( - dev-python/attrs[${PYTHON_USEDEP}] - >=dev-python/black-23.3.0[${PYTHON_USEDEP}] - >=dev-python/dirty-equals-0.7.0[${PYTHON_USEDEP}] - >=dev-python/hypothesis-6.75.5[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/mypy[${PYTHON_USEDEP}] - ' 'python*') - >=dev-python/pydantic-2[${PYTHON_USEDEP}] - >=dev-python/pytest-freezer-0.4.8[${PYTHON_USEDEP}] - >=dev-python/pytest-mock-3.14.0[${PYTHON_USEDEP}] - >=dev-python/pytest-subtests-0.11.0[${PYTHON_USEDEP}] - ) -" - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -python_test() { - local EPYTEST_DESELECT=( - # requires pyright - 'tests/test_typing.py::test_typing[pyright]' - # TODO - tests/test_formating.py::test_format_command_fail - ) - - local -x COLUMNS=80 - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - local -x PYTEST_PLUGINS=inline_snapshot.pytest_plugin,pytest_freezer,pytest_subtests.plugin,xdist.plugin - local -x PYTHONPATH=${S}/src - epytest -p pytest_mock -} diff --git a/dev-python/inline-snapshot/inline-snapshot-0.20.9.ebuild b/dev-python/inline-snapshot/inline-snapshot-0.20.9.ebuild deleted file mode 100644 index fb85b4885ecd..000000000000 --- a/dev-python/inline-snapshot/inline-snapshot-0.20.9.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 2024-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 pypi - -DESCRIPTION="Create and update inline snapshots in your Python tests" -HOMEPAGE=" - https://15r10nk.github.io/inline-snapshot/ - https://github.com/15r10nk/inline-snapshot/ - https://pypi.org/project/inline-snapshot/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" - -RDEPEND=" - >=dev-python/asttokens-2.0.5[${PYTHON_USEDEP}] - >=dev-python/executing-2.2.0[${PYTHON_USEDEP}] - >=dev-python/rich-13.7.1[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/tomli-2.0.0[${PYTHON_USEDEP}] - ' 3.10) -" -BDEPEND=" - test? ( - dev-python/attrs[${PYTHON_USEDEP}] - >=dev-python/black-23.3.0[${PYTHON_USEDEP}] - >=dev-python/dirty-equals-0.7.0[${PYTHON_USEDEP}] - >=dev-python/hypothesis-6.75.5[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/mypy[${PYTHON_USEDEP}] - ' 'python*') - >=dev-python/pydantic-2[${PYTHON_USEDEP}] - >=dev-python/pytest-freezer-0.4.8[${PYTHON_USEDEP}] - >=dev-python/pytest-mock-3.14.0[${PYTHON_USEDEP}] - >=dev-python/pytest-subtests-0.11.0[${PYTHON_USEDEP}] - ) -" - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -python_test() { - local EPYTEST_DESELECT=( - # requires pyright - 'tests/test_typing.py::test_typing[pyright]' - # TODO - tests/test_formating.py::test_format_command_fail - ) - - local -x COLUMNS=80 - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - local -x PYTEST_PLUGINS=inline_snapshot.pytest_plugin,pytest_freezer,pytest_subtests.plugin,xdist.plugin - local -x PYTHONPATH=${S}/src - epytest -p pytest_mock -} diff --git a/dev-python/inline-snapshot/inline-snapshot-0.21.1.ebuild b/dev-python/inline-snapshot/inline-snapshot-0.21.1.ebuild deleted file mode 100644 index f6e9b5488ace..000000000000 --- a/dev-python/inline-snapshot/inline-snapshot-0.21.1.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 2024-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 pypi - -DESCRIPTION="Create and update inline snapshots in your Python tests" -HOMEPAGE=" - https://15r10nk.github.io/inline-snapshot/ - https://github.com/15r10nk/inline-snapshot/ - https://pypi.org/project/inline-snapshot/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" - -RDEPEND=" - >=dev-python/asttokens-2.0.5[${PYTHON_USEDEP}] - >=dev-python/executing-2.2.0[${PYTHON_USEDEP}] - >=dev-python/pytest-8.3.4[${PYTHON_USEDEP}] - >=dev-python/rich-13.7.1[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/tomli-2.0.0[${PYTHON_USEDEP}] - ' 3.10) -" -BDEPEND=" - test? ( - dev-python/attrs[${PYTHON_USEDEP}] - >=dev-python/black-23.3.0[${PYTHON_USEDEP}] - >=dev-python/dirty-equals-0.7.0[${PYTHON_USEDEP}] - >=dev-python/hypothesis-6.75.5[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/mypy[${PYTHON_USEDEP}] - ' 'python*') - >=dev-python/pydantic-2[${PYTHON_USEDEP}] - >=dev-python/pytest-freezer-0.4.8[${PYTHON_USEDEP}] - >=dev-python/pytest-mock-3.14.0[${PYTHON_USEDEP}] - >=dev-python/pytest-subtests-0.11.0[${PYTHON_USEDEP}] - ) -" - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -python_test() { - local EPYTEST_DESELECT=( - # requires pyright - 'tests/test_typing.py::test_typing[pyright]' - # TODO - tests/test_formating.py::test_format_command_fail - ) - - local -x COLUMNS=80 - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - local -x PYTEST_PLUGINS=inline_snapshot.pytest_plugin,pytest_freezer,pytest_subtests.plugin,xdist.plugin - local -x PYTHONPATH=${S}/src - epytest -p pytest_mock -} diff --git a/dev-python/inline-snapshot/inline-snapshot-0.21.0.ebuild b/dev-python/inline-snapshot/inline-snapshot-0.21.3.ebuild index f6e9b5488ace..f6e9b5488ace 100644 --- a/dev-python/inline-snapshot/inline-snapshot-0.21.0.ebuild +++ b/dev-python/inline-snapshot/inline-snapshot-0.21.3.ebuild diff --git a/dev-python/lit/Manifest b/dev-python/lit/Manifest index 518a294cf47a..148419e3a6c1 100644 --- a/dev-python/lit/Manifest +++ b/dev-python/lit/Manifest @@ -14,4 +14,6 @@ DIST llvm-project-1c3a9a853ce68c3c539e7cab21380b9d8b18f426.tar.gz 229448743 BLAK DIST llvm-project-1d133420dc512487e2be0e9d86755f2a7c3497a7.tar.gz 229268288 BLAKE2B aca79bcca631deeab429a03cd2732d78d8ecf0c9615bce181445ed875436806609dc85a57d4f97109492833d620d060ea93fed450a4912c2d94597aeabf84974 SHA512 24ecadfccdf785bfbf27d5007afd2a4d5868493b2c5f48d6cf07c335bfbfef5cba4f12a639971e5f95877ae3b8c7b7fc0c210e404d21036af553de82a5059037 DIST llvm-project-20.1.1.src.tar.xz 147215020 BLAKE2B d1774d060036b5340f765d68cc23cbd1e00730874cb3e65b7236303238d7922a7fa191b631c20c3bf17e54c933672a355d4424f2beea17cd25fcf9f5c4c625dd SHA512 b851d3e24a2775f6e789720614a8192d72956f447a39d75e5160a8acf6bd3a3386fab2cca5590b7e020b65e408ccf32432f8dc03519fd4cf60b4b5674fe0547e DIST llvm-project-20.1.1.src.tar.xz.sig 566 BLAKE2B 76c49401d9b8e283fc29586c32fc1b5205d76b3b83d0f99aa2ac09a63b058478e08588dcfbfc728110172b639eeaf04a884f4e6d707b94cad0dbf2d0dcb30a4f SHA512 469b03f3ddbe56b074724375b09a45ee2730bee0ba4b25f64f93d93ef609c33d39136f051c216a74a35d98a70ffcd3d7507e38d19a20d5006c29a954ca32813b +DIST llvm-project-20.1.2.src.tar.xz 147229028 BLAKE2B 90be4c8b69d44bc3a295f3f63081f999cf35d05e9157ab104d403a5d5b6c3ff97b57a89598d2ec0413988f93a23f97f485b2216bbf0630cade754e9830246621 SHA512 c95e088e471d49c6692c8af1a7e40924467e4c269dada019c44455687c9f0e6a213b9b3ac8afa4e3d20cb3e757afc3400152e7cd06981aeebd61591cac15580d +DIST llvm-project-20.1.2.src.tar.xz.sig 566 BLAKE2B fa4637cd41bddb0425567b17bcb0ba4800ec9a689897610febfba7f49f8218d6aff7bb8f7ecf6bb927397096ca49c0c1817b243e5ba7fc0ba51993ef532dadeb SHA512 d3f6a350ebd9884878442ea202f58328f8e85c30cfb150371e4af7fa8dc560bb421cd0f49f49e6bc95f57de6c06543633f0b2799aab9590750f440e099424e01 DIST llvm-project-21eeca3db0341fef4ab4a6464ffe38b2eba5810c.tar.gz 229546432 BLAKE2B e783f08b93498b252741a07fd3aa3383ca93f66688f9bbdb2e11185c660dfff1020ab4a1ca803ab69ab28dc2fd8b5c3855f45c0b77851b8e6edeb0dc5bf6cbd4 SHA512 54420956b36f3bccabea2171a4103ca20d6b136e1d1f7f217e0ec735be4542bbd840ef228c55f3e9103ad2f9fb41393e611d5aaa1521d01fdd163b770b80ba0b diff --git a/dev-python/lit/lit-20.1.2.ebuild b/dev-python/lit/lit-20.1.2.ebuild new file mode 100644 index 000000000000..2370c09d76de --- /dev/null +++ b/dev-python/lit/lit-20.1.2.ebuild @@ -0,0 +1,46 @@ +# 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_{9,10,11,12,13} ) + +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" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +# Tests require 'FileCheck' and 'not' utilities (from llvm) +BDEPEND=" + test? ( + dev-python/psutil[${PYTHON_USEDEP}] + llvm-core/llvm + ) +" + +LLVM_COMPONENTS=( llvm/utils/lit ) +llvm.org_set_globals + +# TODO: move the manpage generation here (from llvm-core/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/metakernel/Manifest b/dev-python/metakernel/Manifest index ca3f26d06f68..b4226d6e0d11 100644 --- a/dev-python/metakernel/Manifest +++ b/dev-python/metakernel/Manifest @@ -1 +1,2 @@ DIST metakernel-0.30.2.tar.gz 191708 BLAKE2B 16189dd6b0f1f1dc1a9b56de152fee07f6a0d702f46bb8686580a1bdf2c008f4a3b8cda26b83f75ed4b71695b912caa02889edcf1b1d229e5202cec63929b77a SHA512 2561514764af0dbef0c674c44f5bbd73cd88c760a7836a7679da88c68bcce2791b8db3ecfb55e3b01aa7a544d08681216c1d113939be06b7715850f427cbec7c +DIST metakernel-0.30.3.tar.gz 191762 BLAKE2B 9e2e94f4fe4b5c64c336b0664ca39100f63e245224f3d179df1fae01cd6cfba7b7ae2ba229e14f48b9c89dfae0b14d055a0b91dc5d93c9d5fef562a8eee9e43a SHA512 2ee96104c2af9b54bbd860411af8f9e2470f326f64123bddecf2433aedca8c1d9755873349c33dfb3f830125cc127322f2dbf7364481792ca36899496bf23af8 diff --git a/dev-python/metakernel/metakernel-0.30.3.ebuild b/dev-python/metakernel/metakernel-0.30.3.ebuild new file mode 100644 index 000000000000..28e0e42b97ba --- /dev/null +++ b/dev-python/metakernel/metakernel-0.30.3.ebuild @@ -0,0 +1,54 @@ +# 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} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Metakernel for Jupyter" +HOMEPAGE=" + https://github.com/Calysto/metakernel/ + https://pypi.org/project/metakernel/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + <dev-python/ipykernel-7[${PYTHON_USEDEP}] + >=dev-python/ipykernel-5.5.6[${PYTHON_USEDEP}] + >=dev-python/jupyter-core-4.9.2[${PYTHON_USEDEP}] + >=dev-python/jedi-0.18[${PYTHON_USEDEP}] + >=dev-python/pexpect-4.8[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/jupyter-kernel-test[${PYTHON_USEDEP}] + dev-python/pydot[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # fragile + metakernel/tests/test_parser.py::test_path_completions + # broken by color codes in output + # https://github.com/Calysto/metakernel/issues/266 + metakernel/tests/test_replwrap.py::REPLWrapTestCase::test_bash + # requires starting ipycluster + metakernel/magics/tests/test_parallel_magic.py::test_parallel_magic + # Broken with custom command not found handler + metakernel/magics/tests/test_shell_magic.py::test_shell_magic + metakernel/magics/tests/test_shell_magic.py::test_shell_magic3 + # https://github.com/Calysto/metakernel/issues/279 + metakernel/tests/test_magic.py::test_get_help + metakernel/tests/test_replwrap.py::REPLWrapTestCase::test_python +) diff --git a/dev-python/mmtf-python/mmtf-python-1.1.3.ebuild b/dev-python/mmtf-python/mmtf-python-1.1.3.ebuild index 1cc24dd371e2..9b3e2bbc22cb 100644 --- a/dev-python/mmtf-python/mmtf-python-1.1.3.ebuild +++ b/dev-python/mmtf-python/mmtf-python-1.1.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/protobuf/protobuf-5.29.4.ebuild b/dev-python/protobuf/protobuf-5.29.4.ebuild index bbc42cb227ba..4417da5d09e0 100644 --- a/dev-python/protobuf/protobuf-5.29.4.ebuild +++ b/dev-python/protobuf/protobuf-5.29.4.ebuild @@ -26,4 +26,4 @@ SRC_URI=" LICENSE="BSD" SLOT="0/$(ver_cut 1-3)" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" diff --git a/dev-python/py-zabbix/py-zabbix-1.1.7-r1.ebuild b/dev-python/py-zabbix/py-zabbix-1.1.7-r1.ebuild index 6dfacd97d8b3..015389e84cbd 100644 --- a/dev-python/py-zabbix/py-zabbix-1.1.7-r1.ebuild +++ b/dev-python/py-zabbix/py-zabbix-1.1.7-r1.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYPI_NO_NORMALIZE=1 -PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) inherit distutils-r1 pypi diff --git a/dev-python/pydantic-core/Manifest b/dev-python/pydantic-core/Manifest index 2c5a973ea080..ab05447b43fc 100644 --- a/dev-python/pydantic-core/Manifest +++ b/dev-python/pydantic-core/Manifest @@ -52,6 +52,7 @@ DIST portable-atomic-1.6.0.crate 140689 BLAKE2B c91d06e04a87c9a207233d8a850859aa DIST proc-macro2-1.0.86.crate 48958 BLAKE2B 4b89e07f23af8328dbb34fe2b3f1b202f1e6a3885a6269740a23359b41bb4099ac2484565d3b2b0936261689ca525785ac620c766997234fd8d0f409e80e5ea3 SHA512 1cdb7e22a35ae231d880c9420784c9acf97bda2db258b3d34aae5061dc1858449defe19a49e12c6a4173906aa72a4115059ac2db0fc760205fd2ab8b5b414434 DIST pydantic_core-2.27.2.tar.gz 413443 BLAKE2B 2755ba694b17894ff89704203c275315dc6a600e5e89965f24800ff032802168a9fa5bbb26e9714dae42f645e34e0ac32191415fae04bd53a8d04c41f1d3e2c4 SHA512 4e0bc0137463d3a76bb584da76751916ddaa18383efbe15a303880649df67de22c67a8a6e5f889c76292c4557914811d942fd3373dad65b63d9fb1f84f34ce3e DIST pydantic_core-2.33.0.tar.gz 434080 BLAKE2B 8f5e061e832db498079458b74a8c5403ca549212c3ce4bd26a261d49c9e23c34999b67cd53becfc089360523e0a0c1bf97776fbbc0e931fbe685d2f1db02e2fe SHA512 7b7c52682afdab99837c9109e01e841bee7d280d63cad40c278480e33dfd4791a058b9f80d2aaacce9b81987b561e9b5d3009510023e216e211ea8e081df3fc4 +DIST pydantic_core-2.33.1.tar.gz 434395 BLAKE2B 3819c69b829655403888ac7feff11081f31cb459ca41bef7b4aec2afcf3285126ab01e8ba04c91ac7b1f74495dc85236bd5b7da9b3673497fc3eb8fa6eafe992 SHA512 f6e178296b4e47e498e2c5f65ee00c83fdd6f29af670215acf014fe2e29eab1b4072ab27f4c060d91e74171652e077ec561b9857f6bca20c6518f3eeec332533 DIST pyo3-0.22.6.crate 546746 BLAKE2B 2a6f8c5ce2ee96e1812177a11c5fad7e15f3a73d9e30850edf0855b13db6cc95427e186883b4aae25a2d2466d3fe82f56180a39f3e6e0a54bb0a3ef78d495400 SHA512 d746007eae22f5b7bbf173759c61cbd2aa893898d88b8be5680a0237deec4d113246edf5f62fbbec3579ad4bd7307499b94b887ec306112ffe3df5190fe70e44 DIST pyo3-0.24.0.crate 1108432 BLAKE2B 03098e1ed1f2bcb489ab5fbaf2605631f75804ad138591ae88975c287b8e7544e5f70ef7e3261625075498ac00545b79f6c0b5aab3bcdee2897cbbfabc3f7e87 SHA512 2b9be3cc780c48198ccad08c304053c5248d7c3b7a32e8a3eeba48246b962aa71cbf31ab8c49cab9b555933cccd447412761017b477019a35dc2598999fe63ad DIST pyo3-build-config-0.22.6.crate 31369 BLAKE2B a1a72de120c4ac4f23a3faaf9b2e340231d7a778a29083ef25fd863fa213afb2a9b720333e3d46a6e1d32105f63073276a23b9bcd999a97fe71eaff3afc7db99 SHA512 9ab44c830e56ddb9ee537ce438fc690664d2c5416f01cdf72498ce062e4c1e7192eac8b7dc2de86c9f2212890b133b69a66209b1615c4eabdf4eaa6882a980fe diff --git a/dev-python/pydantic-core/pydantic-core-2.33.1.ebuild b/dev-python/pydantic-core/pydantic-core-2.33.1.ebuild new file mode 100644 index 000000000000..3ca6cc648fba --- /dev/null +++ b/dev-python/pydantic-core/pydantic-core-2.33.1.ebuild @@ -0,0 +1,178 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=maturin +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +CRATES=" + ahash@0.8.11 + aho-corasick@1.1.3 + autocfg@1.3.0 + base64@0.22.1 + bitvec@1.0.1 + cc@1.0.101 + cfg-if@1.0.0 + displaydoc@0.2.5 + enum_dispatch@0.3.13 + equivalent@1.0.1 + form_urlencoded@1.2.1 + funty@2.0.0 + getrandom@0.2.15 + hashbrown@0.14.5 + heck@0.5.0 + hex@0.4.3 + icu_collections@1.5.0 + icu_locid@1.5.0 + icu_locid_transform@1.5.0 + icu_locid_transform_data@1.5.0 + icu_normalizer@1.5.0 + icu_normalizer_data@1.5.0 + icu_properties@1.5.1 + icu_properties_data@1.5.0 + icu_provider@1.5.0 + icu_provider_macros@1.5.0 + idna@1.0.3 + idna_adapter@1.2.0 + indexmap@2.2.6 + indoc@2.0.5 + itoa@1.0.11 + jiter@0.9.0 + lexical-parse-float@1.0.5 + lexical-parse-integer@1.0.5 + lexical-util@1.0.6 + libc@0.2.155 + litemap@0.7.3 + memchr@2.7.4 + memoffset@0.9.1 + num-bigint@0.4.6 + num-integer@0.1.46 + num-traits@0.2.19 + once_cell@1.19.0 + percent-encoding@2.3.1 + portable-atomic@1.6.0 + proc-macro2@1.0.86 + pyo3-build-config@0.24.0 + pyo3-ffi@0.24.0 + pyo3-macros-backend@0.24.0 + pyo3-macros@0.24.0 + pyo3@0.24.0 + python3-dll-a@0.2.13 + quote@1.0.36 + radium@0.7.0 + regex-automata@0.4.8 + regex-syntax@0.8.5 + regex@1.11.1 + rustversion@1.0.17 + ryu@1.0.18 + serde@1.0.218 + serde_derive@1.0.218 + serde_json@1.0.138 + smallvec@1.14.0 + speedate@0.15.0 + stable_deref_trait@1.2.0 + static_assertions@1.1.0 + strum@0.26.3 + strum_macros@0.26.4 + syn@2.0.82 + synstructure@0.13.1 + tap@1.0.1 + target-lexicon@0.13.2 + tinystr@0.7.6 + unicode-ident@1.0.12 + unindent@0.2.3 + url@2.5.4 + utf16_iter@1.0.5 + utf8_iter@1.0.4 + uuid@1.15.1 + version_check@0.9.5 + wasi@0.11.0+wasi-snapshot-preview1 + write16@1.0.0 + writeable@0.5.5 + wyz@0.5.1 + yoke-derive@0.7.4 + yoke@0.7.4 + zerocopy-derive@0.7.34 + zerocopy@0.7.34 + zerofrom-derive@0.1.4 + zerofrom@0.1.4 + zerovec-derive@0.10.3 + zerovec@0.10.4 +" + +inherit cargo distutils-r1 pypi + +DESCRIPTION="Core validation logic for pydantic written in Rust" +HOMEPAGE=" + https://github.com/pydantic/pydantic-core/ + https://pypi.org/project/pydantic-core/ +" +SRC_URI+=" + ${CARGO_CRATE_URIS} +" + +LICENSE="MIT" +# Dependent crate licenses +LICENSE+=" + Apache-2.0-with-LLVM-exceptions MIT Unicode-3.0 Unicode-DFS-2016 + || ( Apache-2.0 Boost-1.0 ) +" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/typing-extensions-4.7.1[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/dirty-equals-0.5.0[${PYTHON_USEDEP}] + >=dev-python/hypothesis-6.63.0[${PYTHON_USEDEP}] + >=dev-python/inline-snapshot-0.13.3[${PYTHON_USEDEP}] + >=dev-python/pytest-mock-3.10.0[${PYTHON_USEDEP}] + >=dev-python/pytest-timeout-2.1.0[${PYTHON_USEDEP}] + >=dev-python/pydantic-1.10.4[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/pydantic_core/_pydantic_core.*.so" + +src_prepare() { + distutils-r1_src_prepare + + sed -i -e '/--benchmark/d' pyproject.toml || die + sed -i -e '/^strip/d' Cargo.toml || die +} + +python_test() { + local EPYTEST_IGNORE=( + tests/benchmarks + ) + local EPYTEST_DESELECT=( + # TODO: recursion till segfault + tests/serializers/test_functions.py::test_recursive_call + ) + + case ${EPYTHON} in + pypy3.11) + EPYTEST_DESELECT+=( + # different repr() in exception + # https://github.com/pypy/pypy/issues/5220 + tests/validators/test_arguments.py::test_error_display + tests/validators/test_definitions_recursive.py::test_error_inside_definition_wrapper + tests/validators/test_string.py::test_invalid_regex + tests/validators/test_string.py::test_backtracking_regex_rust_unsupported + tests/validators/test_union.py::test_empty_choices + ) + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + rm -rf pydantic_core || die + # tests link to libpython, so they fail to link on pypy3 + [[ ${EPYTHON} != pypy3* ]] && cargo_src_test + epytest -p pytest_mock -p timeout -o xfail_strict=False -o addopts= +} diff --git a/dev-python/qrcode/Manifest b/dev-python/qrcode/Manifest index bdd161bc5c22..d2e9cae5a9b4 100644 --- a/dev-python/qrcode/Manifest +++ b/dev-python/qrcode/Manifest @@ -1 +1,2 @@ DIST qrcode-8.0.tar.gz 42743 BLAKE2B 16cea7b8030eeebd6d165a60193c2d682edc066d8f857d5e4ae19b1dbe653fce2dc4562822def07e3c7fd0721ae57208c2993165865918af67f8bdf357dfb556 SHA512 14d37ef4fe0fca3253c92f39db7948f9d804f600ee3bf9ba053baf4e01488f340cb4977b94a338f448dd4f9007f9f0cb7c5cf1db5405d98a9b38a809c8ed8650 +DIST qrcode-8.1.tar.gz 41549 BLAKE2B bf7059bb1956553f18e2f3882abe604f909e388c8a2b402b7f9393886d11211aa4cc474802ba886c438a6c82756a0a8be060017ea67c5f2d780a65682e0b8180 SHA512 e0cfde2e81329e49e74a0e9d953e12656e92f7a920beb5c7ebbc8e3737dbb345f83f3326d69f0addffef3506acaeb180ff22b9fe6b81f987e8fe26d223257d7c diff --git a/dev-python/qrcode/qrcode-8.1.ebuild b/dev-python/qrcode/qrcode-8.1.ebuild new file mode 100644 index 000000000000..7f7b617d4d78 --- /dev/null +++ b/dev-python/qrcode/qrcode-8.1.ebuild @@ -0,0 +1,34 @@ +# 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} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="QR Code generator on top of PIL" +HOMEPAGE=" + https://github.com/lincolnloop/python-qrcode/ + https://pypi.org/project/qrcode/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86" + +# optional deps: +# - pillow and lxml for svg backend, set as hard deps +RDEPEND=" + dev-python/lxml[${PYTHON_USEDEP}] + >=dev-python/pillow-9.1.0[${PYTHON_USEDEP}] + dev-python/pypng[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # release process-specific tests, broken on py3.12 + qrcode/tests/test_release.py +) diff --git a/dev-python/tenacity/Manifest b/dev-python/tenacity/Manifest index 462ea2468fa3..cf1696c56ec2 100644 --- a/dev-python/tenacity/Manifest +++ b/dev-python/tenacity/Manifest @@ -1 +1,2 @@ DIST tenacity-9.0.0.tar.gz 47421 BLAKE2B f263af6be0c2d3f26969884d0f211111c68d28dc0cdeddc4ff03791cb5344e60a481a80321d6946bbc9982fac61d0b6084e299766e620893cc30fdc8dae39a8d SHA512 c6236e7630d46048c7c8fb60213591b3489576b8a4413f0bc2d692751f456882c177bdbc425d5921d7679a019dd39371dfa5cd1210e68a3faefd5beb799961ea +DIST tenacity-9.1.2.tar.gz 48036 BLAKE2B 5e91e0380d7cd5f3b94148f3817c3a296ab12a8ce4996ec9a917e5abb42575496c83dcbfa0034d1cff074add0a963c4b58ef9d5976fd412edf86196cc9a2e7a4 SHA512 35dff9ab9f1c2b9ab0d807bc790b92a3a3d4e133aecb9921a700af0e6dd9bf805f551a2409dc4341088a44b0693ec0b0fa6b703305b312a988da5e3dc1f61d11 diff --git a/dev-python/tenacity/tenacity-9.1.2.ebuild b/dev-python/tenacity/tenacity-9.1.2.ebuild new file mode 100644 index 000000000000..17eaada45c4c --- /dev/null +++ b/dev-python/tenacity/tenacity-9.1.2.ebuild @@ -0,0 +1,39 @@ +# 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_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="General-purpose retrying library" +HOMEPAGE=" + https://github.com/jd/tenacity/ + https://pypi.org/project/tenacity/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~ppc ~ppc64 ~riscv ~sparc ~x86" + +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + >=dev-python/tornado-6.4-r1[${PYTHON_USEDEP}] + dev-python/typeguard[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # fragile to timing + tests/test_asyncio.py::TestContextManager::test_sleeps + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/termcolor/Manifest b/dev-python/termcolor/Manifest index 617b01272122..f83dabe84e4e 100644 --- a/dev-python/termcolor/Manifest +++ b/dev-python/termcolor/Manifest @@ -1,2 +1,3 @@ DIST termcolor-2.5.0.py.tar.gz 13057 BLAKE2B de67e0bca53daca32816cc4eff4f48d41c6e7a61d96892a050fd19fce95d9ed1fbc664a512a70ae91ffd40303780a293a1a793005b1b7779767e2d884126d5ca SHA512 2ef98f82387cc251f6762df7eb103407c52d3dc55d76c71dbf618c38a5c01e12803e8d6fa38f1ec8042ab373b79723e12ef642c18d4b126790a4a3a393ea0917 DIST termcolor-3.0.0.py.tar.gz 12916 BLAKE2B 776c39f7631f17e96efb2ad15b07d680f176c3d008768ea7b299a6a8c6407bdad07cc73a568b8be814c4190f1cc8f45bcf1fe5ccd6af781de0bb4a967847cf2d SHA512 d93efa81bfbddb53981587ac07dfe294178b81d7d4ef234b708773c8d3f5b0b4a47c22a687ff01f7056992cc2e19572c5d84c2d660b92244f43dde148467c90f +DIST termcolor-3.0.1.py.tar.gz 12935 BLAKE2B 88f8a98449c414538bb7f275fcbcc37a82e78dcf05e70c2352194e2a5869b9b04df872e51d283fd0c5e2a70173831ba3e4ec2d3885213898e0bd6007b964a5a0 SHA512 a74ff0b15abcf304b2bcf870840dace182e209dddf1e0b8d40a4a8b9dc426512e5b753b6aae4e6b34327afdfaabc875be5cabc7312896f5448ba15b9161a8885 diff --git a/dev-python/termcolor/termcolor-3.0.1.ebuild b/dev-python/termcolor/termcolor-3.0.1.ebuild new file mode 100644 index 000000000000..152c576d8921 --- /dev/null +++ b/dev-python/termcolor/termcolor-3.0.1.ebuild @@ -0,0 +1,34 @@ +# 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 pypi + +DESCRIPTION="ANSI Color formatting for output in terminal" +HOMEPAGE=" + https://github.com/termcolor/termcolor/ + https://pypi.org/project/termcolor/ +" +# rename is for avoiding conflict with dev-cpp/termcolor +SRC_URI="$(pypi_sdist_url) -> ${P}.py.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + + # avoid dep on coverage (to ignore warnings from coverage) + sed -i -e '/coverage/d' pyproject.toml || die +} diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest index 9f499c7ca05b..10dbfbedd9ca 100644 --- a/dev-python/uv/Manifest +++ b/dev-python/uv/Manifest @@ -4,6 +4,8 @@ DIST tl-6e25b2ee2513d75385101a8ff9f591ef51f314ec.gh.tar.gz 37106 BLAKE2B c30d1c3 DIST uv-0.6.10-crates.tar.xz 58024120 BLAKE2B 87c8f715296171539cbf291304f17e483abcfd1aea9cdd933cbaac80411a465912fa3459587983f59035c597b186f69a5a16f124720ff0fd2f1ba5accc3755b8 SHA512 09ad70459e4be2ec1cad5bdb6823cabb7cf696e74aef445770ef3878a684e6c11d57d53bd64af31f5efb4f3f4ee16b92791668825baea1a6a135e9eb2774ee30 DIST uv-0.6.10.gh.tar.gz 3816981 BLAKE2B 2f1ba71073a5714428120376fdafd3c37e40b4540fc600c7b06e07ddd4a35358a33a0ce1a217f810d448b43fd36a20db7602880ab933dd2c2b8e7ca690b07f94 SHA512 d1a034ae8781b5401a9ad77e00f7d4ae1e401359232e44a7395583e22c88f80e3741a21b52a3a4f659edbd2e643ffe3ad10b58964dc7c3c12bee60f8c0414930 DIST uv-0.6.11.gh.tar.gz 3824564 BLAKE2B 504a910fc94dc1ddffc5ba97a131c0647148fd8b67eddaa8254a8cf272e22c463f2529c1452b1b97a67381bcac145dd1b1883473cbcb7ce4df021773e2a32997 SHA512 4cad1246de2e8767394b89448e009a0c51a2e2d95c3eaac2c2ed76a03951fd539cefb38d2e61dc9ed0cc709c1a21a9221bb0437d1862d0d2a389977e19072835 +DIST uv-0.6.12-crates.tar.xz 58030004 BLAKE2B 6449a03e575e6635908cc55b5b3e08f83d380c278d73185f48a335cbad3515bafe0a28a72716dad0853428955ce35a195ad3810399cb7c205227ef1c442cdcea SHA512 31d768c787c3572be0c7a482b2db6d5ee3213f2a4e2b33651b564c90f107cce044a3abfff0ede8db3be6d530b602f20a9d0bc820b16f2ef0fa07f5cd52ba2d76 +DIST uv-0.6.12.gh.tar.gz 3828283 BLAKE2B ccec04082014785efb43e05395caf2d8dfe783791da739a15644541ed98984dec297c9f6ccca95ffffd50102568b4b17807f7b4503749076d55eac3007c82fac SHA512 c61476e1229d7ac9d9cd00308afde31f7acad469e2f69b3131b7723495c8a5bbac5cf545c0d657048433411ad706f96aa2296bcb3c1b6ff3cb5d0f18e786a4d5 DIST uv-0.6.4-crates.tar.xz 60120880 BLAKE2B 67e7cba1df7e8c18e55d7d1a5748db7995c19a8bc4d156b5cdcf8d6af3922ea52279e2351085fd2142806f6692383535dec1d8354c5197d3ed032f768c552dbc SHA512 0f13d3e6e77397ef2db40122736fe4d990003388dc2f2f782b9aea317fb30f30cbb35b1d800b252e84f239fd570208df55f281432e91e546b5edcf82b9a2b68e DIST uv-0.6.5.gh.tar.gz 3782938 BLAKE2B 82528fbd5c65cc07dd4ba647dd86d81673370afe8568690601e54faa54ad0ffa42db375b63580b0ae67f1fda67a66f54d990ce97704c614e80bf54666ed3e11e SHA512 cb1564905d56ac5873db91476b9a0a09e450c2cfaf386d9d04b1861d1e798ec43d7f28e03099d732e03cc58f79820a7f825d7d8869b40f71fab4308412e401b5 DIST uv-0.6.6-crates.tar.xz 60230976 BLAKE2B 9b0dcb0d8246fc275f5b508c48661f0844622ee9280b9000e0131e6101d548b92f983502fa21070fd41aa20854aa0931b3a5be13fc96def5bafab6d0eebe943f SHA512 b1925417eb34135e9e9d92a8d832055cd3677142ac9e7369d9e1f64ceba02632914c6ddc669257a5d75dd27b8cea4612db2bb295d2b747a74e169a8e23fc5a6b diff --git a/dev-python/uv/uv-0.6.12.ebuild b/dev-python/uv/uv-0.6.12.ebuild new file mode 100644 index 000000000000..44cb91d40951 --- /dev/null +++ b/dev-python/uv/uv-0.6.12.ebuild @@ -0,0 +1,170 @@ +# 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/charliermarsh/rs-async-zip;c909fda63fcafe4af496a07bfda28a5aae97e58d;rs-async-zip-%commit%' + [pubgrub]='https://github.com/astral-sh/pubgrub;b70cf707aa43f21b32f3a61b8a0889b15032d5c4;pubgrub-%commit%' + [tl]='https://github.com/astral-sh/tl;6e25b2ee2513d75385101a8ff9f591ef51f314ec;tl-%commit%' + [version-ranges]='https://github.com/astral-sh/pubgrub;b70cf707aa43f21b32f3a61b8a0889b15032d5c4;pubgrub-%commit%/version-ranges' +) + +RUST_MIN_VER="1.83.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 Boost-1.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.8 + dev-lang/python:3.9 + dev-lang/python:3.10 + dev-lang/python:3.11 + dev-lang/python:3.12 + !!~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 + + # 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/vpython/metadata.xml b/dev-python/vpython/metadata.xml index 8546c374b91d..1910b42741a9 100644 --- a/dev-python/vpython/metadata.xml +++ b/dev-python/vpython/metadata.xml @@ -1,6 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> + <maintainer type="person"> + <email>grozin@gentoo.org</email> + <name>Andrey Grozin</name> + </maintainer> <maintainer type="project"> <email>sci@gentoo.org</email> </maintainer> diff --git a/dev-python/vpython/vpython-7.6.5-r1.ebuild b/dev-python/vpython/vpython-7.6.5-r1.ebuild new file mode 100644 index 000000000000..c232ec92ecf5 --- /dev/null +++ b/dev-python/vpython/vpython-7.6.5-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 pypi + +DESCRIPTION="VPython for Jupyter notebook" +HOMEPAGE="https://www.vpython.org/ https://pypi.org/project/vpython/" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/autobahn-18.8.2[${PYTHON_USEDEP}] + dev-python/ipykernel[${PYTHON_USEDEP}] + dev-python/jupyter[${PYTHON_USEDEP}] + dev-python/jupyter-server-proxy[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest diff --git a/dev-python/zeroconf/Manifest b/dev-python/zeroconf/Manifest index c7ecb8b8925b..282e46afea52 100644 --- a/dev-python/zeroconf/Manifest +++ b/dev-python/zeroconf/Manifest @@ -1,2 +1,3 @@ DIST zeroconf-0.146.1.tar.gz 161874 BLAKE2B 042bc3747dac7a63e05b454a12b5884d293490909e662cf8c7ab7bf871bd4983bbf04cb2eb2ae6e075a82ab586f95ef13c201875d42250898f234f69a288b21e SHA512 a0834e37f07e465e2bf4b99ac7630f98b7c09d9608ecd86d3b8e2a3cd9c3978c400f342b97c7299f10fe07de669356c088f74e4bb26d9316c98219844dee6392 DIST zeroconf-0.146.2.tar.gz 162157 BLAKE2B 8b35e4309759a4668db5014bf747c30d87a399467e28078501d72bbe34cd39d9a4a6045b80ea51810a4f702130200c5c7db114253ae5512db98a78d80e791c31 SHA512 eacc2b94a7a3b0eeeb941aeb0dbf1bd26c78464daadd6e2a5ad91b2b21e76041e85cffa27ff8e4ccf8c78a22771d53ecc412099699f4e643895be1a784a0540a +DIST zeroconf-0.146.3.tar.gz 162429 BLAKE2B d9e59bba6e34540fdcfde01b4486db6340646b92160fe7ec6abf097eb1224bf45e1f76119d3ae71d13821b6f67621aecb7af0709b787b49f5cff392fba130d2d SHA512 d9fa896069fe3ee9f56945533f55b89ea9770a03fd6241b06323c9cdebfd1f3c185285b5159581156e8a9554c3b3aa8d35f4c6cb9cafe0efd98751a38de691e8 diff --git a/dev-python/zeroconf/zeroconf-0.146.3.ebuild b/dev-python/zeroconf/zeroconf-0.146.3.ebuild new file mode 100644 index 000000000000..503705515b10 --- /dev/null +++ b/dev-python/zeroconf/zeroconf-0.146.3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible)" +HOMEPAGE=" + https://github.com/python-zeroconf/python-zeroconf/ + https://pypi.org/project/zeroconf/ +" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/ifaddr-0.1.7[${PYTHON_USEDEP}] +" +# the build system uses custom build script that uses distutils to build +# C extensions, sigh +BDEPEND=" + >=dev-python/cython-3.0.8[${PYTHON_USEDEP}] + >=dev-python/setuptools-65.6.3[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +export REQUIRE_CYTHON=1 + +python_test() { + local -x SKIP_IPV6=1 + local EPYTEST_DESELECT=( + # network + tests/test_core.py::Framework::test_close_multiple_times + tests/test_core.py::Framework::test_launch_and_close + tests/test_core.py::Framework::test_launch_and_close_context_manager + + # fragile to timeouts (?) + tests/services/test_browser.py::test_service_browser_expire_callbacks + tests/utils/test_asyncio.py::test_run_coro_with_timeout + + # randomly broken by a leftover thread? + tests/test_circular_imports.py::test_circular_imports + ) + local EPYTEST_IGNORE=( + tests/benchmarks + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -o addopts= -p asyncio +} |
