Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/gsutil/files/, net-misc/gsutil/
Date: Tue, 02 Jan 2018 11:08:37
Message-Id: 1514890312.b1aaea557631c6b671c2de07a572eaa49d955273.vapier@gentoo
1 commit: b1aaea557631c6b671c2de07a572eaa49d955273
2 Author: Mike Frysinger <vapier <AT> chromium <DOT> org>
3 AuthorDate: Tue Jan 2 10:51:09 2018 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 2 10:51:52 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1aaea55
7
8 net-misc/gsutil: version bump to 4.28
9
10 net-misc/gsutil/Manifest | 1 +
11 .../gsutil-4.28-use-friendy-version-checks.patch | 29 +++++++++++
12 net-misc/gsutil/gsutil-4.28.ebuild | 59 ++++++++++++++++++++++
13 3 files changed, 89 insertions(+)
14
15 diff --git a/net-misc/gsutil/Manifest b/net-misc/gsutil/Manifest
16 index f2690b36769..d34f0cae4cd 100644
17 --- a/net-misc/gsutil/Manifest
18 +++ b/net-misc/gsutil/Manifest
19 @@ -1 +1,2 @@
20 DIST gsutil_4.27.tar.gz 3107288 BLAKE2B 4322335779645caf8d1ce717140a92a2173871e3c572c70a1a07cfe3f2c3b054becb74a3b4cdd2cfac912b3f84758b1b40e65223cc9e3582653392bc3fc180d5 SHA512 0c05e3f1baa8e11e89fc5af2a42474984fc4d5b3cfbd28f3a0efd7603aeee9062f55899c8325579a10e37a6b70a2ad770daf03589f43d0a8a696595c1cdf7b57
21 +DIST gsutil_4.28.tar.gz 3410500 BLAKE2B ef6d5460f9f04d27c0f172db5880e02cc88f461455ca05c3eb125656f80c29cba9fcf96ceb0c5958f14a7dc1ac85fcae3a2234a2876c7757ece5e756e910da08 SHA512 fbba505f58bc46a737ae8c02aa6a112f71f2543e3aaa4d45afd8e81cda0850c7180216827f3510858b90dfcad85c2d4b54a8c74a04c9b4ab580e966fee7bde0a
22
23 diff --git a/net-misc/gsutil/files/gsutil-4.28-use-friendy-version-checks.patch b/net-misc/gsutil/files/gsutil-4.28-use-friendy-version-checks.patch
24 new file mode 100644
25 index 00000000000..93b529a3003
26 --- /dev/null
27 +++ b/net-misc/gsutil/files/gsutil-4.28-use-friendy-version-checks.patch
28 @@ -0,0 +1,29 @@
29 +--- a/setup.py
30 ++++ b/setup.py
31 +@@ -36,21 +36,21 @@
32 +
33 + requires = [
34 + 'argcomplete>=1.8.2',
35 +- 'boto==2.48.0',
36 ++ 'boto>=2.48.0',
37 + 'crcmod>=1.7',
38 + 'gcs-oauth2-boto-plugin>=1.14',
39 +- 'google-apitools==0.5.16',
40 ++ 'google-apitools>=0.5.16',
41 + 'httplib2>=0.10.3',
42 + # TODO: Sync submodule with tag referenced here once #339 is fixed in mock.
43 +- 'mock==2.0.0',
44 +- 'oauth2client==2.2.0',
45 ++ 'mock>=2.0.0',
46 ++ 'oauth2client>=2.2.0',
47 + 'pyOpenSSL>=0.13',
48 + 'python-gflags>=2.0',
49 + 'retry_decorator>=1.0.0',
50 + 'six>=1.9.0',
51 + # Not using 1.02 because of:
52 + # https://code.google.com/p/socksipy-branch/issues/detail?id=3
53 +- 'SocksiPy-branch==1.01',
54 ++ 'SocksiPy-branch>=1.01',
55 + ]
56 +
57 + dependency_links = [
58
59 diff --git a/net-misc/gsutil/gsutil-4.28.ebuild b/net-misc/gsutil/gsutil-4.28.ebuild
60 new file mode 100644
61 index 00000000000..452ebb5e068
62 --- /dev/null
63 +++ b/net-misc/gsutil/gsutil-4.28.ebuild
64 @@ -0,0 +1,59 @@
65 +# Copyright 1999-2018 Gentoo Foundation
66 +# Distributed under the terms of the GNU General Public License v2
67 +
68 +EAPI="5"
69 +
70 +PYTHON_COMPAT=( python2_7 )
71 +
72 +inherit distutils-r1
73 +
74 +DESCRIPTION="command line tool for interacting with cloud storage services"
75 +HOMEPAGE="https://github.com/GoogleCloudPlatform/gsutil"
76 +SRC_URI="http://commondatastorage.googleapis.com/pub/${PN}_${PV}.tar.gz"
77 +
78 +LICENSE="Apache-2.0"
79 +SLOT="0"
80 +KEYWORDS="~amd64 ~arm ~x86"
81 +IUSE=""
82 +
83 +# The oauth2client-2 dep sucks.
84 +# https://github.com/GoogleCloudPlatform/gsutil/issues/355
85 +RDEPEND="${PYTHON_DEPS}
86 + >=dev-python/argcomplete-1.8.2[${PYTHON_USEDEP}]
87 + >=dev-python/boto-2.48.0[${PYTHON_USEDEP}]
88 + >=dev-python/crcmod-1.7[${PYTHON_USEDEP}]
89 + >=dev-python/httplib2-0.10.3[${PYTHON_USEDEP}]
90 + >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]
91 + >=dev-python/gcs-oauth2-boto-plugin-1.14[${PYTHON_USEDEP}]
92 + >=dev-python/google-apitools-0.5.16[${PYTHON_USEDEP}]
93 + =dev-python/oauth2client-2.2.0[${PYTHON_USEDEP}]
94 + >=dev-python/python-gflags-2.0[${PYTHON_USEDEP}]
95 + >=dev-python/retry-decorator-1.0.0[${PYTHON_USEDEP}]
96 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
97 + >=dev-python/PySocks-1.01[${PYTHON_USEDEP}]"
98 +DEPEND="${RDEPEND}
99 + dev-python/setuptools[${PYTHON_USEDEP}]"
100 +
101 +S=${WORKDIR}/${PN}
102 +
103 +DOCS=( README.md CHANGES.md )
104 +
105 +PATCHES=(
106 + "${FILESDIR}"/${PN}-4.28-use-friendy-version-checks.patch
107 +)
108 +
109 +python_prepare_all() {
110 + distutils-r1_python_prepare_all
111 + sed -i \
112 + -e '/SocksiPy-branch/d' \
113 + setup.py || die
114 +
115 + # Package installs 'test' package which is forbidden and likely a bug in the build system
116 + rm -rf "${S}/test" || die
117 + sed -i -e '/recursive-include test/d' MANIFEST.in || die
118 +}
119 +
120 +python_test() {
121 + export BOTO_CONFIG=${FILESDIR}/dummy.boto
122 + ${PYTHON} gslib/__main__.py test -u || die "tests failed"
123 +}