diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-30 07:01:36 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-30 07:01:36 +0000 |
| commit | 216687eabe1b7cfafd62452784bb1ba4abe7a3d2 (patch) | |
| tree | 97c9d0b8dce982ab7883962098c54f77a19c6afd /dev-python | |
| parent | 5e57d2b387148ab942c22849d50e0e660168bf58 (diff) | |
| download | baldeagleos-repo-216687eabe1b7cfafd62452784bb1ba4abe7a3d2.tar.gz baldeagleos-repo-216687eabe1b7cfafd62452784bb1ba4abe7a3d2.tar.xz baldeagleos-repo-216687eabe1b7cfafd62452784bb1ba4abe7a3d2.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
50 files changed, 930 insertions, 237 deletions
diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index 6105fb4f31eb..354b47da2752 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -3,3 +3,4 @@ DIST boto3-1.38.18.gh.tar.gz 943830 BLAKE2B 2605415f7c48efd5322f6a514fb2cf7ede87 DIST boto3-1.38.23.gh.tar.gz 946184 BLAKE2B cf405adb1f47bcaba2185f2c120b8642f8fe2f68a33bc807854ad32bcd7eec99282a800f13a5273225e7fda6e3415ad8ef7ffd173e5cad21539c0f2765836506 SHA512 fdd7c9ae335afa772b919ffa8989323f54a409e8f7e9483528a199e038aad3b341663ec3a72f78c695e2ef44601caf682e3f769c5a869ea2d0545c9dd7a035a8 DIST boto3-1.38.24.gh.tar.gz 946456 BLAKE2B 3e4a38b1cebd92d43b139c22762527656dd9451e80e6497262b19d0d9ef5dc5493c52fcb54c68a437db2730aa7ff175f9a0a6079e88bc88077ced0350e2aca4a SHA512 780f92871b5b360f086af5bc09a5fa4b57c0b2d30fcd50140ee8c55b79ae83368c227cef85c67d42401d11aa4b9fc03125d0c004bcab2b33c5ee55ee62788bc7 DIST boto3-1.38.25.gh.tar.gz 946829 BLAKE2B bfe66d022fe75fabc609f45cee7b1b235377be7ed2ec39431582ebf7d4955279592c965519ccdcbb444bdaadb08a600bb2332e64d79b88447d41f483b6d4b404 SHA512 b25a778f278a441be89ed652a45e4f521455cd34e02bd98f2d14bce8cca0ddd6e76d0ed06b12c4eb47446c38a1a2b23134059b36724b923d0f499322b3629b07 +DIST boto3-1.38.26.gh.tar.gz 948177 BLAKE2B 6bcd686022d1dfb9c41a0ad3d24addf0bb74cb3f913f2cf6cb761cb73bec59d37be8d5ee9c6d9406653a1a2b631bc9b87e5bd3d94322ee84a70426e0f4dfb4ee SHA512 87586403b7a31887a1f5a1f2cf69e6dcd2ecd522970106ed6a0ed0f4cab21ea609033d46cd4a3234db63f3e34e1f50c7dc7af30ad463d9a7ccdaa956fb9bc827 diff --git a/dev-python/boto3/boto3-1.38.26.ebuild b/dev-python/boto3/boto3-1.38.26.ebuild new file mode 100644 index 000000000000..2557a5f5330a --- /dev/null +++ b/dev-python/boto3/boto3-1.38.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.13.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 08cd17f9ccec..501812c1f655 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -3,3 +3,4 @@ DIST botocore-1.38.18.gh.tar.gz 14648125 BLAKE2B b77da532e815f8cc270b78c5bfab8a9 DIST botocore-1.38.23.gh.tar.gz 14649388 BLAKE2B d60b5e5d7fb445f332eed57f3317d3add82dd2123ab4199dc934a9a4d68c2b91947a9e50e3847da4bed06aac402542f2bbe4ea92bd47d72de86be3f8f5571b2f SHA512 d602d19c9160d10aeb06aae911052da50dd66ef0f43e459d5911bed24acba5ac948781f1e8f6f43b377847670f2d074e044f454b043ba33859fc0ca0ba67976a DIST botocore-1.38.24.gh.tar.gz 14651552 BLAKE2B e4011257f1f1409446ad89d7ec332927c41d0d427d60ca7f9317ad57ba8cbd54448a3e4ee028533af7c2551dbcfe188f3c50e9a6fd33c18388671e5e969674f4 SHA512 5284444300ec18450ca2100b60f49877757ee0ca5fa3f4eeb865c02cf08a328113e5fa8491119afc65b86342f32e59215b75cf052c008650d8003b90ea6e3ca1 DIST botocore-1.38.25.gh.tar.gz 14659871 BLAKE2B 1450fac6d5dd5757f3ecfc2d4c564202b5da262d6001afdd412f48583b03a42a7acd70903fd8fc7543b7cd0caba382049964fb566628ea67022cbe7b03aa1599 SHA512 c32a9b2a9c693e8ff365ed3070952ffbcbe038b159942d879924fc22f8c81a9e268cde5e60c77f4188e4aaf4439a7fcd486c7b645c2c1a882827052689594781 +DIST botocore-1.38.26.gh.tar.gz 14664354 BLAKE2B c65c32f19cae3002130199e55ace2d5780c9f3fbea352ce361380595f7d9241bf5e9977b91431e33c27326b95d1bee51d8b1c902f10351170926a294c8fceb81 SHA512 c5fe100e0d59f16d389be081829e9c01d6a674d447d2fe3803e1a68f52bfe5683454a7f466703599f03bd805875332db22df4733b3cac3871ff9e15bf22b3701 diff --git a/dev-python/botocore/botocore-1.38.26.ebuild b/dev-python/botocore/botocore-1.38.26.ebuild new file mode 100644 index 000000000000..535354aa3035 --- /dev/null +++ b/dev-python/botocore/botocore-1.38.26.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..14} ) + +inherit distutils-r1 + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE=" + https://github.com/boto/botocore/ + https://pypi.org/project/botocore/ +" +SRC_URI=" + https://github.com/boto/botocore/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + <dev-python/jmespath-2[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +# unbundled packages +RDEPEND+=" + dev-python/requests[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +EPYTEST_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 + ) + + case ${EPYTHON} in + python3.14) + EPYTEST_DESELECT+=( + tests/unit/test_utils.py::test_lru_cache_weakref + ) + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/clang/Manifest b/dev-python/clang/Manifest index 956f8fc3437d..e304b0d58e9f 100644 --- a/dev-python/clang/Manifest +++ b/dev-python/clang/Manifest @@ -10,5 +10,7 @@ DIST llvm-project-19.1.7.src.tar.xz 141249332 BLAKE2B 1259ed7f9aca7b35e89d818bef DIST llvm-project-19.1.7.src.tar.xz.sig 438 BLAKE2B 4015140f4ba77de45039bdbdfbaf6f30e75705123d067ea97175d91d7a5b6a75008df01d99ae7aa16aaa3b101f3f41e38d01f04158f95a261d617b3ede0254cd SHA512 195797b06ac80a742e0ccbc03a50dc06dd2e04377d783d5474e3e72c5a75203b60292b047929312a411d22b137a239943fba414a4d136a2be14cbff978eb6bda DIST llvm-project-20.1.5.src.tar.xz 147239812 BLAKE2B 992ebec16a11f32f234ba8b9f228f27939cdaeaaba474a08da2564ba3075bb10ab92a44be704666bdd77f8294321d43da40bb9245c411a86cd53cff88223a91f SHA512 3b7e657714fa9b943c75ec9eeb903018ab4713b1c3370746ba68893220729f178dabb971515741519f24e7ad0fa1dbce1345572bcf1d1fc1e5de97e4d2900a6b DIST llvm-project-20.1.5.src.tar.xz.sig 566 BLAKE2B c8be202b475726817893e1fe5fe2d3ab02ea1d3130ccfdf4c2c29b46e6aef79091de78e8a9aef59416ac1120bb3af6fdf47464db9b27b8fb4cb4194b0444e571 SHA512 c1bd30af5f7bfa6cac73994e9068d2791d9d27e86375fb15ad426422ad00cb43ade226c1b91ecc7daa950efae62c86300e4290d59649310f4e8fab5bdcb264fe +DIST llvm-project-20.1.6.src.tar.xz 147239668 BLAKE2B ccd86730fdea3dd40ebf054661b854b9332204389db2205e1e7b2a7f140fc187cacb34de68aa9a63c15c1e17b1d0976c080cfdee7e2cb6b0dd5570001d84be12 SHA512 aae652fdc61bda3f80b1340a3270b687355bfb6817f4bc05dac2268a2f8c5fc677eadb515cda7c8518005f1dc39e7ce5d1c34bbc5a25f106ef8e6c8f1ecfdf6d +DIST llvm-project-20.1.6.src.tar.xz.sig 566 BLAKE2B b7c48cfc1f6c9f513dadb8837b150e22043c215bf4958a8036c4077aeebdcf7c18223b0ce0ffbcacb2c7ddfeb06611b1022528ee04d3efda1ee1aa58367a9203 SHA512 0884048ff164a1f5caed0f1aabec173630a08ece98cf793d21b77fc969501e4f03daec39ae0fb124ad34a3436ceae66452e36a42c309f19790b7a87652482691 DIST llvm-project-7dc7c155251c0008d5d59b84f0c9056365740f11.tar.gz 235921149 BLAKE2B 2867e313cd25fee6975da9bf65365fa51ed8780f3f8fc95983fb6e8f5b2c38c6d7f75a386b0ec2d74bafad74472973f4e4e603a5a0754465ac2b75942b8e90c6 SHA512 f8bc383ff2a1af836357150efa5728c7df3cd862f56ffaf12b5fc56ef631f1048276ff00b89fcf4d224576fa1eda9811d971886aae0855a4d29178060eb89a49 DIST llvm-project-f8ca9e59cb438bd35b29a6d7cf6d72f50673aec9.tar.gz 236069626 BLAKE2B 5547770a22e5fd0240c0e435d0b0af0ebd789aa72d6829250917f2df605f9a95c6756bc1afc9b611b176c1ba8394c757b94789511b98b38c6ade6cca4c9ce7f6 SHA512 b1fffd7d4f5ede9bcda759bc59cdd47373a44a3bbd31a50d1d213e438a59f1da3cc96780a1d17ecaeb14454822921476406a6c37493354169f72e1fab7b3a3be diff --git a/dev-python/clang/clang-20.1.6.ebuild b/dev-python/clang/clang-20.1.6.ebuild new file mode 100644 index 000000000000..0b43b8ec6779 --- /dev/null +++ b/dev-python/clang/clang-20.1.6.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_{11..14} ) +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/confusable-homoglyphs/confusable-homoglyphs-3.3.1.ebuild b/dev-python/confusable-homoglyphs/confusable-homoglyphs-3.3.1.ebuild index a64abe856ced..bfdab01c21de 100644 --- a/dev-python/confusable-homoglyphs/confusable-homoglyphs-3.3.1.ebuild +++ b/dev-python/confusable-homoglyphs/confusable-homoglyphs-3.3.1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{11..14} ) inherit distutils-r1 pypi diff --git a/dev-python/construct/construct-2.10.70.ebuild b/dev-python/construct/construct-2.10.70.ebuild index c31023efedf8..019431d1a137 100644 --- a/dev-python/construct/construct-2.10.70.ebuild +++ b/dev-python/construct/construct-2.10.70.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2024 Gentoo Authors +# 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} ) +PYTHON_COMPAT=( python3_{11..14} ) inherit distutils-r1 diff --git a/dev-python/cson/cson-0.8-r4.ebuild b/dev-python/cson/cson-0.8-r4.ebuild index fff61fa3460d..9dc76196f1e5 100644 --- a/dev-python/cson/cson-0.8-r4.ebuild +++ b/dev-python/cson/cson-0.8-r4.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2024 Gentoo Authors +# 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} ) +PYTHON_COMPAT=( python3_{11..14} ) inherit distutils-r1 diff --git a/dev-python/fpylll/Manifest b/dev-python/fpylll/Manifest index 52513e54985d..3ea47212000c 100644 --- a/dev-python/fpylll/Manifest +++ b/dev-python/fpylll/Manifest @@ -1 +1,2 @@ DIST fpylll-0.6.3.tar.gz 123868 BLAKE2B aa9e0ed169a39e1b17fb559c8d840fb6132b8d54b139ecfe1a154e5b2a6265d9e7ebfaa97b9a84278952a4c1629ad37ec9a12e3c0a3ff77f7be14c78e071f819 SHA512 c5a857e81347c53ad9b4ee93078dc384274737c72049ee7745245a7c0861ec7670ec338e4e7dc7d2fc72a9d7e59e6d918715224b2d0286a7b3f53993bdb47409 +DIST fpylll-0.6.4.tar.gz 124097 BLAKE2B 39b0da895a5d66c274fb2260ab7d33e2a973395bfc5a2cb6b5ba03d235a0bb9650b257d7b3807d1fec10093e6fe24e7553bd63a04a2d975e9947737c2231de58 SHA512 3e9f6b0f9d7c2211ff2de629cfa4b1f61ec73207809e17165f9e0a948a9749b7dda2db9613ff676eca71348f781aa152dec8b30005df9b19209892ae55a552ac diff --git a/dev-python/fpylll/files/cython-3.1.patch b/dev-python/fpylll/files/cython-3.1.patch deleted file mode 100644 index 63bfdabb0faa..000000000000 --- a/dev-python/fpylll/files/cython-3.1.patch +++ /dev/null @@ -1,116 +0,0 @@ -From fe2e6cb2f8b0d347c4920c707624d07516be02b6 Mon Sep 17 00:00:00 2001 -From: "Martin R. Albrecht" <martinralbrecht@googlemail.com> -Date: Sun, 18 May 2025 10:41:41 +0100 -Subject: [PATCH 1/4] declare types fully - ---- - src/fpylll/fplll/fplll.pxd | 9 ++++++--- - 1 file changed, 6 insertions(+), 3 deletions(-) - -diff --git a/src/fpylll/fplll/fplll.pxd b/src/fpylll/fplll/fplll.pxd -index 907a4450..cb578d8f 100644 ---- a/src/fpylll/fplll/fplll.pxd -+++ b/src/fpylll/fplll/fplll.pxd -@@ -952,17 +952,20 @@ cdef extern from "fplll/pruner/pruner.h" namespace "fplll": - FT gaussian_heuristic() - - void prune[FT](PruningParams &pruning, const double enumeration_radius, -- const double preproc_cost, const vector[double] &gso_r) -+ const double preproc_cost, const vector[vector[double]] &gso_r, -+ const double target, const PrunerMetric metric, const int flags) - - void prune[FT](PruningParams &pruning, const double enumeration_radius, -- const double preproc_cost, const vector[double] &gso_r, -+ const double preproc_cost, const vector[vector[double]] &gso_r, - const double target, const PrunerMetric metric, const int flags) - - void prune[FT](PruningParams &pruning, const double enumeration_radius, -- const double preproc_cost, const vector[vector[double]] &gso_r) -+ const double preproc_cost, const vector[vector[double]] &gso_r, -+ const double target, const PrunerMetric metric, const int flags) - - void prune[FT](PruningParams &pruning, const double enumeration_radius, - const double preproc_cost, const vector[vector[double]] &gso_r, -+ const double target, const PrunerMetric metric, const int flags, - const double target, const PrunerMetric metric, const int flags) - - FT svp_probability[FT](const PruningParams &pruning) - -From abe695cc76fa47035cd8749d0b4f20092d51f0fb Mon Sep 17 00:00:00 2001 -From: "Martin R. Albrecht" <martinralbrecht@googlemail.com> -Date: Sun, 18 May 2025 10:41:49 +0100 -Subject: [PATCH 2/4] this confuses Cython 3.1 - ---- - src/fpylll/fplll/fplll.pxd | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/fpylll/fplll/fplll.pxd b/src/fpylll/fplll/fplll.pxd -index cb578d8f..6e5bd61e 100644 ---- a/src/fpylll/fplll/fplll.pxd -+++ b/src/fpylll/fplll/fplll.pxd -@@ -968,7 +968,7 @@ cdef extern from "fplll/pruner/pruner.h" namespace "fplll": - const double target, const PrunerMetric metric, const int flags, - const double target, const PrunerMetric metric, const int flags) - -- FT svp_probability[FT](const PruningParams &pruning) -+ # FT svp_probability[FT](const PruningParams &pruning) - FT svp_probability[FT](const vector[double] &pr) - - - -From 5bd159a60191b946465839e912de7f7339084e45 Mon Sep 17 00:00:00 2001 -From: "Martin R. Albrecht" <martinralbrecht@googlemail.com> -Date: Sun, 18 May 2025 10:42:08 +0100 -Subject: [PATCH 3/4] no more PyInt - ---- - src/fpylll/gmp/pylong.pyx | 5 ++--- - src/fpylll/io.pyx | 4 ++-- - 2 files changed, 4 insertions(+), 5 deletions(-) - -diff --git a/src/fpylll/gmp/pylong.pyx b/src/fpylll/gmp/pylong.pyx -index 885d4efe..57ced80b 100644 ---- a/src/fpylll/gmp/pylong.pyx -+++ b/src/fpylll/gmp/pylong.pyx -@@ -26,8 +26,7 @@ AUTHORS: - #***************************************************************************** - - --from cpython.int cimport PyInt_FromLong --from cpython.long cimport PyLong_CheckExact, PyLong_FromLong -+from cpython.long cimport PyLong_CheckExact, PyLong_FromLong, PyLong_FromLong - from cpython.longintrepr cimport _PyLong_New, digit, PyLong_SHIFT - from .pycore_long cimport (ob_digit, _PyLong_IsZero, _PyLong_IsNegative, - _PyLong_IsPositive, _PyLong_DigitCount, _PyLong_SetSignAndDigitCount) -@@ -64,7 +63,7 @@ cdef mpz_get_pyintlong(mpz_srcptr z): - if the value is too large. - """ - if mpz_fits_slong_p(z): -- return PyInt_FromLong(mpz_get_si(z)) -+ return PyLong_FromLong(mpz_get_si(z)) - return mpz_get_pylong_large(z) - - -diff --git a/src/fpylll/io.pyx b/src/fpylll/io.pyx -index 4c4d561f..b4717805 100644 ---- a/src/fpylll/io.pyx -+++ b/src/fpylll/io.pyx -@@ -4,7 +4,7 @@ include "fpylll/config.pxi" - import sys - import os - --from cpython.int cimport PyInt_AS_LONG -+from cpython.long cimport PyLong_AsLong - from fpylll.gmp.mpz cimport mpz_init, mpz_clear, mpz_set - from fpylll.gmp.pylong cimport mpz_get_pyintlong, mpz_set_pylong - from .gmp.mpz cimport mpz_t, mpz_set_si, mpz_set -@@ -46,7 +46,7 @@ cdef int assign_mpz(mpz_t& t, value) except -1: - Assign Python integer to Z_NR[mpz_t] - """ - if isinstance(value, int) and PY_MAJOR_VERSION == 2: -- mpz_set_si(t, PyInt_AS_LONG(value)) -+ mpz_set_si(t, PyLong_AsLong(value)) - return 0 - if isinstance(value, int): - mpz_set_pylong(t, value) diff --git a/dev-python/fpylll/fpylll-0.6.3-r1.ebuild b/dev-python/fpylll/fpylll-0.6.4.ebuild index 76c07e866ca7..a4f1730addce 100644 --- a/dev-python/fpylll/fpylll-0.6.3-r1.ebuild +++ b/dev-python/fpylll/fpylll-0.6.4.ebuild @@ -33,8 +33,6 @@ BDEPEND=" >=dev-python/cython-3[${PYTHON_USEDEP}] " -PATCHES=( "${FILESDIR}/cython-3.1.patch" ) - distutils_enable_tests pytest python_test(){ diff --git a/dev-python/gpt-image/Manifest b/dev-python/gpt-image/Manifest index 9f773ebd5ac4..ab14b3941a23 100644 --- a/dev-python/gpt-image/Manifest +++ b/dev-python/gpt-image/Manifest @@ -1 +1,2 @@ DIST gpt_image-0.9.0.tar.gz 30521 BLAKE2B 9065999f6b56ae650dee92f040b844b1c5e30d4b23cf49e48298e57f97295146c35300dfce961d8c2e436dfd3e21fc47c5a45907dab873e699c56bf178310e68 SHA512 11c8269aac757d54aada192f4b34fedd083dbc490d6a2c32f3f8c53113841ce357f610e8be402ed53618db7665a5fb801e85d1a70954e9b47d1228389446da5a +DIST gpt_image-0.9.1.tar.gz 29484 BLAKE2B 00c57386bfd856940224174a57e9fc0d7c81c353957dcb4dc6aa0887f31e1d2f424285e730b1b6deed1e1df22e5d238ca978a8d5c26bf752da615af668f17d99 SHA512 0b1b209f1dac5d6955177ef5a696b01f8f7fe24652d436bb363e04b9144cc56352f4c39a7cda562308495a772886dae538d4e8e0bd7fa788d8101f01425a9d08 diff --git a/dev-python/gpt-image/gpt-image-0.9.1.ebuild b/dev-python/gpt-image/gpt-image-0.9.1.ebuild new file mode 100644 index 000000000000..ab25347e3cac --- /dev/null +++ b/dev-python/gpt-image/gpt-image-0.9.1.ebuild @@ -0,0 +1,21 @@ +# Copyright 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="Tool to create GPT disk image files" +HOMEPAGE=" + https://pypi.org/project/gpt-image/ + https://github.com/swysocki/gpt-image +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +distutils_enable_tests pytest diff --git a/dev-python/iniparse/Manifest b/dev-python/iniparse/Manifest index 48595da808ef..d6023df7c69d 100644 --- a/dev-python/iniparse/Manifest +++ b/dev-python/iniparse/Manifest @@ -1 +1,2 @@ +DIST python-iniparse-3267e724a2d5ce0dbd388f62d549d870b76cb0f4.tar.gz 34557 BLAKE2B 11369d6dff3e51c075b53953d8c86c83d15b9a4e7dab97dd92f07fb7ee702d0b681c14921c710c517bff3e64a61e94b22e413624f034ef1b96635a51d646c42a SHA512 6f9f01b2d5ae4f80c6c59cc161224bdf87bf049a8f69b360e11653cf066ec9fbbdda937d0830115dc0399e75f4b0ef85faa2b1c484c0e87b6c1fcb460b9f64b5 DIST python-iniparse-ab623b0e287a9303bdb0c5213c485110e68dac12.tar.gz 33680 BLAKE2B 66ff134b1df28ae9c3e86110e7f8ad8dc0e24ed48f09db0c7554464e8d919aca49a7e43156c4acb8602af134c2f9d6c046d05cf1764f29285d8586329708a65a SHA512 57c43f7e0d28eab0e41bb819f7c06821d77f9bc5f3d0986f85dd4852b2edd468bb7b2737733e2f00faeac2e1211998d2e99b54ec92959eaf6d7d10897b176eaf diff --git a/dev-python/iniparse/iniparse-0.5.1_p20250425.ebuild b/dev-python/iniparse/iniparse-0.5.1_p20250425.ebuild new file mode 100644 index 000000000000..a9b545040efe --- /dev/null +++ b/dev-python/iniparse/iniparse-0.5.1_p20250425.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_{11..14} ) + +inherit distutils-r1 + +EGIT_COMMIT=3267e724a2d5ce0dbd388f62d549d870b76cb0f4 +MY_P=python-iniparse-${EGIT_COMMIT} + +DESCRIPTION="Better INI parser for Python" +HOMEPAGE=" + https://github.com/candlepin/python-iniparse/ + https://pypi.org/project/iniparse/ +" +SRC_URI=" + https://github.com/candlepin/python-iniparse/archive/${EGIT_COMMIT}.tar.gz + -> ${MY_P}.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT PSF-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/six-1.10.0[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/test[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest + +python_install_all() { + rm -rf "${ED}/usr/share/doc" || die + distutils-r1_python_install_all +} diff --git a/dev-python/langdetect/Manifest b/dev-python/langdetect/Manifest index a11d7c268c91..d12ab8aeaca8 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 494 BLAKE2B 9cd8a2a93a8d45bf51fe2324402b175d641762ea591fcb99459427f977a95eccffa6ca4777ca4df39814eea6eac62711567faa654456d32f79023a4685804504 SHA512 d973b85ba1a44389a4275f02a779a93a005f7c2e096467b94b072862e4984d5b42cf33f9821ac68aa5b85b12c98983a90b96049989d8c84497969174b6bb838e +MISC metadata.xml 457 BLAKE2B 630128a3e982b6d60cc7b9f74c79fcb5ee47a71a02c73a50af9da8cedb6fad8e20a7f74b881e5b25c6483b92c9edbd56552cd38b2d9cbfa8b3eb4530facea969 SHA512 674f4f5cd809c6c77bc14e0f5687fa972bef14bdfa0b3343c5d66b7163eef1906eb87d060c8288732f825de71dce291ad0b841a5f2f0dd230f957b5687e45d45 diff --git a/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch b/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch 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 99577c43fc3e..56733bbffc48 100644 --- a/dev-python/langdetect/langdetect-1.0.9.ebuild +++ b/dev-python/langdetect/langdetect-1.0.9.ebuild @@ -1,9 +1,9 @@ -# Copyright 2022-2024 Gentoo Authors +# Copyright 2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 pypi @@ -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 c0f74ac187e2..020e07f2a3dd 100644 --- a/dev-python/langdetect/metadata.xml +++ b/dev-python/langdetect/metadata.xml @@ -2,9 +2,11 @@ <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>pastalian46@gmail.com</email> - <name>Takuya Wakazono</name> + <email>marcin.deranek@slonko.net</email> + <name>Marcin Deranek</name> </maintainer> - - <origin>gentoo-guru-overlay</origin> + <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/libevdev/Manifest b/dev-python/libevdev/Manifest index 3bb0da2c4734..b2ec65ed85fa 100644 --- a/dev-python/libevdev/Manifest +++ b/dev-python/libevdev/Manifest @@ -1 +1,2 @@ DIST python-libevdev-0.11.tar.bz2 32406 BLAKE2B 0291a9008590a2900961d9e790c2946b67bc045a5b0df43f9f40d9c8838b332e1a839c21411ee88eddc92e9c59a038bc7ce8dd365bab71075fdd0a8c629c3a34 SHA512 6fb6181fc97cb1a7a087d298a933891cf05d0160d033c6d6300bcb6a904064b727a15e8e75665ee2933d0e8a0aeab2638f01bbd8d9f803f508157fd0e5ca41fc +DIST python-libevdev-0.12.tar.bz2 32738 BLAKE2B 4f84e857fd1d8e9452f9a24b1781f469104ffa6e1037c561aa77717cabab2422e4a0d70b50eec0e19a4dbe61918d73263ec94fa5eb8cf26eb2a6c072ad81763e SHA512 95837b363acb2cfa561365c3cc701a985fa9e9ad4703b0dc41513e70e8be9626c2c281deeb782061291e9a8c13fc81188cead571c65c890712db9a3091b08876 diff --git a/dev-python/libevdev/libevdev-0.12.ebuild b/dev-python/libevdev/libevdev-0.12.ebuild new file mode 100644 index 000000000000..b8a38f5963a4 --- /dev/null +++ b/dev-python/libevdev/libevdev-0.12.ebuild @@ -0,0 +1,37 @@ +# Copyright 2020-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 + +MY_P=python-libevdev-${PV} +DESCRIPTION="Python wrappers for the libevdev library" +HOMEPAGE=" + https://gitlab.freedesktop.org/libevdev/python-libevdev/ + https://pypi.org/project/libevdev/ +" +SRC_URI=" + https://gitlab.freedesktop.org/libevdev/python-libevdev/-/archive/${PV}/${MY_P}.tar.bz2 +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +BDEPEND=" + test? ( + dev-libs/libevdev + ) +" +RDEPEND=" + dev-libs/libevdev +" + +distutils_enable_tests unittest +distutils_enable_sphinx doc/source \ + dev-python/sphinx-rtd-theme diff --git a/dev-python/lit/Manifest b/dev-python/lit/Manifest index 956f8fc3437d..e304b0d58e9f 100644 --- a/dev-python/lit/Manifest +++ b/dev-python/lit/Manifest @@ -10,5 +10,7 @@ DIST llvm-project-19.1.7.src.tar.xz 141249332 BLAKE2B 1259ed7f9aca7b35e89d818bef DIST llvm-project-19.1.7.src.tar.xz.sig 438 BLAKE2B 4015140f4ba77de45039bdbdfbaf6f30e75705123d067ea97175d91d7a5b6a75008df01d99ae7aa16aaa3b101f3f41e38d01f04158f95a261d617b3ede0254cd SHA512 195797b06ac80a742e0ccbc03a50dc06dd2e04377d783d5474e3e72c5a75203b60292b047929312a411d22b137a239943fba414a4d136a2be14cbff978eb6bda DIST llvm-project-20.1.5.src.tar.xz 147239812 BLAKE2B 992ebec16a11f32f234ba8b9f228f27939cdaeaaba474a08da2564ba3075bb10ab92a44be704666bdd77f8294321d43da40bb9245c411a86cd53cff88223a91f SHA512 3b7e657714fa9b943c75ec9eeb903018ab4713b1c3370746ba68893220729f178dabb971515741519f24e7ad0fa1dbce1345572bcf1d1fc1e5de97e4d2900a6b DIST llvm-project-20.1.5.src.tar.xz.sig 566 BLAKE2B c8be202b475726817893e1fe5fe2d3ab02ea1d3130ccfdf4c2c29b46e6aef79091de78e8a9aef59416ac1120bb3af6fdf47464db9b27b8fb4cb4194b0444e571 SHA512 c1bd30af5f7bfa6cac73994e9068d2791d9d27e86375fb15ad426422ad00cb43ade226c1b91ecc7daa950efae62c86300e4290d59649310f4e8fab5bdcb264fe +DIST llvm-project-20.1.6.src.tar.xz 147239668 BLAKE2B ccd86730fdea3dd40ebf054661b854b9332204389db2205e1e7b2a7f140fc187cacb34de68aa9a63c15c1e17b1d0976c080cfdee7e2cb6b0dd5570001d84be12 SHA512 aae652fdc61bda3f80b1340a3270b687355bfb6817f4bc05dac2268a2f8c5fc677eadb515cda7c8518005f1dc39e7ce5d1c34bbc5a25f106ef8e6c8f1ecfdf6d +DIST llvm-project-20.1.6.src.tar.xz.sig 566 BLAKE2B b7c48cfc1f6c9f513dadb8837b150e22043c215bf4958a8036c4077aeebdcf7c18223b0ce0ffbcacb2c7ddfeb06611b1022528ee04d3efda1ee1aa58367a9203 SHA512 0884048ff164a1f5caed0f1aabec173630a08ece98cf793d21b77fc969501e4f03daec39ae0fb124ad34a3436ceae66452e36a42c309f19790b7a87652482691 DIST llvm-project-7dc7c155251c0008d5d59b84f0c9056365740f11.tar.gz 235921149 BLAKE2B 2867e313cd25fee6975da9bf65365fa51ed8780f3f8fc95983fb6e8f5b2c38c6d7f75a386b0ec2d74bafad74472973f4e4e603a5a0754465ac2b75942b8e90c6 SHA512 f8bc383ff2a1af836357150efa5728c7df3cd862f56ffaf12b5fc56ef631f1048276ff00b89fcf4d224576fa1eda9811d971886aae0855a4d29178060eb89a49 DIST llvm-project-f8ca9e59cb438bd35b29a6d7cf6d72f50673aec9.tar.gz 236069626 BLAKE2B 5547770a22e5fd0240c0e435d0b0af0ebd789aa72d6829250917f2df605f9a95c6756bc1afc9b611b176c1ba8394c757b94789511b98b38c6ade6cca4c9ce7f6 SHA512 b1fffd7d4f5ede9bcda759bc59cdd47373a44a3bbd31a50d1d213e438a59f1da3cc96780a1d17ecaeb14454822921476406a6c37493354169f72e1fab7b3a3be diff --git a/dev-python/lit/lit-20.1.6.ebuild b/dev-python/lit/lit-20.1.6.ebuild new file mode 100644 index 000000000000..2c41baf16b31 --- /dev/null +++ b/dev-python/lit/lit-20.1.6.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_{11..14} ) + +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/lz4/files/lz4-4.4.4-fix-py3.14.patch b/dev-python/lz4/files/lz4-4.4.4-fix-py3.14.patch new file mode 100644 index 000000000000..9de81cd18e18 --- /dev/null +++ b/dev-python/lz4/files/lz4-4.4.4-fix-py3.14.patch @@ -0,0 +1,20 @@ +https://github.com/python-lz4/python-lz4/pull/303 +From: Karolina Surma <ksurma@redhat.com> +Date: Thu, 29 May 2025 12:06:30 +0200 +Subject: [PATCH] Correct the import of _compression for Python 3.14 + +This is backwards compatible with all supported versions of Python. +--- a/lz4/frame/__init__.py ++++ b/lz4/frame/__init__.py +@@ -25,9 +25,9 @@ + __doc__ = _doc + + try: +- import _compression # Python 3.6 and later ++ import compression._common._streams as _compression # Python 3.14 + except ImportError: +- from . import _compression ++ import _compression # Python 3.6 - 3.13 + + + BLOCKSIZE_DEFAULT = _BLOCKSIZE_DEFAULT diff --git a/dev-python/lz4/lz4-4.4.4.ebuild b/dev-python/lz4/lz4-4.4.4.ebuild index 7f3eb5d7079e..4099cf109613 100644 --- a/dev-python/lz4/lz4-4.4.4.ebuild +++ b/dev-python/lz4/lz4-4.4.4.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{11..14} ) inherit distutils-r1 pypi @@ -33,6 +33,10 @@ BDEPEND=" ) " +PATCHES=( + "${FILESDIR}"/${P}-fix-py3.14.patch # merged upstream +) + # note: test suite fails with xdist distutils_enable_tests pytest diff --git a/dev-python/magic-wormhole/Manifest b/dev-python/magic-wormhole/Manifest index 5ed91f3881be..70717a438296 100644 --- a/dev-python/magic-wormhole/Manifest +++ b/dev-python/magic-wormhole/Manifest @@ -1,2 +1,2 @@ DIST magic-wormhole-0.18.0.tar.gz 289799 BLAKE2B ff786e3247dcc382fa35175d6439c6273b420968100cc6e54a06e365b8d6db5a9a5145878d4025f51fe59cf75e18507d5114d04a13123ef62b255a61b3c55698 SHA512 095be448fb654a32ea45808f03b1a0bffd74ee683448085f1e6f14f054c0d2f19f9048270be4ec7b6a0b46872d20613a36e984a0a137bd68ba3d0a237a83d1b2 -DIST magic_wormhole-0.19.0.tar.gz 304886 BLAKE2B 1e7f5e39e5307998beea0d67bb44b92dffacb7d2e31e607b88f47ed959e5517ab29d2837ec7f22dfe5a6564b01a50324f6125dda2a5ae0ce7d2135244e3e65e8 SHA512 37ef948871c9449c3147d3615619b2c28b7969d020c34a447d8b0c8894a3e4ed64bbe2d3aa53e2c2f1cb80063f9df48866445395332cd29dcd10e4007a3fc375 +DIST magic_wormhole-0.19.1.tar.gz 304136 BLAKE2B 4bca082b17ec21743c275a721350cd3f8b1e038a66de13bb5986ecaf7db93e5e6c87697bed80a2bcab0085cb80fa2c11a642dcdf99ccb5270ddd7efc29a476a6 SHA512 fdd402c9f1c7caa78693557df8922ee39cdcde65daedaaf0c4a8a1065e85a96853684c461ebd9192e654d9d5a03c5d0dfb1b01b35c9bea12938001264f2bf0d5 diff --git a/dev-python/magic-wormhole/files/magic-wormhole-0.19.0-test.patch b/dev-python/magic-wormhole/files/magic-wormhole-0.19.0-test.patch deleted file mode 100644 index 8fa0c26c4ad3..000000000000 --- a/dev-python/magic-wormhole/files/magic-wormhole-0.19.0-test.patch +++ /dev/null @@ -1,25 +0,0 @@ -From ce227a431466bee39d2ad6e96533736872300d55 Mon Sep 17 00:00:00 2001 -From: meejah <meejah@meejah.ca> -Date: Thu, 29 May 2025 01:58:08 -0600 -Subject: [PATCH 2/2] advertise our actual version - ---- - src/wormhole/test/conftest.py | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/src/wormhole/test/conftest.py b/src/wormhole/test/conftest.py -index 3e42adc5..81f6b599 100644 ---- a/src/wormhole/test/conftest.py -+++ b/src/wormhole/test/conftest.py -@@ -19,9 +19,10 @@ def reactor(): - - @pytest.fixture(scope="session") - def mailbox(reactor): -+ from wormhole import __version__ - mb = pytest_twisted.blockon( - ensureDeferred( -- setup_mailbox(reactor, advertise_version="1.2.3") -+ setup_mailbox(reactor, advertise_version=str(__version__)) - ) - ) - mb.service.startService() diff --git a/dev-python/magic-wormhole/magic-wormhole-0.19.0.ebuild b/dev-python/magic-wormhole/magic-wormhole-0.19.1.ebuild index cf7ce6209fb9..16d7ac47d8e8 100644 --- a/dev-python/magic-wormhole/magic-wormhole-0.19.0.ebuild +++ b/dev-python/magic-wormhole/magic-wormhole-0.19.1.ebuild @@ -50,11 +50,6 @@ BDEPEND=" distutils_enable_tests pytest src_prepare() { - local PATCHES=( - # https://github.com/magic-wormhole/magic-wormhole/pull/626 - "${FILESDIR}/${P}-test.patch" - ) - distutils-r1_src_prepare rm versioneer.py || die } diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest index cc34eb08341c..5d999ddee624 100644 --- a/dev-python/mypy/Manifest +++ b/dev-python/mypy/Manifest @@ -1 +1,2 @@ DIST mypy-1.15.0.gh.tar.gz 3256122 BLAKE2B e2e5a047246a9898f3a7f406fa06bcd106fa0cfa776c3d2f785c7eec059f67405eaaee97ed40ecc161bb897e6baad1b5f2700cce07eaaadfd1330409b0e58185 SHA512 dac0c91749215f0ed2a29794665b26b047f9ab918ec387632c2e509308e2051aada6856dbdc7b001a4f3090c0e1b2b4f129f780b64c378997df4d78233065efa +DIST mypy-1.16.0.gh.tar.gz 3339707 BLAKE2B 6c5509fe02b81d86af74975f5804d6fe19b9dbebefe551ef35f52758b9c4eb2a7ca538c68625ce006fc74836beaabee71cb3e12416b5f6bf3589bf96994497a0 SHA512 248ac67c1899c543cb5e60fc00a95299dcf11f538b7491f27750477c28942ac869e2a207d9e3ea4ddf33b0a16363137bd8e7b0bd2bb729c82955d0af10ec91be diff --git a/dev-python/mypy/mypy-1.16.0.ebuild b/dev-python/mypy/mypy-1.16.0.ebuild new file mode 100644 index 000000000000..f3c6cb397926 --- /dev/null +++ b/dev-python/mypy/mypy-1.16.0.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 + +DESCRIPTION="Optional static typing for Python" +HOMEPAGE=" + https://www.mypy-lang.org/ + https://github.com/python/mypy/ + https://pypi.org/project/mypy/ +" +SRC_URI=" + https://github.com/python/mypy/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="+native-extensions" + +# stubgen collides with this package: https://bugs.gentoo.org/585594 +RDEPEND=" + !dev-util/stubgen + >=dev-python/pathspec-0.9.0[${PYTHON_USEDEP}] + >=dev-python/psutil-4[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.6.0[${PYTHON_USEDEP}] + >=dev-python/mypy-extensions-1.0.0[${PYTHON_USEDEP}] +" +BDEPEND=" + native-extensions? ( + ${RDEPEND} + dev-python/types-psutil[${PYTHON_USEDEP}] + dev-python/types-setuptools[${PYTHON_USEDEP}] + ) + test? ( + >=dev-python/attrs-18.0[${PYTHON_USEDEP}] + >=dev-python/filelock-3.3.0[${PYTHON_USEDEP}] + >=dev-python/lxml-4.9.1[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +# frustratingly, mypyc produces non-deterministic output. If ccache is enabled it will be a waste of time, +# but simultaneously it might trash your system and fill up the cache with a giant wave of non-reproducible +# test files (https://github.com/mypyc/mypyc/issues/1014) +export CCACHE_DISABLE=1 + +PATCHES=( + "${FILESDIR}"/${PN}-1.14.0-no-werror.patch +) + +src_prepare() { + distutils-r1_src_prepare + + # don't force pytest-xdist, in case user asked for EPYTEST_JOBS=1 + sed -i -e '/addopts/s:-nauto::' pyproject.toml || die +} + +python_compile() { + local -x MYPY_USE_MYPYC=$(usex native-extensions 1 0) + distutils-r1_python_compile +} + +python_test() { + local EPYTEST_DESELECT=( + # the majority of them require Internet (via pip) + mypy/test/testpep561.py + # known broken with assertions enabled + # https://github.com/python/mypy/issues/16043 + mypyc/test/test_external.py::TestExternal::test_c_unit_test + mypyc/test/test_run.py::TestRun::run-classes.test::testDelException + mypyc/test/test_run.py::TestRun::run-floats.test::testFloatOps + mypyc/test/test_run.py::TestRun::run-i64.test::testI64GlueMethodsAndInheritance + mypyc/test/test_run.py::TestRunStrictDunderTyping::run-floats.test::testFloatOps_dunder_typing + # these assume that types-docutils are not installed + mypy/test/testpythoneval.py::PythonEvaluationSuite::pythoneval.test::testIgnoreImportIfNoPython3StubAvailable + mypy/test/testpythoneval.py::PythonEvaluationSuite::pythoneval.test::testNoPython3StubAvailable + # TODO + mypy/test/meta/test_parse_data.py + mypy/test/meta/test_update_data.py + ) + case ${EPYTHON} in + python3.13) + ;& + python3.12) + EPYTEST_DESELECT+=( + # more assertions, sigh + mypyc/test/test_run.py::TestRun::run-async.test::testRunAsyncMiscTypesInEnvironment + mypyc/test/test_run.py::TestRun::run-bools.test::testBoolOps + mypyc/test/test_run.py::TestRun::run-i64.test::testI64BasicOps + mypyc/test/test_run.py::TestRun::run-i64.test::testI64DefaultArgValues + mypyc/test/test_run.py::TestRun::run-i64.test::testI64ErrorValuesAndUndefined + ) + ;; + esac + + # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests + # fail with high COLUMNS values + local -x COLUMNS=80 + + # The tests depend on having in-source compiled extensions if you want to + # test those compiled extensions. Various crucial test dependencies aren't + # installed. Even pyproject.toml is needed because that's where pytest args + # are in. Hack them into the build directory and delete them afterwards. + # See: https://github.com/python/mypy/issues/16143 + local -x MYPY_TEST_PREFIX="${S}" + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die + cp -r "${S}"/{conftest.py,pyproject.toml} . || die + + local failed= + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + nonfatal epytest || failed=1 + + rm conftest.py pyproject.toml || die + + [[ ${failed} ]] && die "epytest failed with ${EPYTHON}" +} diff --git a/dev-python/neovim-remote/neovim-remote-2.5.1.ebuild b/dev-python/neovim-remote/neovim-remote-2.5.1.ebuild index c85d53614f36..ec8a8dd9a0af 100644 --- a/dev-python/neovim-remote/neovim-remote-2.5.1.ebuild +++ b/dev-python/neovim-remote/neovim-remote-2.5.1.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2023 Gentoo Authors +# 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} ) +PYTHON_COMPAT=( python3_{11..14} ) inherit distutils-r1 diff --git a/dev-python/neovim-remote/neovim-remote-9999.ebuild b/dev-python/neovim-remote/neovim-remote-9999.ebuild index 3d7efc7acc6c..27da86238d67 100644 --- a/dev-python/neovim-remote/neovim-remote-9999.ebuild +++ b/dev-python/neovim-remote/neovim-remote-9999.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2023 Gentoo Authors +# 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} ) +PYTHON_COMPAT=( python3_{11..14} ) inherit distutils-r1 diff --git a/dev-python/networkx/Manifest b/dev-python/networkx/Manifest index b2750cc39701..aee82aecd6f0 100644 --- a/dev-python/networkx/Manifest +++ b/dev-python/networkx/Manifest @@ -1,2 +1,3 @@ DIST networkx-3.4.2.tar.gz 2151368 BLAKE2B 10b18d7d5b80dd60342f65729688dd2a175c925c72f6e3d0aa4555f008acd347940d6f118a870ba02543d2dc451c4b91986fa834431cc8752b467c5b8622aa82 SHA512 910e1400ad18711761c715896c3238b9c7d8914c571ab4db3aaf18a772b5fef90e5378ca435fbfce55b5821f1ddd3863a3cd65030086e80a971df91d9203c637 +DIST networkx-3.5.tar.gz 2471065 BLAKE2B 575ac0a6e9741f0ad23396ff089cb360d43fc80f1c5a1fcb69e824c3673aba1aae5c2413020b049bcfecb68045984452eb02aefce1d523bd00d589eb26d8ae0f SHA512 9c060385913cfe67126e71eb9e53c032faa51c9609336ce78333d22e5f73078eb5b4826e0709cae0bd448fef2a5b2fb6f4c29be28c70d34a936d1cf6a00e83a1 DIST networkx-3.5rc0.tar.gz 2463934 BLAKE2B 8d54ce43ed0222f6bccfd078c64cb58db0705072d0c98267e9ac0e9603a70621a4da91c1720f964d804fe2116ef952e1954a861273d8b54864ed893a50b8307d SHA512 f002db82259ddaa5a6ef06397cb53bfde6c971c8fb20cbb520a868a352045984ec52179f99ab19dbfdb7c77a06fcad4f3b7a50ec241ac1f312707f72240f42d0 diff --git a/dev-python/networkx/networkx-3.5.ebuild b/dev-python/networkx/networkx-3.5.ebuild new file mode 100644 index 000000000000..a1bde7aabb18 --- /dev/null +++ b/dev-python/networkx/networkx-3.5.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_FULLY_TESTED=( python3_{11..13} ) +PYTHON_COMPAT=( "${PYTHON_FULLY_TESTED[@]}" ) + +inherit distutils-r1 optfeature pypi virtualx + +DESCRIPTION="Python tools to manipulate graphs and complex networks" +HOMEPAGE=" + https://networkx.org/ + https://github.com/networkx/networkx/ + https://pypi.org/project/networkx/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" + +BDEPEND=" + test? ( + >=dev-python/lxml-4.6[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/matplotlib-3.8[${PYTHON_USEDEP}] + >=dev-python/numpy-1.25[${PYTHON_USEDEP}] + >=dev-python/scipy-1.11.2[${PYTHON_USEDEP}] + ' "${PYTHON_FULLY_TESTED[@]}") + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + if use x86 ; then + EPYTEST_DESELECT+=( + # https://github.com/networkx/networkx/issues/5913 (bug #921958) + networkx/algorithms/approximation/tests/test_traveling_salesman.py::test_asadpour_tsp + ) + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + # virtx implies nonfatal + nonfatal epytest || die +} + +src_install() { + distutils-r1_src_install + # those examples use various assets and pre-compressed files + docompress -x /usr/share/doc/${PF}/examples +} + +pkg_postinst() { + optfeature "recommended dependencies" "dev-python/matplotlib dev-python/numpy dev-python/pandas dev-python/scipy" + optfeature "graph drawing and graph layout algorithms" "dev-python/pygraphviz dev-python/pydot" + optfeature "YAML format reading and writing" "dev-python/pyyaml" + optfeature "shapefile format reading and writing" "sci-libs/gdal[python]" + optfeature "GraphML XML format" "dev-python/lxml" +} diff --git a/dev-python/nuitka/Manifest b/dev-python/nuitka/Manifest index 889f368fe03a..6e24df3ab63c 100644 --- a/dev-python/nuitka/Manifest +++ b/dev-python/nuitka/Manifest @@ -1,3 +1,2 @@ -DIST Nuitka-2.7.2.tar.gz 3883274 BLAKE2B 6f7d35bbe85aee77419a4ebcd28bcc255220c33e091f0c8a7474330551fea476ae1fe3a42f33432aa335b40e7ebb252bad185b7cac2df4ddf7c5cf0c59259adf SHA512 c66d6afe8b05b9d74c1d66b394196a005913d7d3fb0ad0efe8ec9a4256e671cf19ffff19b56c2597cca8ef8e61e484c697a3181590b7c8589b56af3cbbee5944 -DIST Nuitka-2.7.3.tar.gz 3884010 BLAKE2B 1c917492c8ec34bb6a96c30a56cc31f0b8370503f8f0c5581445e12e5d3351b23ed39246ad8eea7beae0efbb2592699a880a11902963aac8b4170e8f8fab13a0 SHA512 838056e89bc5ff32671ab3f40dfda5f207ea900bc7f19e2152740e9431eff192ad70cbfa6cd67186d98eafecfb7457574497f959541993602e4a6b4b1c545738 DIST Nuitka-2.7.4.tar.gz 3885038 BLAKE2B c0c4456af4e3df2f653b8698a53470114ebd809bf48931240361ae2f5f55c7b88acf2171a07245f13550b9111ec067d2eb9390562718355e07c4f9026d2ba52e SHA512 62b91a298e69d4d8d76608fa5ccd192b8e47764232d6653ec8519244dc099a3623be68554ab7e0a822a69a3f86d19a9b898d2ecb16d68b93d765eed3b84a1937 +DIST Nuitka-2.7.5.tar.gz 3885564 BLAKE2B e949b3da418393e7b847e4fce07add049181da6801040ba2c7d1eb46b5d5c0b0f88b98cf0bb1808a727414d3f9ed1d050cad4a3bc54a17d35488c6788effc8ee SHA512 e26f6990dc2a0842dfc5acfb80f5a4de975e2e4244f99d861e9a6e2f18c68dda66d6b1bfa64f4387ce72de321a003ad4582dee4f4385c009e5b54c7e0c63a877 diff --git a/dev-python/nuitka/nuitka-2.7.3.ebuild b/dev-python/nuitka/nuitka-2.7.3.ebuild deleted file mode 100644 index c97d7f3c6ae8..000000000000 --- a/dev-python/nuitka/nuitka-2.7.3.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYPI_NO_NORMALIZE=1 -PYPI_PN=${PN^} -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 flag-o-matic optfeature pypi - -DESCRIPTION="Python to native compiler" -HOMEPAGE=" - https://nuitka.net/ - https://github.com/Nuitka/Nuitka/ - https://pypi.org/project/Nuitka/ -" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~loong ~x86" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-build/scons[${PYTHON_USEDEP}] - >=dev-python/ordered-set-4.1.0[${PYTHON_USEDEP}] - >=dev-python/zstandard-0.15[${PYTHON_USEDEP}] -" -BDEPEND=" - ${RDEPEND} - test? ( dev-util/ccache ) -" - -distutils-r1_src_prepare() { - # remove vendored version of SCons that is Python2 only - # this should be removed when upstream removes support for Python2 - rm -vR "nuitka/build/inline_copy/lib/scons-2.3.2/SCons" || die - eapply_user -} - -python_install() { - distutils-r1_python_install - doman doc/nuitka.1 doc/nuitka-run.1 -} - -python_test() { - append-ldflags -Wl,--no-warn-search-mismatch - ./tests/basics/run_all.py search || die -} - -pkg_postinst() { - optfeature "support for stand-alone executables" dev-util/patchelf -} diff --git a/dev-python/nuitka/nuitka-2.7.2.ebuild b/dev-python/nuitka/nuitka-2.7.5.ebuild index c97d7f3c6ae8..c97d7f3c6ae8 100644 --- a/dev-python/nuitka/nuitka-2.7.2.ebuild +++ b/dev-python/nuitka/nuitka-2.7.5.ebuild diff --git a/dev-python/portend/Manifest b/dev-python/portend/Manifest index 2799086d61b1..04a2e52e845a 100644 --- a/dev-python/portend/Manifest +++ b/dev-python/portend/Manifest @@ -1 +1,2 @@ DIST portend-3.2.0.tar.gz 10514 BLAKE2B f60a800d37e61400e173507146f33ed6977cb0020773f5d2b6fba0a155bfd7e101e00bf057604ec0f25f5cd6f1bb57e3bfe2fc2bbe75b00f55c234f597a1f3f6 SHA512 56790cdb6d1619e8873acc2498f9bee758a64ad8f8e47f31e48ae1ac7b6f038fc81af5d52cbc4bc4797dd6dc25d453d391d73d454c98559b1d6a8e9061837d7f +DIST portend-3.2.1.tar.gz 12243 BLAKE2B d669f09954c33b03e321fc04ff7a887582ee5d32a3ab15322e9ef01d32726ea5dd96fa8624464d3abf54954c823314c4c91574ba35cc42ed3cde3886e33c4dc7 SHA512 6f9d18e25344961945f39a4bbf6b4d299a9de510f8a2ca86f829ffe513090af90c11bd6180e6f2d189287d2f7d5d7fd4450158bfb28ff61686e10d480e2eebc1 diff --git a/dev-python/portend/portend-3.2.1.ebuild b/dev-python/portend/portend-3.2.1.ebuild new file mode 100644 index 000000000000..ddbc610d758f --- /dev/null +++ b/dev-python/portend/portend-3.2.1.ebuild @@ -0,0 +1,28 @@ +# 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="TCP port monitoring utilities" +HOMEPAGE=" + https://github.com/jaraco/portend/ + https://pypi.org/project/portend/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + >=dev-python/tempora-1.8[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest diff --git a/dev-python/pyaml/Manifest b/dev-python/pyaml/Manifest index 683b589f9abf..087a55b864f2 100644 --- a/dev-python/pyaml/Manifest +++ b/dev-python/pyaml/Manifest @@ -1 +1,2 @@ DIST pyaml-25.1.0.tar.gz 29469 BLAKE2B f73ba6bfdcbd5437ec9540845316940d60194b04f039b91180829207b680d1524c7811f424d3a055df87ddc179394e53020083c3fde0e1f10cfde5d495716c71 SHA512 ab006e2ee2c4592ac2e1f8aa2afa3443e206d8147739fc561f994273a41473dfb6faf6324c2c6e9fdc46a9829424f9416b85e8a85a06495430183deca47f16ec +DIST pyaml-25.5.0.tar.gz 29812 BLAKE2B d737dd5479bbb151fe4973b6514f47f1793c2611d9a5adc0e4e92552fd869095481a0aef28e3e416e35233b671d6d2c14fbd51bee92bfca69c58043cb1b4d95d SHA512 b4d95cc93d6a948527ccc99395476539da999b78d330ff49006e6af5be59b3ba39791de3cecd5efd6e611ef3023fd742259be61f327b4a5bebf933870793896c diff --git a/dev-python/pyaml/pyaml-25.5.0.ebuild b/dev-python/pyaml/pyaml-25.5.0.ebuild new file mode 100644 index 000000000000..d768241a419d --- /dev/null +++ b/dev-python/pyaml/pyaml-25.5.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="PyYAML-based module to produce pretty and readable YAML-serialized data" +HOMEPAGE=" + https://github.com/mk-fg/pretty-yaml/ + https://pypi.org/project/pyaml/ +" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" + +RDEPEND=" + dev-python/pyyaml[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/unidecode[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest diff --git a/dev-python/pybind11/Manifest b/dev-python/pybind11/Manifest index 8b3281109753..47c2bf6299f9 100644 --- a/dev-python/pybind11/Manifest +++ b/dev-python/pybind11/Manifest @@ -1,2 +1,3 @@ DIST pybind11-2.13.6.gh.tar.gz 800804 BLAKE2B 1f2efa05727ebbcd8e439b83bacfebb21d26a6f8f719e0a627633abdcae59837936e37e6441196e097e0075c9f922048d4e88146bb627d97ada28c48165bddb7 SHA512 497c25b33b09a9c42f67131ab82e35d689e8ce089dd7639be997305ff9a6d502447b79c824508c455d559e61f0186335b54dd2771d903a7c1621833930622d1a DIST pybind11-3.0.0rc1.gh.tar.gz 902027 BLAKE2B 9ddc7a5307b8e2fd53d99b8f93afd960ba73c9a04dd1b89f4b53b4e80f4bede74a823643c6e40d43741321b5b73752738782c1f601158cb77a4d6f58485cb002 SHA512 e05369a1082e3980055970d8fa9dddb54f2d1d75ef1e9968f62a02d9d00b9d22109359f97fd8cc0a2a8881c8126f5820c08cd41dd29c998a1c60c6a69c9a3983 +DIST pybind11-3.0.0rc2.gh.tar.gz 904127 BLAKE2B 7d64cece4672c0c46d5a9114e06f4d877382e501cc3a926f7ed9aa2909bbb49ba8a2e7a6516ffde7f483aa6c0dbd43c4114e9fb4c05bf361fc87e65bd7bd9788 SHA512 ed36f00bbcdf4f52962eb2a52eb6ba1a7be7e9a3c81556676e8b8d52ce2a79c8e59c5e21da6acc149ba5a5d0e7ed60dbb2e80647d4228f46993c4c20ac3eae31 diff --git a/dev-python/pybind11/pybind11-3.0.0_rc2.ebuild b/dev-python/pybind11/pybind11-3.0.0_rc2.ebuild new file mode 100644 index 000000000000..6ab744eced63 --- /dev/null +++ b/dev-python/pybind11/pybind11-3.0.0_rc2.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=scikit-build-core +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit cmake distutils-r1 + +MY_P=${P/_} +DESCRIPTION="AST-based Python refactoring library" +HOMEPAGE=" + https://pybind11.readthedocs.io/en/stable/ + https://github.com/pybind/pybind11/ + https://pypi.org/project/pybind11/ +" +SRC_URI=" + https://github.com/pybind/pybind11/archive/v${PV/_}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" + +RDEPEND=" + dev-cpp/eigen:3 +" +BDEPEND=" + test? ( + <dev-cpp/catch-3:0 + >=dev-cpp/catch-2.13.9:0 + dev-libs/boost + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/tomlkit[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + cmake_src_prepare + distutils-r1_src_prepare + + # https://github.com/scikit-build/scikit-build-core/issues/912 + sed -i -e '/scikit-build-core/s:0\.11\.2:0.8:' pyproject.toml || die +} + +python_configure() { + DISTUTILS_ARGS=( + # disable forced lto + -DHAS_FLTO=OFF + # https://github.com/pybind/pybind11/issues/5087 + -DPYBIND11_FINDPYTHON=OFF + -DPYBIND11_INSTALL=ON + -DPYBIND11_TEST=OFF + ) + + local mycmakeargs=( + "${DISTUTILS_ARGS[@]}" + -DPYBIND11_TEST=$(usex test) + ) + cmake_src_configure +} + +python_compile() { + distutils-r1_python_compile + # Compilation only does anything for tests + use test && cmake_src_compile +} + +python_test() { + cmake_build cpptest test_cmake_build + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + cd "${BUILD_DIR}/tests" || die + epytest -p rerunfailures --reruns=5 "${S}/tests" +} + +python_install() { + distutils-r1_python_install + cmake_src_install +} diff --git a/dev-python/pynvim/files/pynvim-0.5.2-py314.patch b/dev-python/pynvim/files/pynvim-0.5.2-py314.patch new file mode 100644 index 000000000000..1bd0d1d90e72 --- /dev/null +++ b/dev-python/pynvim/files/pynvim-0.5.2-py314.patch @@ -0,0 +1,51 @@ +https://github.com/neovim/pynvim/commit/e2a3ead549f91bc5f5a157660be7a29e0bc9f728 + +From e2a3ead549f91bc5f5a157660be7a29e0bc9f728 Mon Sep 17 00:00:00 2001 +From: Andreas Schneider <asn@cryptomilk.org> +Date: Mon, 13 Jan 2025 09:43:32 +0100 +Subject: [PATCH] fix: asyncio.get_child_watcher() was removed in Python 3.14 + #584 + +Fixes #583 +--- + pynvim/msgpack_rpc/event_loop/asyncio.py | 17 ++++++++++++++--- + 1 file changed, 14 insertions(+), 3 deletions(-) + +diff --git a/pynvim/msgpack_rpc/event_loop/asyncio.py b/pynvim/msgpack_rpc/event_loop/asyncio.py +index cb17f321..d4ad1413 100644 +--- a/pynvim/msgpack_rpc/event_loop/asyncio.py ++++ b/pynvim/msgpack_rpc/event_loop/asyncio.py +@@ -188,10 +188,20 @@ async def connect_stdout(): + + @override + def _connect_child(self, argv: List[str]) -> None: ++ def get_child_watcher(): ++ try: ++ return asyncio.get_child_watcher() ++ except AttributeError: # Python 3.14 ++ return None ++ ++ return None ++ + if os.name != 'nt': + # see #238, #241 +- self._child_watcher = asyncio.get_child_watcher() +- self._child_watcher.attach_loop(self._loop) ++ watcher = get_child_watcher() ++ if watcher is not None: ++ watcher.attach_loop(self._loop) ++ self._child_watcher = watcher + + async def create_subprocess(): + transport: asyncio.SubprocessTransport # type: ignore +@@ -250,7 +260,8 @@ def _close_transport(transport): + # Windows: for ProactorBasePipeTransport, close() doesn't take in + # effect immediately (closing happens asynchronously inside the + # event loop), need to wait a bit for completing graceful shutdown. +- if os.name == 'nt' and hasattr(transport, '_sock'): ++ if (sys.version_info < (3, 13) and ++ os.name == 'nt' and hasattr(transport, '_sock')): + async def wait_until_closed(): + # pylint: disable-next=protected-access + while transport._sock is not None: + diff --git a/dev-python/pynvim/pynvim-0.5.2-r1.ebuild b/dev-python/pynvim/pynvim-0.5.2-r1.ebuild new file mode 100644 index 000000000000..df142895d8da --- /dev/null +++ b/dev-python/pynvim/pynvim-0.5.2-r1.ebuild @@ -0,0 +1,56 @@ +# 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 + +DESCRIPTION="Python client for Neovim" +HOMEPAGE=" + https://github.com/neovim/pynvim/ + https://pypi.org/project/pynvim/ +" +SRC_URI=" + https://github.com/neovim/pynvim/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND=" + dev-python/msgpack[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/greenlet-3.0[${PYTHON_USEDEP}] + ' 'python*') + $(python_gen_cond_dep ' + >=dev-python/typing-extensions-4.5[${PYTHON_USEDEP}] + ' 3.11) +" +BDEPEND=" + test? ( + app-editors/neovim + dev-python/pytest-timeout[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.5.2-py314.patch +) + +: ${EPYTEST_TIMEOUT:=5} +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # hangs + test/test_events.py::test_broadcast + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/rencode/Manifest b/dev-python/rencode/Manifest index 8bb5414afd6f..f2ed4924274a 100644 --- a/dev-python/rencode/Manifest +++ b/dev-python/rencode/Manifest @@ -1 +1,2 @@ DIST rencode-1.0.6.gh.tar.gz 25455 BLAKE2B def013a569a53e2b2d96b3430c13676810bc5879e565f091dbc44f1ae950b8ec7ca0fa5e35a974432fd71a1bcca5a3f1f18bb2a9f042480167ab50e4f0aba8c3 SHA512 f04de4d3a83aed916bdc4b7a8ca772655e9324d0531ee882cb7d2a1e92b397bdcec8497bf02939e0a806886ecc62ed2e7319dfee054dad1b69052157f0959e8f +DIST rencode-1.0.8.gh.tar.gz 26072 BLAKE2B cca51bc4c53930a6ea847adeef0394e4cea7120862392fecd7325bb4bb9b9df9afdc892a3dee0c879fba44a007e8050508406c1ad37bbc756413fcf39521e7f3 SHA512 0c929d557f20b055c2c1ccbb29e6e8bedd2dbab2b356da7cdc9bb985a78be7bfb3a0d43bb7576fd7f95a830e99eb23f3a9dcd01547307d00905bdd2555b49294 diff --git a/dev-python/rencode/rencode-1.0.8.ebuild b/dev-python/rencode/rencode-1.0.8.ebuild new file mode 100644 index 000000000000..364e6c299822 --- /dev/null +++ b/dev-python/rencode/rencode-1.0.8.ebuild @@ -0,0 +1,36 @@ +# 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_{11..14} ) + +inherit distutils-r1 + +DESCRIPTION="Serialization similar to bencode from the BitTorrent project" +HOMEPAGE=" + https://github.com/aresch/rencode/ + https://pypi.org/project/rencode/ +" +SRC_URI=" + https://github.com/aresch/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_test() { + rm -rf rencode || die + epytest +} diff --git a/dev-python/starlette/Manifest b/dev-python/starlette/Manifest index 138061d7dfd4..22931e1774ba 100644 --- a/dev-python/starlette/Manifest +++ b/dev-python/starlette/Manifest @@ -1 +1,2 @@ DIST starlette-0.46.2.gh.tar.gz 2580854 BLAKE2B 65f1a6c2bf74db77390802c3ca9f7e8f9aff22890f69547137ab779946680442cc2072b8f468c18257b4f730d156a650f8faf5395d74b05f2a15f0573e8ffdde SHA512 51805e61c33b20d2c034d513c4795876a70f60f19798a91fad3594d77bb0fd638c6de73d56032b1806df9e9bff62dcb13aa23d0b7e5c83d0a0ef5166f0b141da +DIST starlette-0.47.0.gh.tar.gz 2582806 BLAKE2B 4272451fed218d7a2ec0ccb9d7d921bce62be01ff28f6cf0e906e221507f345f850ca8fd3e09aedf748b45df36c2692bb6b3abb4058e8bbaf777312765f51281 SHA512 4a53a0e91cbcb67df1e065217a9a905888049d3bbd7a3f39ce392816cebb9e8e4bdd0b269c191e9d6003dc3f306355dd7d50d180c56b904485fffa793ba82e72 diff --git a/dev-python/starlette/starlette-0.47.0.ebuild b/dev-python/starlette/starlette-0.47.0.ebuild new file mode 100644 index 000000000000..ff51d180c843 --- /dev/null +++ b/dev-python/starlette/starlette-0.47.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 + +MY_P=${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="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + <dev-python/anyio-5[${PYTHON_USEDEP}] + >=dev-python/anyio-3.6.2[${PYTHON_USEDEP}] + <dev-python/httpx-0.29[${PYTHON_USEDEP}] + >=dev-python/httpx-0.22.0[${PYTHON_USEDEP}] + dev-python/itsdangerous[${PYTHON_USEDEP}] + dev-python/jinja2[${PYTHON_USEDEP}] + >=dev-python/python-multipart-0.0.18[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/pytest-8[${PYTHON_USEDEP}] + dev-python/trio[${PYTHON_USEDEP}] + ) +" + +: ${EPYTEST_TIMEOUT:-180} +distutils_enable_tests pytest + +python_test() { + local EPYTEST_IGNORE=( + # Unpackaged 'databases' dependency + tests/test_database.py + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p anyio +} |
