summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-20 23:51:22 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-20 23:51:22 +0100
commitaece5d2a4da7555f3e9bdd6e5973a8f8c79af5bc (patch)
tree841156d5e2f1b7c8378869ce46a996480a915347
parent1ca521082356f2d62475cb7020beaa31808aedd6 (diff)
dev-python/grpcio{,-tools} : import from gentoo, version bump, cython3 compat
-rw-r--r--dev-python/grpcio-tools/Manifest1
-rw-r--r--dev-python/grpcio-tools/grpcio-tools-1.59.0.ebuild36
-rw-r--r--dev-python/grpcio/Manifest1
-rw-r--r--dev-python/grpcio/files/1.59.0-cython3.patch59
-rw-r--r--dev-python/grpcio/grpcio-1.59.0.ebuild49
-rw-r--r--metadata/md5-cache/dev-python/grpcio-1.59.016
-rw-r--r--metadata/md5-cache/dev-python/grpcio-tools-1.59.016
-rw-r--r--metadata/pkg_desc_index2
8 files changed, 180 insertions, 0 deletions
diff --git a/dev-python/grpcio-tools/Manifest b/dev-python/grpcio-tools/Manifest
new file mode 100644
index 00000000..d1cf006e
--- /dev/null
+++ b/dev-python/grpcio-tools/Manifest
@@ -0,0 +1 @@
+DIST grpcio-tools-1.59.0.tar.gz 4622547 BLAKE2B 1d6cd5f375a4139bc977f04b2b0f18689e4df58d29f6ca5f05ea8fb1e47ba455d7e6c0c65ee11467d878fe12f584a641d75153f0ae59aa8ec28289a0c102cddc SHA512 15686fb90c2c228875792a580a2637098ec07a7f715302af7efb28b28c19c0083616786c1b526984a225035652372c5898256cb17536225c313797a1d0c85675
diff --git a/dev-python/grpcio-tools/grpcio-tools-1.59.0.ebuild b/dev-python/grpcio-tools/grpcio-tools-1.59.0.ebuild
new file mode 100644
index 00000000..92eb5d24
--- /dev/null
+++ b/dev-python/grpcio-tools/grpcio-tools-1.59.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+DISTUTILS_USE_PEP517=setuptools
+PYPI_NO_NORMALIZE=1
+
+inherit distutils-r1 multiprocessing prefix pypi
+
+DESCRIPTION="Protobuf code generator for gRPC"
+HOMEPAGE="https://grpc.io"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+RDEPEND="
+ dev-python/cython[${PYTHON_USEDEP}]
+ ~dev-python/grpcio-${PV}[${PYTHON_USEDEP}]
+ <dev-python/protobuf-python-5[${PYTHON_USEDEP}]
+ >=dev-python/protobuf-python-4.21.3[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}"
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+ hprefixify setup.py
+}
+
+python_configure_all() {
+ export GRPC_PYTHON_BUILD_WITH_CYTHON=1
+ export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)"
+}
diff --git a/dev-python/grpcio/Manifest b/dev-python/grpcio/Manifest
new file mode 100644
index 00000000..c53eb55d
--- /dev/null
+++ b/dev-python/grpcio/Manifest
@@ -0,0 +1 @@
+DIST grpcio-1.59.0.tar.gz 24842974 BLAKE2B d883d9800f5b2025774c37a6c076500e113121b7e1254368d9c4b95c1170593969af4568492744527f909f828121630dd870210d2e2de718ba907be09f9b826b SHA512 1b345c2b87593934aa15e8019d858c6f7000d3e66ffd20ae538028aa109d8553ccff819ad8796b19c51d647851139d13b9158c9f2639b0b9506347ceff646637
diff --git a/dev-python/grpcio/files/1.59.0-cython3.patch b/dev-python/grpcio/files/1.59.0-cython3.patch
new file mode 100644
index 00000000..67834966
--- /dev/null
+++ b/dev-python/grpcio/files/1.59.0-cython3.patch
@@ -0,0 +1,59 @@
+diff -Nur a/src/python/grpcio/grpc/_cython/_cygrpc/aio/callback_common.pxd.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/aio/callback_common.pxd.pxi
+--- a/src/python/grpcio/grpc/_cython/_cygrpc/aio/callback_common.pxd.pxi 2023-09-29 00:27:01.000000000 +0100
++++ b/src/python/grpcio/grpc/_cython/_cygrpc/aio/callback_common.pxd.pxi 2023-10-20 23:32:19.961712516 +0100
+@@ -48,7 +48,7 @@
+ @staticmethod
+ cdef void functor_run(
+ grpc_completion_queue_functor* functor,
+- int succeed)
++ int succeed) noexcept
+
+ cdef grpc_completion_queue_functor *c_functor(self)
+
+diff -Nur a/src/python/grpcio/grpc/_cython/_cygrpc/aio/callback_common.pyx.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/aio/callback_common.pyx.pxi
+--- a/src/python/grpcio/grpc/_cython/_cygrpc/aio/callback_common.pyx.pxi 2023-09-29 00:27:01.000000000 +0100
++++ b/src/python/grpcio/grpc/_cython/_cygrpc/aio/callback_common.pyx.pxi 2023-10-20 23:32:19.961712516 +0100
+@@ -50,7 +50,7 @@
+ @staticmethod
+ cdef void functor_run(
+ grpc_completion_queue_functor* functor,
+- int success):
++ int success) noexcept:
+ cdef CallbackContext *context = <CallbackContext *>functor
+ cdef object waiter = <object>context.waiter
+ if not waiter.cancelled():
+diff -Nur a/src/python/grpcio/grpc/_cython/_cygrpc/credentials.pyx.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/credentials.pyx.pxi
+--- a/src/python/grpcio/grpc/_cython/_cygrpc/credentials.pyx.pxi 2023-09-29 00:27:01.000000000 +0100
++++ b/src/python/grpcio/grpc/_cython/_cygrpc/credentials.pyx.pxi 2023-10-20 23:39:10.583700341 +0100
+@@ -314,7 +314,7 @@
+ return credentials
+
+ cdef grpc_ssl_certificate_config_reload_status _server_cert_config_fetcher_wrapper(
+- void* user_data, grpc_ssl_server_certificate_config **config) with gil:
++ void* user_data, grpc_ssl_server_certificate_config **config) noexcept with gil:
+ # This is a credentials.ServerCertificateConfig
+ cdef ServerCertificateConfig cert_config = None
+ if not user_data:
+diff -Nur a/src/python/grpcio/grpc/_cython/_cygrpc/vtable.pyx.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/vtable.pyx.pxi
+--- a/src/python/grpcio/grpc/_cython/_cygrpc/vtable.pyx.pxi 2023-09-29 00:27:01.000000000 +0100
++++ b/src/python/grpcio/grpc/_cython/_cygrpc/vtable.pyx.pxi 2023-10-20 23:32:19.960712516 +0100
+@@ -13,16 +13,16 @@
+ # limitations under the License.
+
+ # TODO(https://github.com/grpc/grpc/issues/15662): Reform this.
+-cdef void* _copy_pointer(void* pointer):
++cdef void* _copy_pointer(void* pointer) noexcept:
+ return pointer
+
+
+ # TODO(https://github.com/grpc/grpc/issues/15662): Reform this.
+-cdef void _destroy_pointer(void* pointer):
++cdef void _destroy_pointer(void* pointer) noexcept:
+ pass
+
+
+-cdef int _compare_pointer(void* first_pointer, void* second_pointer):
++cdef int _compare_pointer(void* first_pointer, void* second_pointer) noexcept:
+ if first_pointer < second_pointer:
+ return -1
+ elif first_pointer > second_pointer:
diff --git a/dev-python/grpcio/grpcio-1.59.0.ebuild b/dev-python/grpcio/grpcio-1.59.0.ebuild
new file mode 100644
index 00000000..74b56c15
--- /dev/null
+++ b/dev-python/grpcio/grpcio-1.59.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2023 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..11} )
+
+inherit distutils-r1 multiprocessing prefix pypi
+
+DESCRIPTION="High-performance RPC framework (python libraries)"
+HOMEPAGE="https://grpc.io"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86"
+
+RDEPEND="
+ >=dev-libs/openssl-1.1.1:0=[-bindist(-)]
+ >=dev-libs/re2-0.2021.11.01:=
+ >=dev-python/cython-0.29.36[${PYTHON_USEDEP}]
+ <dev-python/protobuf-python-5[${PYTHON_USEDEP}]
+ >=dev-python/protobuf-python-4.21.3[${PYTHON_USEDEP}]
+ net-dns/c-ares:=
+ sys-libs/zlib:=
+"
+
+DEPEND="${RDEPEND}"
+
+python_prepare_all() {
+ if has_version ">=dev-python/cython-3.0.0[${PYTHON_USEDEP}]"; then
+ PATCHES=( "${FILESDIR}/1.59.0-cython3.patch" )
+ fi
+ distutils-r1_python_prepare_all
+ hprefixify setup.py
+}
+
+python_configure_all() {
+ # os.environ.get('GRPC_BUILD_WITH_BORING_SSL_ASM', True)
+ export GRPC_BUILD_WITH_BORING_SSL_ASM=
+ export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=1
+ export GRPC_PYTHON_BUILD_SYSTEM_CARES=1
+ export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
+ export GRPC_PYTHON_BUILD_WITH_SYSTEM_RE2=1
+ export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
+ export GRPC_PYTHON_BUILD_WITH_CYTHON=1
+ export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)"
+}
diff --git a/metadata/md5-cache/dev-python/grpcio-1.59.0 b/metadata/md5-cache/dev-python/grpcio-1.59.0
new file mode 100644
index 00000000..802abbfe
--- /dev/null
+++ b/metadata/md5-cache/dev-python/grpcio-1.59.0
@@ -0,0 +1,16 @@
+BDEPEND=python_targets_python3_10? ( dev-lang/python:3.10 ) python_targets_python3_11? ( dev-lang/python:3.11 ) >=dev-python/gpep517-15[python_targets_python3_10(-)?,python_targets_python3_11(-)?] >=dev-python/setuptools-67.8.0-r1[python_targets_python3_10(-)?,python_targets_python3_11(-)?]
+DEFINED_PHASES=compile configure install prepare test
+DEPEND=>=dev-libs/openssl-1.1.1:0=[-bindist(-)] >=dev-libs/re2-0.2021.11.01:= >=dev-python/cython-0.29.36[python_targets_python3_10(-)?,python_targets_python3_11(-)?] <dev-python/protobuf-python-5[python_targets_python3_10(-)?,python_targets_python3_11(-)?] >=dev-python/protobuf-python-4.21.3[python_targets_python3_10(-)?,python_targets_python3_11(-)?] net-dns/c-ares:= sys-libs/zlib:= python_targets_python3_10? ( dev-lang/python:3.10 ) python_targets_python3_11? ( dev-lang/python:3.11 )
+DESCRIPTION=High-performance RPC framework (python libraries)
+EAPI=8
+HOMEPAGE=https://grpc.io
+INHERIT=distutils-r1 multiprocessing prefix pypi
+IUSE=python_targets_python3_10 python_targets_python3_11 debug
+KEYWORDS=amd64 ~arm ~arm64 ~ppc64 ~riscv x86
+LICENSE=Apache-2.0
+RDEPEND=>=dev-libs/openssl-1.1.1:0=[-bindist(-)] >=dev-libs/re2-0.2021.11.01:= >=dev-python/cython-0.29.36[python_targets_python3_10(-)?,python_targets_python3_11(-)?] <dev-python/protobuf-python-5[python_targets_python3_10(-)?,python_targets_python3_11(-)?] >=dev-python/protobuf-python-4.21.3[python_targets_python3_10(-)?,python_targets_python3_11(-)?] net-dns/c-ares:= sys-libs/zlib:= python_targets_python3_10? ( dev-lang/python:3.10 ) python_targets_python3_11? ( dev-lang/python:3.11 )
+REQUIRED_USE=|| ( python_targets_python3_10 python_targets_python3_11 )
+SLOT=0
+SRC_URI=https://files.pythonhosted.org/packages/source/g/grpcio/grpcio-1.59.0.tar.gz
+_eclasses_=distutils-r1 d05609532b134be7c4ae2514f4c7d06e flag-o-matic e5cc383ea8420f92fe3737be790021dc multibuild 30dbf3c5a31db09a19f31ad0a68f2405 multilib c19072c3cd7ac5cb21de013f7e9832e0 multiprocessing 30ead54fa2e2b5f9cd4e612ffc34d0fe ninja-utils 39e7a84b06eff4efd9f2e0c3d1668b98 out-of-source-utils 1a9007554652a6e627edbccb3c25a439 prefix eab3c99d77fe00506c109c8a736186f7 pypi 2eecb475512bc76e5ea9192a681b9e6b python-r1 8a28fa6d3e3bc96ff8a7eff2badbe71f python-utils-r1 12aa0037eb004139215ff04894d52b28 toolchain-funcs fbbbc99d10168de2926e06da7169b8dc
+_md5_=e1a5f780eb8243c2cff8e944138d2557
diff --git a/metadata/md5-cache/dev-python/grpcio-tools-1.59.0 b/metadata/md5-cache/dev-python/grpcio-tools-1.59.0
new file mode 100644
index 00000000..9a251dc9
--- /dev/null
+++ b/metadata/md5-cache/dev-python/grpcio-tools-1.59.0
@@ -0,0 +1,16 @@
+BDEPEND=python_targets_python3_10? ( dev-lang/python:3.10 ) python_targets_python3_11? ( dev-lang/python:3.11 ) >=dev-python/gpep517-15[python_targets_python3_10(-)?,python_targets_python3_11(-)?] >=dev-python/setuptools-67.8.0-r1[python_targets_python3_10(-)?,python_targets_python3_11(-)?]
+DEFINED_PHASES=compile configure install prepare test
+DEPEND=dev-python/cython[python_targets_python3_10(-)?,python_targets_python3_11(-)?] ~dev-python/grpcio-1.59.0[python_targets_python3_10(-)?,python_targets_python3_11(-)?] <dev-python/protobuf-python-5[python_targets_python3_10(-)?,python_targets_python3_11(-)?] >=dev-python/protobuf-python-4.21.3[python_targets_python3_10(-)?,python_targets_python3_11(-)?]
+DESCRIPTION=Protobuf code generator for gRPC
+EAPI=8
+HOMEPAGE=https://grpc.io
+INHERIT=distutils-r1 multiprocessing prefix pypi
+IUSE=python_targets_python3_10 python_targets_python3_11
+KEYWORDS=~amd64 ~arm64 ~ppc64 ~x86
+LICENSE=Apache-2.0
+RDEPEND=dev-python/cython[python_targets_python3_10(-)?,python_targets_python3_11(-)?] ~dev-python/grpcio-1.59.0[python_targets_python3_10(-)?,python_targets_python3_11(-)?] <dev-python/protobuf-python-5[python_targets_python3_10(-)?,python_targets_python3_11(-)?] >=dev-python/protobuf-python-4.21.3[python_targets_python3_10(-)?,python_targets_python3_11(-)?] python_targets_python3_10? ( dev-lang/python:3.10 ) python_targets_python3_11? ( dev-lang/python:3.11 )
+REQUIRED_USE=|| ( python_targets_python3_10 python_targets_python3_11 )
+SLOT=0
+SRC_URI=https://files.pythonhosted.org/packages/source/g/grpcio-tools/grpcio-tools-1.59.0.tar.gz
+_eclasses_=distutils-r1 d05609532b134be7c4ae2514f4c7d06e flag-o-matic e5cc383ea8420f92fe3737be790021dc multibuild 30dbf3c5a31db09a19f31ad0a68f2405 multilib c19072c3cd7ac5cb21de013f7e9832e0 multiprocessing 30ead54fa2e2b5f9cd4e612ffc34d0fe ninja-utils 39e7a84b06eff4efd9f2e0c3d1668b98 out-of-source-utils 1a9007554652a6e627edbccb3c25a439 prefix eab3c99d77fe00506c109c8a736186f7 pypi 2eecb475512bc76e5ea9192a681b9e6b python-r1 8a28fa6d3e3bc96ff8a7eff2badbe71f python-utils-r1 12aa0037eb004139215ff04894d52b28 toolchain-funcs fbbbc99d10168de2926e06da7169b8dc
+_md5_=8738c70a201e9aa75f56b0d11676fb11
diff --git a/metadata/pkg_desc_index b/metadata/pkg_desc_index
index c8e591f1..3bd527ae 100644
--- a/metadata/pkg_desc_index
+++ b/metadata/pkg_desc_index
@@ -19,6 +19,8 @@ dev-libs/libdbusmenu-qt 0.9.3_pre20160218-r2: A library providing Qt implementat
dev-libs/libdbusmenu-qt5 0.9.3_pre20160218-r3: Library providing Qt implementation of DBusMenu specification
dev-python/animation 0.0.5-r4: Tools for terminal-based wait animations
dev-python/click 7.1.2-r101: A Python package for creating beautiful command line interfaces
+dev-python/grpcio 1.59.0: High-performance RPC framework (python libraries)
+dev-python/grpcio-tools 1.59.0: Protobuf code generator for gRPC
dev-python/sh 1.12.14-r5: Python process launching
dev-python/typer 0.2.1-r4: Build great CLIs. Easy to code. Based on Python type hints
dev-python/wget 2.2-r3: Python library for downloading from http URLs