dev-python/grpcio: add 1.67.1
Closes: #4319 Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
b4d85aee2e
commit
50864229c9
@ -606,12 +606,12 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
|
||||
|
||||
## Licenses
|
||||
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
|
||||
There are 2376 Ebuilds in total, 2362 of them have in total 2406 (43 different) licenses assigned.
|
||||
There are 2377 Ebuilds in total, 2363 of them have in total 2407 (43 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
|MIT|1354|
|
||||
|Apache-2.0|555|
|
||||
|Apache-2.0|556|
|
||||
|GPL-3|149|
|
||||
|BSD|127|
|
||||
|GPL-2|28|
|
||||
|
@ -1,8 +1,12 @@
|
||||
AUX 1.37.1-cc-flag-test-fix.patch 1053 BLAKE2B c2f6b0a506fc2d074e656db3081447b3a0521a2ed2bd14a19104b962e0ad45b0068116384403eaf199d2bb8027b4a260dfaa7ed274974ad0bb6ca56b9ad19e8b SHA512 72dc39d549a008d137db29aa446ab7fc0add575103e941a969bed0124ce3b285f27edc31ca06db71b2dd3232c77c280755de3d3ef257792ead0516122f0a9b3f
|
||||
AUX cython3-compat.patch 3033 BLAKE2B e167f7e07eb34c86913fca6a920551785fb2c40dc52634691c1c93a443f0ce248d32ca0a5f38b41960cf82c3097e57c89a8697cd0277063755a92a3bd1b9d512 SHA512 7c6502b5abffb262ce80c219ab4971d620ffe0742ad427cb902d5d5a3bbe9ee5818d13f59c16d1b5c57f97b1fed2b8fbccf156fb02534a4fd29eb84b29ae9671
|
||||
AUX setup.py-respect-cc.patch 1152 BLAKE2B bc939dd5f28039c8d2a7c5ac40eaff2437c0cff1ed7859b150cc5865fa59be3410338d4507f1f0cc4ed1e36f8ba338840aeac3de847b43dba1e4a3fd91b345dc SHA512 93ebcffb27c0c30e282d45094cf21f9852a46055122aac37d8f6bdab8ff42410ed234a0c9bb661c05057d41a7c3291bf868275ef57a5e7c8ef3ad1de4ea074e2
|
||||
DIST grpc-1.67.1.gh.tar.gz 17317252 BLAKE2B af529a392f9d5d1a492825a456197d4ec0c71b12defb315ef9095e5b6e6e62a649312ca6a32004f900e001cdb94a4ee6a9c841e8439c6679d299608eb29524d1 SHA512 4f9b63278590be282b5578ec6c5f607f11046fdac3e62b5bf9054f664971312efee621e1fd3a086eaf978d41f4cd83bab7f2947c9e6189dc30bcb69263f481dc
|
||||
DIST grpcio-1.59.0.tar.gz 24842974 BLAKE2B d883d9800f5b2025774c37a6c076500e113121b7e1254368d9c4b95c1170593969af4568492744527f909f828121630dd870210d2e2de718ba907be09f9b826b SHA512 1b345c2b87593934aa15e8019d858c6f7000d3e66ffd20ae538028aa109d8553ccff819ad8796b19c51d647851139d13b9158c9f2639b0b9506347ceff646637
|
||||
DIST grpcio-1.66.2.tar.gz 12489713 BLAKE2B 054ecefa82cd75a79fbcc371b66cd0688d2b4d977ebe48942f54549b407b71b11c76548d43de6b51f874795a11788ca1de0019dc10b34a77de5295c5ef9234f2 SHA512 910ddd9efaebb99112ef1e1e62befe35347948c953bd9d70fe23fe9e8c0c565a9127d827f4ad5e991f279a6b7cd5832a8fbcc26577b2a93f76e77e6b189af5d6
|
||||
DIST grpcio-1.67.1.tar.gz 12580022 BLAKE2B 304489a252d3e81db7c9846e10d8716e224bf5af3a8922fbbc268abf4a03784a2ffadd306ff04de7a2c892fa345dae120f32704df223a2251877a85cf3b3406b SHA512 a4a9051cd22da624f5624c5a39d7c833593d8733bd2401cb02d29b8baf21bacb73a85508f87ab0b8cb7e0af07f034b794b77a25b43069b526150b8ee26d96ca3
|
||||
DIST grpcio_tools-1.67.1.tar.gz 5159073 BLAKE2B bc867fa624f1088c5780d27884518a82cb7103279202d18df111191afa57b41a20742df283a6d24d75457834cd792deb86c57910d298c86ffb8a892fc10922d9 SHA512 94b7435b504245b5d284db5e7fe34134794bc2ade435615c60de586af36a4fcf71652db54e0c7df7e1cd37f763b7fcd10a8a7efef88227aa0d52d46bcc9ed0ad
|
||||
EBUILD grpcio-1.59.0.ebuild 1291 BLAKE2B a08cc067c83285bc6d5eff6a51e997ea5e12702f086483fd96b0a71afb85c13ee35983a156837422dba27ecedfb298284e4c3e6c9f7c18932571c4f552d31bd1 SHA512 fc1d2259603aca7abe5c486beffb06acfed17fe196422b3f6d373db2974d0a85ba9bbf695409f1112a78bf200357160e81af786f7a1f16607391316ff9dc6c1d
|
||||
EBUILD grpcio-1.66.2.ebuild 1243 BLAKE2B f601d3262a4c83e462ff8bf23135bceedf588f8a53135e8777225e18ec1ea5cd3c70fb67a849d3cb9b7aa732ab1b94a6da61c1310b0218a372a90984897c2719 SHA512 9637f9975267caa9162cc1d79fe4f3fcc749ad3aa926777451f028859fa2e56b8010db2e3409b7d513a14308b6ce5a1099e6838a2c216e9d9824c7dfa24977e8
|
||||
MISC metadata.xml 459 BLAKE2B 2e6951c9a3d03ad5f1adf5585f18d918eff98b9a7bf93732bb8696fcd4a289a3f95b018f0686a65e454e1ceca763e47052d7b12204ab352b36137c394b43d8dc SHA512 2cb333c14fca4563ef4461d42f1f3d42343907efb8bf2893722bf7355e0828c101a7391f242f2df0160355c7cd890497643308dbd2275d3069d98f8b15653bf2
|
||||
EBUILD grpcio-1.67.1.ebuild 3276 BLAKE2B 923a3a1055a29ebcb377df06f152ce343af3359fd62674ba02a32ac0c81963c13bdc5fcd750f99e0fc115fcbfaa2863f9b2fcabc5b80ea1d7751e22d26066097 SHA512 8b4dc85f920f7f04591b82e6ad013e9bf638e59cdd43c1dc96c30b4bdbe24e5bf5eb78c24b236e88f7724ba4d11135aae44ddeefc94954636755cbe8bca89ade
|
||||
MISC metadata.xml 510 BLAKE2B b7216d42d23565b14ee399bb2278b265ae98d7eec18f5d31bf0a0192dfd5f5fb93942b059c7ec6656369b70fb935b2dd76c4bbd95b9013dd7bf7951c6ddf0928 SHA512 6cebe329398df53b40ec91f51b06b9ecb9898d19c07430c4a0c3170b2acf512ce35e1d7541a73462fe1d9cce9ae3bc6229351d6ad8646fa01f804edc9adad75d
|
||||
|
115
dev-python/grpcio/grpcio-1.67.1.ebuild
Normal file
115
dev-python/grpcio/grpcio-1.67.1.ebuild
Normal file
@ -0,0 +1,115 @@
|
||||
# Copyright 1999-2024 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..13} )
|
||||
|
||||
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 arm arm64 x86"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/openssl:=
|
||||
net-dns/c-ares:=
|
||||
sys-libs/zlib:=
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
||||
# TODO: try to remove coverage dep
|
||||
BDEPEND="
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
>=dev-python/protobuf-python-5.26.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_configure() {
|
||||
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++14
|
||||
# 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_aio/unit/channel_argument_test.py::test_if_reuse_port_enabled
|
||||
)
|
||||
local EPYTEST_IGNORE=(
|
||||
# not a test
|
||||
tests/unit/test_common.py
|
||||
# requires oauth2client
|
||||
tests/unit/beta/_implementations_test.py
|
||||
)
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
|
||||
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
|
||||
}
|
@ -7,6 +7,7 @@
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">grpcio</remote-id>
|
||||
<remote-id type="github">grpc/grpc</remote-id>
|
||||
<maintainer status="unknown">
|
||||
<email>grpc-io@googlegroups.com</email>
|
||||
<name>The gRPC Authors</name>
|
||||
|
Loading…
x
Reference in New Issue
Block a user