1 |
commit: 54b84bc0469686773a0e711e0a9bcf4bcb0e63b2 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 1 04:43:27 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 1 04:55:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54b84bc0 |
7 |
|
8 |
dev-python/google-api-core: Bump to 2.0.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/google-api-core/Manifest | 1 + |
13 |
.../google-api-core/google-api-core-2.0.1.ebuild | 48 ++++++++++++++++++++++ |
14 |
2 files changed, 49 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/google-api-core/Manifest b/dev-python/google-api-core/Manifest |
17 |
index e107f8463a7..5611908b9f8 100644 |
18 |
--- a/dev-python/google-api-core/Manifest |
19 |
+++ b/dev-python/google-api-core/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST google-api-core-1.31.2.tar.gz 135491 BLAKE2B d2567f628ac888b8f708b5e62c7a34cdad592e98689b3208041e48f08345da5df7da295d261af73c8e89041c91297a90af243b24c250095493af07c6d892459f SHA512 e819bbaadf1aedf78cb397c9a5a9677fbc625285a4f3d14620e5af0ec125f97eaabe18e34a669daee3bd51520de0818a4e2f451f83502ad78adf77e4c739fa67 |
22 |
DIST google-api-core-2.0.0.tar.gz 134125 BLAKE2B 814d20f4b9d02c389768e184d8be4614cabe0efbf227c98574dacf0fb3bde6cae71c40d2a17a1353f5dd02aad4f19e49b7338038cf22a2e0ec4be450b2f70af9 SHA512 588dcdeb80c4cd53ebc9d1a76efc03bc3bff22aa850d48385edc0bc6a0d343b406d26e64d22c0befc06f6406bb6c8efcf07947c6e48c49e6f077b72b8414403f |
23 |
+DIST google-api-core-2.0.1.tar.gz 134658 BLAKE2B 0fda61be3b069454b305656f7a5a9243467f4e129e2db661e997fde850d416a50df803af6e7e9d041b8473e5f1abd35f6d5a9b25067133be28bed90ec1cca7e4 SHA512 297af05cba4919423e15844ccddb821fd65076f787bd01f24022d8393fbf45cf276611ab471be17950d7fad4e58f9b823517a8aeeec931df5b1bb37c38fe8ec9 |
24 |
|
25 |
diff --git a/dev-python/google-api-core/google-api-core-2.0.1.ebuild b/dev-python/google-api-core/google-api-core-2.0.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..6e1d986b70c |
28 |
--- /dev/null |
29 |
+++ b/dev-python/google-api-core/google-api-core-2.0.1.ebuild |
30 |
@@ -0,0 +1,48 @@ |
31 |
+# Copyright 2020-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..9} ) |
37 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Core Library for Google Client Libraries" |
41 |
+HOMEPAGE="https://github.com/googleapis/python-api-core/ |
42 |
+ https://googleapis.dev/python/google-api-core/latest/index.html" |
43 |
+SRC_URI="https://github.com/googleapis/${PN//google/python}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+S="${WORKDIR}/${P//google/python}" |
45 |
+ |
46 |
+LICENSE="Apache-2.0" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-python/namespace-google[${PYTHON_USEDEP}] |
52 |
+ dev-python/protobuf-python[${PYTHON_USEDEP}] |
53 |
+ dev-python/googleapis-common-protos[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/google-auth-1.25.0[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/requests-2.18.0[${PYTHON_USEDEP}] |
56 |
+ <dev-python/requests-3[${PYTHON_USEDEP}] |
57 |
+" |
58 |
+BDEPEND=" |
59 |
+ test? ( |
60 |
+ >=dev-python/grpcio-1.33.2[${PYTHON_USEDEP}] |
61 |
+ dev-python/mock[${PYTHON_USEDEP}] |
62 |
+ dev-python/rsa[${PYTHON_USEDEP}] |
63 |
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
64 |
+ ) |
65 |
+" |
66 |
+ |
67 |
+distutils_enable_tests --install pytest |
68 |
+ |
69 |
+EPYTEST_DESELECT=( |
70 |
+ # TODO: package proto-plus |
71 |
+ tests/unit/test_protobuf_helpers.py::test_field_mask_ignore_trailing_underscore |
72 |
+ tests/unit/test_protobuf_helpers.py::test_field_mask_ignore_trailing_underscore_with_nesting |
73 |
+) |
74 |
+ |
75 |
+python_install_all() { |
76 |
+ distutils-r1_python_install_all |
77 |
+ find "${D}" -name '*.pth' -delete || die |
78 |
+} |