Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/google-api-python-client/
Date: Thu, 01 Apr 2021 07:43:11
Message-Id: 1617261669.9aa7f799ed04129dbf1b5e319438226b2915f2e8.mgorny@gentoo
1 commit: 9aa7f799ed04129dbf1b5e319438226b2915f2e8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 1 07:21:09 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 1 07:21:09 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9aa7f799
7
8 dev-python/google-api-python-client: Bump to 2.1.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/google-api-python-client/Manifest | 1 +
13 .../google-api-python-client-2.1.0.ebuild | 46 ++++++++++++++++++++++
14 2 files changed, 47 insertions(+)
15
16 diff --git a/dev-python/google-api-python-client/Manifest b/dev-python/google-api-python-client/Manifest
17 index 0dd0258806b..05b7dadac83 100644
18 --- a/dev-python/google-api-python-client/Manifest
19 +++ b/dev-python/google-api-python-client/Manifest
20 @@ -1,3 +1,4 @@
21 DIST google-api-python-client-1.8.3.tar.gz 13537177 BLAKE2B 00b1d46f349a8ad66d08a01da31aed224260ad38f0ee2d7a5b68afe29264234475d28b33cd95addf9f7020fa052e9528b01a4c9cdb73e2ca5742134c4f8f86b5 SHA512 7b9138b27bf032cc1b8beb321459ba5935ed31e4965fa783e472b9483cfd0e97c1da6a34e84fb8c939c462fac462d3f0d853266586ab37be8f890a6b873cf4e6
22 DIST google-api-python-client-2.0.0.tar.gz 23121166 BLAKE2B 427160b34982438ef7b2ded441623daf49285c5734313f49cc47d1bef5a86a80613ae357a0307b84c145219c44d301b5fb5243bda9f4005c56aa2de97efe112c SHA512 1172e50349d2062e1c79d864c0b9602a1a51823c4453f68f1d6d8644fca330ef7767168cdd45623452271930c0234ff07a94fa694509095bffd8724be3961c2b
23 DIST google-api-python-client-2.0.2.tar.gz 23122914 BLAKE2B 0df0b44b2e86088069c5abc1916e733340ccfdb5be7629a2b5f1fcc8e5597183213d2ec149ef64a879bd50710ac804839b7d3be3d912ff6f132473dc6b4050f1 SHA512 9224a1f925ddeedfa0237372b4c5d1dbab913e07a8885398b955ff188decea68ebcde36fdc06394674e31d8ff4dee02aba0e13ebf8f599b1fc19854c21f9ce85
24 +DIST google-api-python-client-2.1.0.tar.gz 23921001 BLAKE2B 8594d79a0eb71587c2d0d55c3d9bc1414f5ec057594324638947fb408182a58f04a8672bbbfeda95a262ff2888d93e3e103730f592caf4d884d392f8ed894824 SHA512 c76075920a3e56f3d64ada1973ade61bb3806afd63e5bd184074b4a3a16e143aa5662543127e98451a942c6b47e8f9f28002ef52b548fc8702ef703c0da33cf4
25
26 diff --git a/dev-python/google-api-python-client/google-api-python-client-2.1.0.ebuild b/dev-python/google-api-python-client/google-api-python-client-2.1.0.ebuild
27 new file mode 100644
28 index 00000000000..6ac513eb6f8
29 --- /dev/null
30 +++ b/dev-python/google-api-python-client/google-api-python-client-2.1.0.ebuild
31 @@ -0,0 +1,46 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{7..9} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Google API Client for Python"
42 +HOMEPAGE="https://github.com/googleapis/google-api-python-client"
43 +SRC_URI="https://github.com/googleapis/google-api-python-client/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
48 +
49 +RDEPEND="
50 + >=dev-python/httplib2-0.15[${PYTHON_USEDEP}]
51 + <dev-python/httplib2-1[${PYTHON_USEDEP}]
52 + dev-python/google-api-core[${PYTHON_USEDEP}]
53 + >=dev-python/google-auth-1.16.0[${PYTHON_USEDEP}]
54 + >=dev-python/google-auth-httplib2-0.1.0[${PYTHON_USEDEP}]
55 + >=dev-python/uritemplate-3.0.0[${PYTHON_USEDEP}]
56 + <dev-python/uritemplate-4[${PYTHON_USEDEP}]
57 + >=dev-python/six-1.13.0[${PYTHON_USEDEP}]
58 + <dev-python/six-2[${PYTHON_USEDEP}]
59 + "
60 +BDEPEND="
61 + test? (
62 + dev-python/unittest2[${PYTHON_USEDEP}]
63 + )"
64 +
65 +distutils_enable_tests --install pytest
66 +
67 +python_test() {
68 + local deselect=(
69 + # require Internet access (and credentials)
70 + tests/test_discovery.py::DiscoveryErrors::test_credentials_and_credentials_file_mutually_exclusive
71 + tests/test_discovery.py::DiscoveryFromDocument::test_api_endpoint_override_from_client_options_mapping_object
72 + )
73 +
74 + distutils_install_for_testing
75 + pytest -vv ${deselect[@]/#/--deselect } ||
76 + die "Tests failed with ${EPYTHON}"
77 +}