Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/google-auth/
Date: Mon, 30 Oct 2017 00:10:55
Message-Id: 1509322243.44192b147b497506db426ca0033cb7f0144e319b.zmedico@gentoo
1 commit: 44192b147b497506db426ca0033cb7f0144e319b
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 30 00:09:26 2017 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 30 00:10:43 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44192b14
7
8 dev-python/google-auth: version bump to 1.1.0
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.3
11
12 dev-python/google-auth/Manifest | 1 +
13 dev-python/google-auth/google-auth-1.1.0.ebuild | 52 +++++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/dev-python/google-auth/Manifest b/dev-python/google-auth/Manifest
17 index 3be44847627..00f20d24b79 100644
18 --- a/dev-python/google-auth/Manifest
19 +++ b/dev-python/google-auth/Manifest
20 @@ -1 +1,2 @@
21 DIST google-auth-1.0.1.tar.gz 133903 SHA256 dd7b6e5f3bd15c0f7cfee63a266acea40c779da0a924b475bc1812e6e10687e1 SHA512 c10822c6b75700503a06a4b3a43a123d57605a043eb494bcb0232cc3941fc039d0803ed75be26d0da72fd4df613135c290fb3fdf82b0fa47d4fe0729462d80f4 WHIRLPOOL 04560bf31278988be1c98c0d781b84cfbc48b3c1e00e772ca83d17cbf05d2db055e6a8bf732605d39cdc02a0068d898b3c5765019e2550cdc980f2da50cd222e
22 +DIST google-auth-1.1.0.tar.gz 290602 SHA256 3aca3b909477a60efc1150ead3a42ff6734365f24d121d258924fdce467f17c5 SHA512 03b4021f5bc3c60671e1e528642af4682828e3a83a07aa9dea8a28b3f97c4020ac47f325c8a952f366d45196e6a9a78a78e1abcfc8d7f878f7b6369434a0b79f WHIRLPOOL 1b10f0208573ae9e93a013b45e04c23b97c7c182c72b1ff1a293a88f1dcbc02e46edae5f1ba07cdae337aa4c9b8e3a1965cbe0eb480183368e6f80cbb13cb16a
23
24 diff --git a/dev-python/google-auth/google-auth-1.1.0.ebuild b/dev-python/google-auth/google-auth-1.1.0.ebuild
25 new file mode 100644
26 index 00000000000..64bf9f26fd1
27 --- /dev/null
28 +++ b/dev-python/google-auth/google-auth-1.1.0.ebuild
29 @@ -0,0 +1,52 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
36 +
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="Google Authentication Library"
40 +HOMEPAGE="https://pypi.python.org/pypi/google-auth/"
41 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="Apache-2.0"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
46 +IUSE="test"
47 +
48 +RDEPEND="
49 + dev-python/namespace-google[${PYTHON_USEDEP}]
50 + >=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}]
51 + >=dev-python/pyasn1-modules-0.0.5[${PYTHON_USEDEP}]
52 + >=dev-python/rsa-3.1.4[${PYTHON_USEDEP}]
53 + >=dev-python/six-1.6.1[${PYTHON_USEDEP}]
54 + >=dev-python/cachetools-2.0.0[${PYTHON_USEDEP}]
55 + "
56 +DEPEND="${RDEPEND}
57 + test? (
58 + dev-python/flask[${PYTHON_USEDEP}]
59 + dev-python/mock[${PYTHON_USEDEP}]
60 + dev-python/pytest[${PYTHON_USEDEP}]
61 + dev-python/pytest-localserver[${PYTHON_USEDEP}]
62 + )"
63 +
64 +python_prepare_all() {
65 + # urllib3-1.16 raised MaxRetryError, not TransportError
66 + sed -e 's:test_connection_error:_\0:' \
67 + -e 's:test_request_with_timeout_failure:_\0:' \
68 + -i tests/transport/compliance.py || die
69 + distutils-r1_python_prepare_all
70 +}
71 +
72 +python_test() {
73 + # delete stray files included in the tarball
74 + find "${S}"/tests -name '*.pyc' -delete || die
75 + py.test || die "Tests failed under ${EPYTHON}"
76 +}
77 +
78 +python_install_all() {
79 + distutils-r1_python_install_all
80 + find "${ED}" -name '*.pth' -delete || die
81 +}