mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-25 07:08:13 -07:00
dev-python/grpcio: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
DIST grpc-1.78.1.gh.tar.gz 15481241 BLAKE2B b0ee12443674c238b7e9bcd15099dc2157931939069381217dea3f97ed56941421c7ad7861193e507e33227df59dc9773f45805604e4d6c92860a14799be7a76 SHA512 273098845d16aba71da0e0a35acfbf90b7dccb876e691d65712977998b58795208296431913c7b922390d76aff4ed8f05a5fae6d014e4394a6b8482e2d8ebcf8
|
||||
DIST grpc-1.80.0.gh.tar.gz 15772645 BLAKE2B 48f3acc5c3268f651dc865ce3095c306ad3fa0a4eacf6e6eea499d961c0e001e2ab43fe8f0d53713d19998f28ce0184045ad2a8ef4cdc41aee31e2fe70e2b53e SHA512 5ef6ec2277dcb2257f8ac7546057e9a3da6668676a3a4ff64e08e66abb465b5705103c4aa0b41955535ee437d4feef5b811aa3e31636c4cb76bf68c52caaccf7
|
||||
DIST grpcio-1.78.1.tar.gz 12835760 BLAKE2B 45c2c811d5970731e88539ab60d8f99f4477a6cd6f9e64a85dee618a56709c8bd8c7476849dff9bf4d5af75e5dd845bd9a7e1259cb345394a9e8add7ededc6db SHA512 5e123927cf9dd6cbee6c623f88007c6b89e3c0cd67ad911f9fc594546597a3a98542f04ee54b431660eaf6be5248fef67af256400209af1df61e01b1b2222829
|
||||
DIST grpcio-1.80.0.tar.gz 12978905 BLAKE2B 2583bbdfcb05aaced115b4a4ab7d26b95efbe35bf7c2bd7989d9791d50553e05ba3e6323ce8b52c78459b34b5daeb1566ffd1e2b17c14208a13e4a06f0a2a6d5 SHA512 04ef676d6847f3d2820998c07d9f80585c105dc43e3f754b517566e86a92af94328ecdecba0b772e0abe2a53eb49102a12db93099b50d5bee576ac69cb928db5
|
||||
DIST grpcio_tools-1.78.1.tar.gz 5392610 BLAKE2B 21b7b7aa2291351045cef62d4457f3afdf9eabf6754b9371a873032bc7dd96003314b594dd5474914c08965e9aaa206ce110c0e922cd7556c2df341da4bfa128 SHA512 c8e6e0624fbf59d8a15bf8bcf695ac8548fa54475ed196b47b917335d456a67dfd7770c1d94246f46769d62d35075c0b6ea6d2f500af173fb7c1b1cd0be5bf96
|
||||
DIST grpcio_tools-1.80.0.tar.gz 6133212 BLAKE2B 9bf051314482ff946aa6edd4f8b517dec63c1188914d76a2b4d130b68408ee5ec3ec3b5a2075b7ec2257e92ee9dbad37c18c425a2b947b81640f67cadd284df6 SHA512 7d9e17cee024af6731a8b75da6de0c26b554f2c50d75acfefc7708545935af4ab8f60fe0e16550c4c2943eb6c3414c49c38dc1a71df948c87c6c743ee72fff68
|
||||
|
||||
@@ -1,132 +0,0 @@
|
||||
# Copyright 2024-2026 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_{11..14} )
|
||||
|
||||
inherit distutils-r1 flag-o-matic multiprocessing pypi
|
||||
|
||||
MY_P=grpc-${PV}
|
||||
DESCRIPTION="HTTP/2-based RPC framework"
|
||||
HOMEPAGE="
|
||||
https://grpc.io/
|
||||
https://github.com/grpc/grpc/
|
||||
https://pypi.org/project/grpcio/
|
||||
"
|
||||
# Tests need other packages from the source tree, so use a GitHub
|
||||
# archive. sdist provides bundled library sources (git submodules).
|
||||
SRC_URI+="
|
||||
test? (
|
||||
https://github.com/grpc/grpc/archive/v${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
$(pypi_sdist_url grpcio_tools)
|
||||
)
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64 x86"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/openssl:=
|
||||
net-dns/c-ares:=
|
||||
virtual/zlib:=
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
>=dev-python/typing-extensions-4.12.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
# TODO: try to remove coverage dep
|
||||
BDEPEND="
|
||||
>=dev-python/cython-3.1.1[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
>=dev-python/protobuf-6.31.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
sed -i -e '/INSTALL_REQUIRES/s:~=:>=:' setup.py || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# -Werror=odr -Werror=lto-type-mismatch
|
||||
# https://bugs.gentoo.org/856775
|
||||
# https://github.com/grpc/grpc/issues/36158
|
||||
filter-lto
|
||||
|
||||
export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)"
|
||||
# system abseil-cpp crashes with USE=-debug, sigh
|
||||
# https://bugs.gentoo.org/942021
|
||||
#export GRPC_PYTHON_BUILD_SYSTEM_ABSL=1
|
||||
export GRPC_PYTHON_BUILD_SYSTEM_CARES=1
|
||||
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
|
||||
# re2 needs to be built against the same abseil-cpp version
|
||||
#export GRPC_PYTHON_BUILD_SYSTEM_RE2=1
|
||||
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
|
||||
export GRPC_PYTHON_BUILD_WITH_CYTHON=1
|
||||
|
||||
# copied from setup.py, except for removed -std= that does not apply
|
||||
# to C code and causes warnings
|
||||
export GRPC_PYTHON_CFLAGS="-fvisibility=hidden -fno-wrapv -fno-exceptions"
|
||||
# required by abseil-cpp
|
||||
append-cxxflags -std=c++17
|
||||
# silence a lot of harmless noise from bad quality code
|
||||
append-cxxflags -Wno-attributes
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# Internet
|
||||
tests/unit/_dns_resolver_test.py::DNSResolverTest::test_connect_loopback
|
||||
# not a test
|
||||
tests/unit/_compression_test.py::test_compression
|
||||
tests_aio/unit/channel_argument_test.py::test_if_reuse_port_enabled
|
||||
# expects grpcio-admin
|
||||
tests/unit/test_all_modules_installed.py::TestAllModulesInstalled::test_import_all_modules
|
||||
# TODO
|
||||
tests_py3_only/unit/_simple_stubs_test.py::SimpleStubsTest::test_default_ssl
|
||||
)
|
||||
local EPYTEST_IGNORE=(
|
||||
# not a test
|
||||
tests/unit/test_common.py
|
||||
# requires oauth2client
|
||||
tests/unit/beta/_implementations_test.py
|
||||
)
|
||||
|
||||
cp -a "${BUILD_DIR}"/{install,test} || die
|
||||
local -x PATH=${BUILD_DIR}/test/usr/bin:${PATH}
|
||||
|
||||
# grpcio proper builds against system libs
|
||||
# grpcio_tools supports bundled libs only, and requires different
|
||||
# flags
|
||||
unset GRPC_PYTHON_CFLAGS
|
||||
cd "${WORKDIR}/grpcio_tools-${PV}" || die
|
||||
distutils_pep517_install "${BUILD_DIR}"/test
|
||||
|
||||
cd "${WORKDIR}/${MY_P}" || die
|
||||
local protodir=src/proto/grpc/testing
|
||||
local testdir=src/python/grpcio_tests
|
||||
"${EPYTHON}" -m grpc_tools.protoc -I. --python_out="${testdir}" \
|
||||
"${protodir}"/{empty,messages}.proto || die
|
||||
"${EPYTHON}" -m grpc_tools.protoc -I. --grpc_python_out="${testdir}" \
|
||||
"${protodir}"/test.proto || die
|
||||
|
||||
cd "${testdir}" || die
|
||||
"${EPYTHON}" -m grpc_tools.protoc -I. --python_out=. \
|
||||
tests/testing/proto/{requests,services}.proto || die
|
||||
"${EPYTHON}" -m grpc_tools.protoc -I. --grpc_python_out=. \
|
||||
tests/testing/proto/services.proto || die
|
||||
|
||||
# TODO: aio tests are failing randomly, so we're skipping them entirely
|
||||
epytest tests{_py3_only,}/unit
|
||||
}
|
||||
Reference in New Issue
Block a user