1 |
commit: 0e075097b705edca89f8b5cd2d8231befd1ee941 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 8 05:00:29 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 8 05:37:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e075097 |
7 |
|
8 |
dev-python/google-api-core: Bump to 2.3.0 |
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.3.0.ebuild | 50 ++++++++++++++++++++++ |
14 |
2 files changed, 51 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/google-api-core/Manifest b/dev-python/google-api-core/Manifest |
17 |
index 6e8a8eb6083f..8fb2f11472a6 100644 |
18 |
--- a/dev-python/google-api-core/Manifest |
19 |
+++ b/dev-python/google-api-core/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST google-api-core-2.2.2.tar.gz 140701 BLAKE2B 4e90db4311fc88d3fc8e29d6d8f11ae1424000c0e293f219d679984ec4a2c1bbbaf72d734b937d6916302f3a9a8b1cb369dd719972f4eb2d3f7264bf16ffbc7f SHA512 9b307c8ebd224b7614bd1d9f48d752852929b726c04df24f81e0b1b601f9a14d10654e9ef53b6a5ab677e8e57256f87b8683fa4dde0585f9c2e6d313d29d53fe |
22 |
+DIST google-api-core-2.3.0.tar.gz 155449 BLAKE2B 4aba324a18c8b6f9b9afd223688771fc6a57ee71f550736cfb5c9fac861a6a84369eb4e6ebec0664241590624c52cd0bcc8762afeb230debc16f0849fde049bf SHA512 f85c9279822ab818aa9d183bc930e61be9cfb2e65ab6a46fcd8aaab2531b4258c6247b02fb8f4f29841d9ab13ca33e129198589cbc37b3c77677a72e72635285 |
23 |
|
24 |
diff --git a/dev-python/google-api-core/google-api-core-2.3.0.ebuild b/dev-python/google-api-core/google-api-core-2.3.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..f67642816e93 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/google-api-core/google-api-core-2.3.0.ebuild |
29 |
@@ -0,0 +1,50 @@ |
30 |
+# Copyright 2020-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..9} ) |
36 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Core Library for Google Client Libraries" |
40 |
+HOMEPAGE="https://github.com/googleapis/python-api-core/ |
41 |
+ https://googleapis.dev/python/google-api-core/latest/index.html" |
42 |
+SRC_URI="https://github.com/googleapis/${PN//google/python}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+S="${WORKDIR}/${P//google/python}" |
44 |
+ |
45 |
+LICENSE="Apache-2.0" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ dev-python/namespace-google[${PYTHON_USEDEP}] |
51 |
+ dev-python/protobuf-python[${PYTHON_USEDEP}] |
52 |
+ dev-python/googleapis-common-protos[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/google-auth-1.25.0[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/requests-2.18.0[${PYTHON_USEDEP}] |
55 |
+ <dev-python/requests-3[${PYTHON_USEDEP}] |
56 |
+" |
57 |
+# grpcio support is broken if grpcio-status is not installed, |
58 |
+# and we do not package the latter |
59 |
+BDEPEND=" |
60 |
+ test? ( |
61 |
+ !!dev-python/grpcio |
62 |
+ dev-python/mock[${PYTHON_USEDEP}] |
63 |
+ dev-python/rsa[${PYTHON_USEDEP}] |
64 |
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
65 |
+ ) |
66 |
+" |
67 |
+ |
68 |
+distutils_enable_tests --install pytest |
69 |
+ |
70 |
+EPYTEST_DESELECT=( |
71 |
+ # TODO: package proto-plus |
72 |
+ tests/unit/test_protobuf_helpers.py::test_field_mask_ignore_trailing_underscore |
73 |
+ tests/unit/test_protobuf_helpers.py::test_field_mask_ignore_trailing_underscore_with_nesting |
74 |
+) |
75 |
+ |
76 |
+python_install_all() { |
77 |
+ distutils-r1_python_install_all |
78 |
+ find "${D}" -name '*.pth' -delete || die |
79 |
+} |