mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
dev-python/grpcio: Bump to 1.85.3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
DIST grpc-1.83.1.gh.tar.gz 16254795 BLAKE2B 2a8382cc0504c60272b84e699c8aaf5c7256d296357d914e6d3d63387f032be468e096f8147ffac5bfb018be375d0b24b6b135605346c2612e1ccceb0a54615d SHA512 2afa0e389beabfa6f16e845338b456a8b397ef66ca533c9ecac4461d9fa568b4f5a28bb64401d3d91122c26d65e66ce887f2680af0b5fb6069cdc8d01ac21032
|
||||
DIST grpc-1.85.1.gh.tar.gz 16352179 BLAKE2B 0e17d287525b9c3002934872a5f03fb8a004e0dfa77db8cc27f3175b85c41bd88d50625a6a2bdc1ab6f88467ef82025202ebd520188c92c69d13e72463fa13b1 SHA512 92d603edf330fc8c421d8f6feaca3dafdb71bb70775ce45292bb62368d433d45012a89a854e681376a6cf1c46e036b857b0be157af989dc09260a7715e84c0b3
|
||||
DIST grpc-1.85.3.gh.tar.gz 16352629 BLAKE2B 446d9a231ee5b46aeaf0506f882fb7205d5b3c13e402c3b3b6bf017e30df917d1a3665fedae7f866c43064f31fb9716baf693388b24170df3a3160ca2310461d SHA512 d6f2156e92cbd1b34c5b952d2fa3e0d454069a1d593fa0945e0eda4142af60ea1bebb2869198449b78d41043fbbad16e2cddab96e44a17bef8614fcdf6b817a2
|
||||
DIST grpcio-1.83.1.tar.gz 13445033 BLAKE2B 6d40c7fe05a85698925de774945595854838b161267c20213388306660bba9105fbc5f7f3d0941f5db7f0188d2be7b10f926ac5f5448c99eec9a7dd51f817a28 SHA512 b01a71938a4a1df648054e53c67a6fd070da2da1e09bb10c39519ed3f75735a4d05fd4446539235627395869b911286e671993f31e58a68072c5094af0a28e22
|
||||
DIST grpcio-1.85.1.tar.gz 14091456 BLAKE2B 5db784f91780b7534f93c2df376db798bfdeb130b41e19a89e70d3e49ff79dc1a902b423ab2c84f52ed28d79ac4eaa8c28d4a8b7cfc4ea2231003f80884b2e72 SHA512 6c699e66fac0a05a9ac07a09bfec210bd6e43215204409ebad59e047c5e2c1140a1538a3b20f5afea927f23dbfc94e05bf0aa5b15ad5a7c7c6514d91455b8c62
|
||||
DIST grpcio-1.85.3.tar.gz 14103282 BLAKE2B c9c5466c6651a84b7a903a251fca834011f86cc8a297953b5de014603135f0acb1d6576a5f754109183ba0886364c233a0d1b8accdcc99f243863e874291dbef SHA512 777c6ca9fc2cc7ab88dd2b9ed8fac7204069fe4e71cf372b21e0247b425cba93321e90149726923e701eb06b6327ac0c1e4cc5dc6d0c963ffd4fe083bb3d20de
|
||||
DIST grpcio_tools-1.83.1.tar.gz 6399877 BLAKE2B 66b3f52f76ca0d342d74b7e61d2bfecfea1127a938742d824c67e695601349dc6d0625c8ea141960d3e88702e2b9a260d12c079beec0c114427ff50e89df66fc SHA512 828d6f5e382eb28eb7366e479a51e17fe7e7baeef08aae33f02b3f0b54604afdb54910632670f09ba26bd568d1c45fdd7f49a8b2bad46f73d55279d612b287df
|
||||
DIST grpcio_tools-1.85.1.tar.gz 6578578 BLAKE2B 61cc5702a9c498da06e5e0d397acc6c56797ceef0cbd405b8cc27c94baf919ee48fd1209c5225594f2a91d04d12b674c9288e5f894a7a2ae9fe6126cf788c1d1 SHA512 bd552d621631ffa6d74f920dc52217f68937aec9ce9c98b2193bb03fa1270a72b79f0147b1310eeb211597fb4db4de7d11bb1aba90faddce4bda9ddbcd38b1d9
|
||||
DIST grpcio_tools-1.85.3.tar.gz 6579265 BLAKE2B 54898db60bb69e63659d348eee72147b96fc57e8df1580d1deb0aafccb85503aac9de6342531dae7684fe250bd859ded066dd4a4602f2c6b9e2418f8e14ce15a SHA512 a508426a5d8019bf7237511a33e8f8924b991a38a54dffc8eb28fb2f9ebc0ad30d83acd6341f21557599d63e2339bc5ec88bb1ef2eab0e59e29aae6f2034a559
|
||||
|
||||
@@ -0,0 +1,146 @@
|
||||
# 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_{12..15} )
|
||||
|
||||
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/certifi[${PYTHON_USEDEP}]
|
||||
>=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-7.35.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
# signal handling tests hang often
|
||||
EPYTEST_RERUNS=5
|
||||
: ${EPYTEST_TIMEOUT=15}
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES=(
|
||||
# use system certs via certifi
|
||||
"${FILESDIR}/${PN}-1.85.1-system-certs.patch"
|
||||
)
|
||||
|
||||
distutils-r1_src_prepare
|
||||
|
||||
sed -i -e '/INSTALL_REQUIRES/s:~=:>=:' setup.py || die
|
||||
# remove bundled certs
|
||||
find -name "roots.pem" -delete || 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
|
||||
tests/unit/_cython/_channel_test.py::ChannelTest::test_multiple_channels_lonely_connectivity
|
||||
tests/unit/_cython/_channel_test.py::ChannelTest::test_single_channel_lonely_connectivity
|
||||
tests/unit/_auth_context_test.py::AuthContextTest::testSecureNoCert
|
||||
)
|
||||
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