diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-06-04 10:58:24 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-06-04 10:58:24 +0000 |
| commit | 9f814b4c24f5a9bd139baac62df5b34ad39b9dc1 (patch) | |
| tree | 2839e8a10ba82d8590a32528cbe1015c0b10db94 /dev-python | |
| parent | 47edd8ab941a8d8d99e52fcc60d402326e99bd40 (diff) | |
| download | baldeagleos-repo-9f814b4c24f5a9bd139baac62df5b34ad39b9dc1.tar.gz baldeagleos-repo-9f814b4c24f5a9bd139baac62df5b34ad39b9dc1.tar.xz baldeagleos-repo-9f814b4c24f5a9bd139baac62df5b34ad39b9dc1.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/googleapis-common-protos/googleapis-common-protos-1.70.0.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/grpcio-status/grpcio-status-1.72.1.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/networkx/files/networkx-3.5-py314.patch | 53 | ||||
| -rw-r--r-- | dev-python/networkx/networkx-3.5-r1.ebuild | 64 | ||||
| -rw-r--r-- | dev-python/pyqt-builder/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pyqt-builder/pyqt-builder-1.18.2.ebuild | 30 | ||||
| -rw-r--r-- | dev-python/sip/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/sip/sip-6.12.0.ebuild | 32 |
8 files changed, 183 insertions, 2 deletions
diff --git a/dev-python/googleapis-common-protos/googleapis-common-protos-1.70.0.ebuild b/dev-python/googleapis-common-protos/googleapis-common-protos-1.70.0.ebuild index a6d78d83f50f..486f8ff02b12 100644 --- a/dev-python/googleapis-common-protos/googleapis-common-protos-1.70.0.ebuild +++ b/dev-python/googleapis-common-protos/googleapis-common-protos-1.70.0.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/grpcio-status/grpcio-status-1.72.1.ebuild b/dev-python/grpcio-status/grpcio-status-1.72.1.ebuild index e30ee25d169a..d7038de3c24e 100644 --- a/dev-python/grpcio-status/grpcio-status-1.72.1.ebuild +++ b/dev-python/grpcio-status/grpcio-status-1.72.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 diff --git a/dev-python/networkx/files/networkx-3.5-py314.patch b/dev-python/networkx/files/networkx-3.5-py314.patch new file mode 100644 index 000000000000..4b109fd9acd7 --- /dev/null +++ b/dev-python/networkx/files/networkx-3.5-py314.patch @@ -0,0 +1,53 @@ +From 5487e923e39f526fe12a74d7399e5153f06698a4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Tue, 3 Jun 2025 09:54:33 +0200 +Subject: [PATCH] Use type checks in `generators/lattice.py` for Py3.14 compat + +Replace the `TypeError` catching in `networkx/generators/lattice.py` +with explicit type checks to make the code more reliable and fix it for +Python 3.14. Catching the exception immediately does not work +in the second instance, because the code is constructing a generator, +and apparently Python 3.14 does not evaluate the `p in periodic` +expression until the generator is actually iterated over. Given that +the function expects either an iterable or a `bool`, explicitly checking +for `bool` should both be more readable and more reliable. + +The alternative would be to replace the generator with a list +comprehension that would be evaluated immediately. However, +the explicit type check seems to be a cleaner solution to the problem. +--- + networkx/generators/lattice.py | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/networkx/generators/lattice.py b/networkx/generators/lattice.py +index 95e520d2c..3b0900ea1 100644 +--- a/networkx/generators/lattice.py ++++ b/networkx/generators/lattice.py +@@ -67,10 +67,10 @@ def grid_2d_graph(m, n, periodic=False, create_using=None): + G.add_edges_from(((i, j), (pi, j)) for pi, i in pairwise(rows) for j in cols) + G.add_edges_from(((i, j), (i, pj)) for i in rows for pj, j in pairwise(cols)) + +- try: +- periodic_r, periodic_c = periodic +- except TypeError: ++ if isinstance(periodic, bool): + periodic_r = periodic_c = periodic ++ else: ++ periodic_r, periodic_c = periodic + + if periodic_r and len(rows) > 2: + first = rows[0] +@@ -129,10 +129,10 @@ def grid_graph(dim, periodic=False): + if not dim: + return empty_graph(0) + +- try: +- func = (cycle_graph if p else path_graph for p in periodic) +- except TypeError: ++ if isinstance(periodic, bool): + func = repeat(cycle_graph if periodic else path_graph) ++ else: ++ func = (cycle_graph if p else path_graph for p in periodic) + + G = next(func)(dim[0]) + for current_dim in dim[1:]: diff --git a/dev-python/networkx/networkx-3.5-r1.ebuild b/dev-python/networkx/networkx-3.5-r1.ebuild new file mode 100644 index 000000000000..25a1d22621f9 --- /dev/null +++ b/dev-python/networkx/networkx-3.5-r1.ebuild @@ -0,0 +1,64 @@ +# 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 + +PATCHES=( + # minimal fix for https://github.com/networkx/networkx/issues/8091 + "${FILESDIR}/${P}-py314.patch" +) + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + 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/pyqt-builder/Manifest b/dev-python/pyqt-builder/Manifest index 85ec24840eb4..1a29d3ec1e9a 100644 --- a/dev-python/pyqt-builder/Manifest +++ b/dev-python/pyqt-builder/Manifest @@ -1 +1,2 @@ DIST pyqt_builder-1.18.1.tar.gz 3671990 BLAKE2B bb0fc3fb7a35bbd7374c57085378c0e50150164f1f9128bc808c5ea6f4ba72987003e3e91864a851969aa892c145b284962b36cf975c71a20e6294a4f3a6645b SHA512 9af2a977854b6a1f6cf7c3c31b18c4104e8cb46cf9066700a62151ed5dfe7d82645065b747dc68a3588e855a96c40102e0e47a972ab752f751825e6fd4c91332 +DIST pyqt_builder-1.18.2.tar.gz 3671864 BLAKE2B 32ae2105b25029e2c881f26c660bf35eb63f6f19f31a800ea11ce639ce8da48e7485aae67fd0e1f05a9d7f97e49b507f19e162ceaacaee690ff52fec0fec3492 SHA512 129b8cbb7d2c6b533618d5b8523453ce4f442a2052c1151c30c8076e99d7887caac1e9c24220a913bc17444b35061ea507fd7f9038efd82a63636b24ae4182b5 diff --git a/dev-python/pyqt-builder/pyqt-builder-1.18.2.ebuild b/dev-python/pyqt-builder/pyqt-builder-1.18.2.ebuild new file mode 100644 index 000000000000..79890dd9d3f1 --- /dev/null +++ b/dev-python/pyqt-builder/pyqt-builder-1.18.2.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_{9,10,11,12,13} ) +inherit distutils-r1 pypi + +DESCRIPTION="The PEP 517 compliant PyQt build system" +HOMEPAGE="https://github.com/Python-PyQt/PyQt-builder/" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" + +RDEPEND=" + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/sip-6.7[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] +" + +src_prepare() { + distutils-r1_src_prepare + + # skip installing DLLs + rm -r pyqtbuild/bundle/dlls || die +} diff --git a/dev-python/sip/Manifest b/dev-python/sip/Manifest index fd4747982346..28095519bcad 100644 --- a/dev-python/sip/Manifest +++ b/dev-python/sip/Manifest @@ -1,2 +1,3 @@ DIST sip-6.10.0.gh.tar.gz 2448793 BLAKE2B bbd88954884c83d489e86b6ffc0098dc0d5266bd06e31e4289464a0455d489fa260373e730ede45873834df8bc09b7ab7a6c411c8b82971aa4f3c9640849941b SHA512 b30a70c7cd62708f552b542e86449e35ae0b79f41ed2420c6c275fb5ccba605590bb3ee511e67c52c657361df0406ad0787f3bbb1c0c79d62f25bf916a0a0cee DIST sip-6.11.1.gh.tar.gz 2456897 BLAKE2B d4129455884847e1aa5684828dea6c9136a038acf82569c655dfb9b1a8b6247102bde99810d7447378527dcde73fbabf0d850fcc06cf6e6176ed8d6870c6d094 SHA512 6e801db1c7f439383e613ed3fea9a57c79e5f262831df10d9bc5534709df743e1f8c5cff0622b3f1296f43c91524e48a81faf554e7e9704297a18b11ad77edc2 +DIST sip-6.12.0.gh.tar.gz 2457825 BLAKE2B 40676b8f989274cb9466f4d68a63bf53aa5d093325a7627b62a5da129eb878a5c4c7f8d351500ad8aab184a9edde980e2476571e235d99283d99271cc10b85b2 SHA512 36e3a70a60560ce5c741a865dd68f9a1863742b413833386b28e838972a5e9eaa932c8a15300af6a0a1e338634202c9c79706fd3e0a10fc7b932d3fc5c80ddb0 diff --git a/dev-python/sip/sip-6.12.0.ebuild b/dev-python/sip/sip-6.12.0.ebuild new file mode 100644 index 000000000000..8abc7ce9ef41 --- /dev/null +++ b/dev-python/sip/sip-6.12.0.ebuild @@ -0,0 +1,32 @@ +# 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="Python bindings generator for C/C++ libraries" +HOMEPAGE="https://github.com/Python-SIP/sip/" +SRC_URI=" + https://github.com/Python-SIP/sip/archive/refs/tags/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD-2 BSD" +SLOT="5" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/setuptools-scm-8[${PYTHON_USEDEP}] +" + +distutils_enable_sphinx docs \ + dev-python/myst-parser \ + dev-python/sphinx-rtd-theme +distutils_enable_tests pytest |
