1 |
commit: 0b24dbf3746c0bdcc710cb689ffad2aba85233e8 |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Thu May 7 18:01:47 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 7 19:06:19 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b24dbf3 |
7 |
|
8 |
dev-python/gcs-oauth2-boto-plugin-2.5-r1: revbump, cleanups, py38 |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
.../gcs-oauth2-boto-plugin-2.5-r1.ebuild | 51 ++++++++++++++++++++++ |
15 |
1 file changed, 51 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/gcs-oauth2-boto-plugin/gcs-oauth2-boto-plugin-2.5-r1.ebuild b/dev-python/gcs-oauth2-boto-plugin/gcs-oauth2-boto-plugin-2.5-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..071efa216aa |
20 |
--- /dev/null |
21 |
+++ b/dev-python/gcs-oauth2-boto-plugin/gcs-oauth2-boto-plugin-2.5-r1.ebuild |
22 |
@@ -0,0 +1,51 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+DESCRIPTION="OAuth 2.0 plugin for Google Cloud Storage credentials in the Boto library" |
33 |
+HOMEPAGE="https://pypi.org/project/gcs-oauth2-boto-plugin/" |
34 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="Apache-2.0" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~arm ~x86" |
39 |
+IUSE="test" |
40 |
+RESTRICT="!test? ( test )" |
41 |
+ |
42 |
+PATCHES=( |
43 |
+ "${FILESDIR}/${PN}-1.13-use-friendy-version-checks.patch" |
44 |
+) |
45 |
+ |
46 |
+# Keep versions in sync with setup.py. |
47 |
+BDEPEND=" |
48 |
+ test? ( dev-python/freezegun[${PYTHON_USEDEP}] ) |
49 |
+" |
50 |
+RDEPEND="${PYTHON_DEPS} |
51 |
+ >=dev-python/boto-2.29.1[${PYTHON_USEDEP}] |
52 |
+ dev-python/google-reauth-python[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/httplib2-0.8[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/oauth2client-1.5.2[${PYTHON_USEDEP}] |
55 |
+ !=dev-python/oauth2client-2.0* |
56 |
+ >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/retry-decorator-1.0.0[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/PySocks-1.01[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/six-1.12.0[${PYTHON_USEDEP}] |
60 |
+" |
61 |
+ |
62 |
+python_prepare_all() { |
63 |
+ distutils-r1_python_prepare_all |
64 |
+ sed -e '/SocksiPy-branch/d' \ |
65 |
+ -i setup.py || die |
66 |
+ # Make sure the unittests aren't installed. |
67 |
+ mv gcs_oauth2_boto_plugin/test_oauth2_client.py ./ || die |
68 |
+} |
69 |
+ |
70 |
+python_test() { |
71 |
+ "${EPYTHON}" "${S}"/test_oauth2_client.py -v \ |
72 |
+ || die "tests failed with ${EPYTHON}" |
73 |
+} |