diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-03-04 00:28:47 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-03-04 00:28:47 +0100 |
commit | e32418c0ab7d83a6153da6f171afb27dc1b8c21f (patch) | |
tree | 890018e4ccc528365e81705f6d5ea2986d90043d /dev-python/google-api-python-client | |
parent | dev-python/bsddb3: Remove old (diff) | |
download | gentoo-e32418c0ab7d83a6153da6f171afb27dc1b8c21f.tar.gz gentoo-e32418c0ab7d83a6153da6f171afb27dc1b8c21f.tar.bz2 gentoo-e32418c0ab7d83a6153da6f171afb27dc1b8c21f.zip |
dev-python/google-api-python-client: Bump to 2.0.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/google-api-python-client')
-rw-r--r-- | dev-python/google-api-python-client/Manifest | 1 | ||||
-rw-r--r-- | dev-python/google-api-python-client/google-api-python-client-2.0.0.ebuild | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-python/google-api-python-client/Manifest b/dev-python/google-api-python-client/Manifest index 4d8ff3a1ab97..20ec9ec562f4 100644 --- a/dev-python/google-api-python-client/Manifest +++ b/dev-python/google-api-python-client/Manifest @@ -1 +1,2 @@ DIST google-api-python-client-1.8.3.tar.gz 13537177 BLAKE2B 00b1d46f349a8ad66d08a01da31aed224260ad38f0ee2d7a5b68afe29264234475d28b33cd95addf9f7020fa052e9528b01a4c9cdb73e2ca5742134c4f8f86b5 SHA512 7b9138b27bf032cc1b8beb321459ba5935ed31e4965fa783e472b9483cfd0e97c1da6a34e84fb8c939c462fac462d3f0d853266586ab37be8f890a6b873cf4e6 +DIST google-api-python-client-2.0.0.tar.gz 23121166 BLAKE2B 427160b34982438ef7b2ded441623daf49285c5734313f49cc47d1bef5a86a80613ae357a0307b84c145219c44d301b5fb5243bda9f4005c56aa2de97efe112c SHA512 1172e50349d2062e1c79d864c0b9602a1a51823c4453f68f1d6d8644fca330ef7767168cdd45623452271930c0234ff07a94fa694509095bffd8724be3961c2b diff --git a/dev-python/google-api-python-client/google-api-python-client-2.0.0.ebuild b/dev-python/google-api-python-client/google-api-python-client-2.0.0.ebuild new file mode 100644 index 000000000000..f2bb3877647b --- /dev/null +++ b/dev-python/google-api-python-client/google-api-python-client-2.0.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +inherit distutils-r1 + +DESCRIPTION="Google API Client for Python" +HOMEPAGE="https://github.com/googleapis/google-api-python-client" +SRC_URI="https://github.com/googleapis/google-api-python-client/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND=" + >=dev-python/httplib2-0.15[${PYTHON_USEDEP}] + <dev-python/httplib2-1[${PYTHON_USEDEP}] + dev-python/google-api-core[${PYTHON_USEDEP}] + >=dev-python/google-auth-1.16.0[${PYTHON_USEDEP}] + >=dev-python/google-auth-httplib2-0.0.3[${PYTHON_USEDEP}] + >=dev-python/uritemplate-3.0.0[${PYTHON_USEDEP}] + <dev-python/uritemplate-4[${PYTHON_USEDEP}] + >=dev-python/six-1.13.0[${PYTHON_USEDEP}] + <dev-python/six-2[${PYTHON_USEDEP}] + " +BDEPEND=" + test? ( + dev-python/unittest2[${PYTHON_USEDEP}] + )" + +distutils_enable_tests --install pytest + +python_test() { + local deselect=( + # require Internet access (and credentials) + tests/test_discovery.py::DiscoveryErrors::test_credentials_and_credentials_file_mutually_exclusive + tests/test_discovery.py::DiscoveryFromDocument::test_api_endpoint_override_from_client_options_mapping_object + ) + + distutils_install_for_testing + pytest -vv ${deselect[@]/#/--deselect } || + die "Tests failed with ${EPYTHON}" +} |