Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/google-api-core/
Date: Fri, 02 Sep 2022 15:18:07
Message-Id: 1662131826.84bfd5927917224e2bb66adbf30251595414d522.arthurzam@gentoo
1 commit: 84bfd5927917224e2bb66adbf30251595414d522
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 2 14:32:04 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 2 15:17:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84bfd592
7
8 dev-python/google-api-core: add 2.10.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/google-api-core/Manifest | 1 +
13 .../google-api-core/google-api-core-2.10.0.ebuild | 73 ++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/dev-python/google-api-core/Manifest b/dev-python/google-api-core/Manifest
17 index 83558fb10463..73aebe3ecdfd 100644
18 --- a/dev-python/google-api-core/Manifest
19 +++ b/dev-python/google-api-core/Manifest
20 @@ -1 +1,2 @@
21 +DIST python-api-core-2.10.0.gh.tar.gz 180767 BLAKE2B 1f8d86fbd39c6bed927b2354c7e734ef2de563e2583bc4d9bff8121ae45b5538c67472a723e6c6990d1c5aa165ea83e3c1184fae2fd79ce2ea985aa89e057c7a SHA512 e4719eee37e04719d6ce7d0fe99e106ffdc8fba08f73d02f94b597f7c6fa4e57a0e28876b1c5baa2a9ce77220422f17d234b0d802d63238217a902fab65d546c
22 DIST python-api-core-2.8.2.gh.tar.gz 164586 BLAKE2B bd62b20d1be52f0a2227d1663ee37ce31d991e0773ed793a3999b70c74e03a28ac188cc331027def0055a5b80e93378d9ec5baa389c65e7d2f183b37233be5ac SHA512 5844339cee71103650c446f002dcb13a632086d96dec1ed04a0ad5e4d3a61cc2a8e048da3e6445a50a0c009b0d25729f02865d28484bfee2a3427c829537e350
23
24 diff --git a/dev-python/google-api-core/google-api-core-2.10.0.ebuild b/dev-python/google-api-core/google-api-core-2.10.0.ebuild
25 new file mode 100644
26 index 000000000000..1f782b73aa45
27 --- /dev/null
28 +++ b/dev-python/google-api-core/google-api-core-2.10.0.ebuild
29 @@ -0,0 +1,73 @@
30 +# Copyright 2020-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +
38 +inherit distutils-r1
39 +
40 +MY_P=python-api-core-${PV}
41 +DESCRIPTION="Core Library for Google Client Libraries"
42 +HOMEPAGE="
43 + https://github.com/googleapis/python-api-core/
44 + https://pypi.org/project/google-api-core/
45 + https://googleapis.dev/python/google-api-core/latest/index.html
46 +"
47 +SRC_URI="
48 + https://github.com/googleapis/python-api-core/archive/v${PV}.tar.gz
49 + -> ${MY_P}.gh.tar.gz
50 +"
51 +S=${WORKDIR}/${MY_P}
52 +
53 +LICENSE="Apache-2.0"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
56 +
57 +RDEPEND="
58 + >=dev-python/googleapis-common-protos-1.56.2[${PYTHON_USEDEP}]
59 + >=dev-python/google-auth-1.25.0[${PYTHON_USEDEP}]
60 + >=dev-python/protobuf-python-3.20.1[${PYTHON_USEDEP}]
61 + >=dev-python/requests-2.18.0[${PYTHON_USEDEP}]
62 + <dev-python/requests-3[${PYTHON_USEDEP}]
63 + !dev-python/namespace-google
64 +"
65 +BDEPEND="
66 + test? (
67 + dev-python/mock[${PYTHON_USEDEP}]
68 + dev-python/proto-plus[${PYTHON_USEDEP}]
69 + dev-python/rsa[${PYTHON_USEDEP}]
70 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
71 + )
72 +"
73 +
74 +distutils_enable_tests pytest
75 +
76 +EPYTEST_DESELECT=(
77 + # failing due to missing grpcio-status
78 + tests/asyncio/test_grpc_helpers_async.py::test_wrap_unary_errors
79 + tests/asyncio/test_grpc_helpers_async.py::test_wrap_stream_errors_raised
80 + tests/asyncio/test_grpc_helpers_async.py::test_wrap_stream_errors_read
81 + tests/asyncio/test_grpc_helpers_async.py::test_wrap_stream_errors_aiter
82 + tests/asyncio/test_grpc_helpers_async.py::test_wrap_stream_errors_write
83 + tests/unit/test_grpc_helpers.py::test_wrap_unary_errors
84 + tests/unit/test_grpc_helpers.py::test_wrap_stream_errors_invocation
85 + tests/unit/test_grpc_helpers.py::test_wrap_stream_errors_iterator_initialization
86 + tests/unit/test_grpc_helpers.py::test_wrap_stream_errors_during_iteration
87 +)
88 +
89 +python_compile() {
90 + distutils-r1_python_compile
91 + find "${BUILD_DIR}" -name '*.pth' -delete || die
92 +}
93 +
94 +src_test() {
95 + rm -r google || die
96 + distutils-r1_src_test
97 +}
98 +
99 +python_test() {
100 + distutils_write_namespace google
101 + epytest -p no:aiohttp -p no:trio tests
102 +}