mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 02:39:08 -07:00
dev-python/grpcio: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,18 +1,12 @@
|
||||
DIST grpc-1.80.0.gh.tar.gz 15772645 BLAKE2B 48f3acc5c3268f651dc865ce3095c306ad3fa0a4eacf6e6eea499d961c0e001e2ab43fe8f0d53713d19998f28ce0184045ad2a8ef4cdc41aee31e2fe70e2b53e SHA512 5ef6ec2277dcb2257f8ac7546057e9a3da6668676a3a4ff64e08e66abb465b5705103c4aa0b41955535ee437d4feef5b811aa3e31636c4cb76bf68c52caaccf7
|
||||
DIST grpc-1.81.0.gh.tar.gz 15840050 BLAKE2B 01defbe7386b8f7752b4abe9b3081fc09801a0d4cbccc083ac45dea63b3d32a6c4c7b87b57de9a33f7d82d3bc7ee173e0e291742a8b09aaf3a70bfef033c2473 SHA512 38966090a498392b727ea7d8149b59fbcb2fe630a8cada1a78d57e54359d125ca9b5e6d528efcdff05392f01c8418f25798fe823c900d480a3b768943c17a621
|
||||
DIST grpc-1.81.1.gh.tar.gz 15840192 BLAKE2B 900ca16869e1295428054c2bb4c4363ec855878faef2705cdd81249d46596958c25983dbbd87358d942caae6d5910a781d45da71f8e2a4b714affba02aba0dd5 SHA512 2fcc219bf91de49607ed1f74243c2d43c0fb0def4944e48fbd4b382033d648f0e0b8551426993d04db49b9cae8d8b9efe20a817f6985ed3c72f086bf8ea2e26e
|
||||
DIST grpc-1.82.0.gh.tar.gz 16053357 BLAKE2B 334e965c30b9d055c6a16020624cdc68e1d503c23c5c6ddec784478c19e8b6e4c5eaa6c77df3008fd93c79d37f90bdba3b4db5b2f1f17b90f9276a2e62a07165 SHA512 8fe04eab34a2dbf1be198366f9d82d99b2fdb46bec78385e97041d0fa03dc635374b8600eb522b0b022ebe9f32263a9d4d202849581b896555395561c2735fdc
|
||||
DIST grpc-1.82.1.gh.tar.gz 16053195 BLAKE2B ae8495a950eab7b6d0b202deda766532de36c5ba37130d58d4790d5eabb65e3dff2615b33ec473df8c7056fb252ee98689b93064d1734ad7c1f3375cd3ad2801 SHA512 f776f2c329247292cad3649e0bdee75ba37360eb2ee13b1f8750b2a3a2cfd63a0a51295dc71cc9ca0d9477a4a882c4ecaf3ee6f23322926c126146bace0c94a6
|
||||
DIST grpc-1.83.0.gh.tar.gz 16249899 BLAKE2B 6eb5aad73d603fe55ae7e88315a193346c4ae63f28b0800c48a5f9f915caaaf5b05aca4d26fe4be97ec6dd1006e4a85d0b27fa414df4a823358ba33f9a5fd2b2 SHA512 6bc1fa040a5087522f8b8292e00d289105e1343883290432e8327f9bca23248b31c95ef8d6954cad1fc9be7a4c1042cbfedc458da2e11de251e980a44ec753a4
|
||||
DIST grpcio-1.80.0.tar.gz 12978905 BLAKE2B 2583bbdfcb05aaced115b4a4ab7d26b95efbe35bf7c2bd7989d9791d50553e05ba3e6323ce8b52c78459b34b5daeb1566ffd1e2b17c14208a13e4a06f0a2a6d5 SHA512 04ef676d6847f3d2820998c07d9f80585c105dc43e3f754b517566e86a92af94328ecdecba0b772e0abe2a53eb49102a12db93099b50d5bee576ac69cb928db5
|
||||
DIST grpcio-1.81.0.tar.gz 13032272 BLAKE2B 55ecfd288602cbdc44b11b9ac4afb90b79d8feae773bfd5bb7df1057e4af9b5657d6151b71f8e73e028c92e07f7e105859b8814e781ca3afdf05e4b7eca699b3 SHA512 f57e7c370455028b91574804c511181919c6de23e4213ef35d798c310734f41ab30eabbef00b183cbc2085e22b05b9616109eff8c49443c03932a5b6f8339502
|
||||
DIST grpcio-1.81.1.tar.gz 13026582 BLAKE2B 8aa2754b7232a211c23852da22e7aa1c73ed630a2ccfceaf99ad80b23ed5845aeacdb87ec34d748357c6573b436bee38bed148c65d54cc438f3badeeb977435d SHA512 7b34b02a5ea487ef98fb6c1017ddc0127f292f54968d71c08ff5cbf9efa016c49a562f67165564d1a6ff219f24be1b2a6a525f12c251699893c8772d226baa41
|
||||
DIST grpcio-1.82.0.tar.gz 13184479 BLAKE2B 057a039b768a6a686ab67e8d4d6c49de54b2bd329ddd7c785cdf1718ebeb815eb63e4ae622927fd55224077fadf1bcbbf4ab69d9a189f5f1c85721c56b53e4ec SHA512 a9dd795501e0f49db3db79fc00341d0c0b974b0150dad376ec6e162c2c8f022fa8fb94a11bdbbd4a0e6123b15480afe09d403312952f8f2b47026946c5e1b8b6
|
||||
DIST grpcio-1.82.1.tar.gz 13187300 BLAKE2B 3e53868afd2e06460b613a40c3913c92feb154e145b8bd42e6cf6c9d098047e9895151e37dca0a999f58f618ae7b149aaa6ec3d28ea426569061d867753817fc SHA512 ebd36dc0028a1e40ce27f2ffcf2ba7a280c84a4e8d854b8c44753b52e2cdcf24b7d9188acf5456bc090ea7d68afc158d0b694cf12f1f550722c1f2a8eb18e560
|
||||
DIST grpcio-1.83.0.tar.gz 13428824 BLAKE2B 0ddce59208ec61621e85c07cab32da67381e09ef22e47c2cc3dfac355fe2a4acd52b5fce80e1eb46e75263041aba50ebbb0839dae91124ea273847f472e3a308 SHA512 b9fbe71ea6c745473884400839b535fd305bff1f8e0ab35d9a8f1fbab5f5e30a6d2be1931a0fd48763493c8869049813814af81e5c99209a913541a3179df8d8
|
||||
DIST grpcio_tools-1.80.0.tar.gz 6133212 BLAKE2B 9bf051314482ff946aa6edd4f8b517dec63c1188914d76a2b4d130b68408ee5ec3ec3b5a2075b7ec2257e92ee9dbad37c18c425a2b947b81640f67cadd284df6 SHA512 7d9e17cee024af6731a8b75da6de0c26b554f2c50d75acfefc7708545935af4ab8f60fe0e16550c4c2943eb6c3414c49c38dc1a71df948c87c6c743ee72fff68
|
||||
DIST grpcio_tools-1.81.0.tar.gz 6235718 BLAKE2B 08cd6c49329349fbfa9e26efe4b3894095801319e41bafda9907f98ae823bf5f4de17db6f02780c31aef9a781d2b0463c88825dae073e5d0617b346c1c39dbca SHA512 0925b13fa8b00483d124ef6c2b6e3ebe6e4116a11fe5c306d158edd9a2f5d4743257bcd2ae04c1f29dd1e562e44f1e76c0d1168a07e4fd2f87ae31066ab2555b
|
||||
DIST grpcio_tools-1.81.1.tar.gz 6236155 BLAKE2B e95db929827c7f465473e0640d2fd53df1d9e6f6ee80f1f3b49709e496f678d248c78c37e90b6f96cd2348fb903bd6e8047b3490353f1c436fe0e0781a26069c SHA512 ca68845b4beef98cd83d4dbdb9d12449ee9289dcf81ca4723617a35a1c576bc937fbbcac12ab0e304d2b7f49993a8a8fbcb00b7021ea141a71196c2a93fb8cdf
|
||||
DIST grpcio_tools-1.82.0.tar.gz 6399122 BLAKE2B a5a8cf5a3e78bbe25718f4b679462f3851124ac7c69e8b635999fec19e904e2f03b7d1ae9c9b177087c1f25eab24abdad26c285d53470a7c9cca4b220b514ccb SHA512 6a3acadbb12b27b4bc9a22cdf2bd1accf36fd96eda862e8c4d2b7915be409d77d770dcd36a7bf0a7ea279f2b56a917923d45988425f361cbef2a90cc95246426
|
||||
DIST grpcio_tools-1.82.1.tar.gz 6399590 BLAKE2B 4a731b32ddfce566c2405c33736b7dbcf66ef5a63e49b45673996d3fd46d948286a777cea1114f8e3cb1b8583bdea737470dfe8dd406c9737d970bee285dfd67 SHA512 bfc8b9353530b5d8b3eef2fdbc4d442ec6219d0d393c272ef0ed1309041bead71472c920a0e735f5801fb40e094a6ec0176daf8bc9ad93bd8dbd22030806fee4
|
||||
DIST grpcio_tools-1.83.0.tar.gz 6400437 BLAKE2B 537209842337e749b0689d7e114395f8eeb6435d3bbcb4d8a857e487e58fc10b31b65fa313ea51f483f048125ea2a2351c88690020e6cc16e7782021c0377d51 SHA512 f18ba3130d1134eaced50f19dbc64edafffe4ad4a7edf66641316c980b0a4a1fe8c3bba21162303841e929a94de689ed1e2d015b2cef7534c9bb99a27e9f4365
|
||||
|
||||
@@ -1,137 +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_{12..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.33.5[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
# signal handling tests hang often
|
||||
EPYTEST_RERUNS=5
|
||||
: ${EPYTEST_TIMEOUT=15}
|
||||
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
|
||||
tests/unit/_cython/_channel_test.py::ChannelTest::test_multiple_channels_lonely_connectivity
|
||||
tests/unit/_cython/_channel_test.py::ChannelTest::test_single_channel_lonely_connectivity
|
||||
)
|
||||
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
|
||||
}
|
||||
@@ -1,137 +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_{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/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.33.5[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
# signal handling tests hang often
|
||||
EPYTEST_RERUNS=5
|
||||
: ${EPYTEST_TIMEOUT=15}
|
||||
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
|
||||
tests/unit/_cython/_channel_test.py::ChannelTest::test_multiple_channels_lonely_connectivity
|
||||
tests/unit/_cython/_channel_test.py::ChannelTest::test_single_channel_lonely_connectivity
|
||||
)
|
||||
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