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/
Date: Fri, 15 Oct 2021 02:12:41
Message-Id: 1634263844.038efd2c26384545b242a89a0c71e0b2a189ae59.vapier@gentoo
1 commit: 038efd2c26384545b242a89a0c71e0b2a189ae59
2 Author: Mike Frysinger <vapier <AT> chromium <DOT> org>
3 AuthorDate: Fri Oct 15 02:10:26 2021 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 15 02:10:44 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=038efd2c
7
8 net-misc/gsutil: version bump to 4.68
9
10 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
11
12 net-misc/gsutil/Manifest | 1 +
13 net-misc/gsutil/gsutil-4.68.ebuild | 97 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 98 insertions(+)
15
16 diff --git a/net-misc/gsutil/Manifest b/net-misc/gsutil/Manifest
17 index 465ad363d05..b939cc4aba9 100644
18 --- a/net-misc/gsutil/Manifest
19 +++ b/net-misc/gsutil/Manifest
20 @@ -1 +1,2 @@
21 DIST gsutil_4.60.tar.gz 4012900 BLAKE2B d3d1b57d5b0d42b1b454944efe8d62855b665d3772817c636568ef49c79ae2c566ef08c4c6e1bd3c9829471561865b64b3beec8d3911d6766748337aa1b1fc3e SHA512 18ab701cbb60513d66e8b96ced28cfe65dc0f210435fb5ffbcbfab3541ec7ed051db726e52239796d9579d0928953f610064279a3ee1e5b5c06cec963493804c
22 +DIST gsutil_4.68.tar.gz 4459899 BLAKE2B 9855d379ba0483f1a33e4e05546444ff492c72d241ff0e5ca4f6c798c91b0c8d729247bf5fbaa39c411eb7a7e3f1fa701363898b903ba11c1bdf41c7e969c44d SHA512 b4af124808f34b5c0aa1d31b6d1bdbdeb451d39a246d4f2876ef664b6b485cdc5dc63bc3992ca4b7b33c72a00fc5119b931625e2c3230970bf0baa6389715e39
23
24 diff --git a/net-misc/gsutil/gsutil-4.68.ebuild b/net-misc/gsutil/gsutil-4.68.ebuild
25 new file mode 100644
26 index 00000000000..e907dba1478
27 --- /dev/null
28 +++ b/net-misc/gsutil/gsutil-4.68.ebuild
29 @@ -0,0 +1,97 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="7"
34 +
35 +PYTHON_COMPAT=( python3_{7..9} )
36 +DISTUTILS_USE_SETUPTOOLS=rdepend
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="command line tool for interacting with cloud storage services"
41 +HOMEPAGE="https://github.com/GoogleCloudPlatform/gsutil"
42 +SRC_URI="http://commondatastorage.googleapis.com/pub/${PN}_${PV}.tar.gz"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~x86"
47 +IUSE="test"
48 +RESTRICT="!test? ( test )"
49 +
50 +RDEPEND="${PYTHON_DEPS}
51 + >=dev-python/argcomplete-1.9.4[${PYTHON_USEDEP}]
52 + >=dev-python/boto-2.49.0[${PYTHON_USEDEP}]
53 + >=dev-python/crcmod-1.7[${PYTHON_USEDEP}]
54 + >=dev-python/fasteners-0.14.1[${PYTHON_USEDEP}]
55 + >=dev-python/gcs-oauth2-boto-plugin-2.7[${PYTHON_USEDEP}]
56 + >=dev-python/google-apitools-0.5.32[${PYTHON_USEDEP}]
57 + >=dev-python/google-reauth-python-0.1.0[${PYTHON_USEDEP}]
58 + >=dev-python/httplib2-0.18[${PYTHON_USEDEP}]
59 + >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]
60 + >=dev-python/retry-decorator-1.0.0[${PYTHON_USEDEP}]
61 + >=dev-python/six-1.12.0[${PYTHON_USEDEP}]"
62 +DEPEND="${RDEPEND}"
63 +
64 +PATCHES=(
65 + "${FILESDIR}/gsutil-4.41-tests.patch"
66 + "${FILESDIR}/gsutil-4.50-boto-tests.patch"
67 + "${FILESDIR}/gsutil-4.50-tests.patch"
68 +)
69 +
70 +S="${WORKDIR}/${PN}"
71 +
72 +DOCS=( README.md CHANGES.md )
73 +
74 +# Needs to talk to Google to run tests.
75 +RESTRICT+=" test"
76 +
77 +python_prepare_all() {
78 + distutils-r1_python_prepare_all
79 +
80 + # NB: We don't delete all of boto/ because the tests are imported by the
81 + # production code. The same reason we can't delete gslib/tests/. We can
82 + # delete the main boto library and use the system version though.
83 + rm -r gslib/vendored/boto/boto test || die
84 +
85 + # Fails to compile with py3.
86 + rm gslib/vendored/boto/tests/mturk/cleanup_tests.py || die
87 +
88 + # monotonic is only used by bundled fasteners that we do not install.
89 + sed -i \
90 + -e 's/mock==/mock>=/' \
91 + -e '/monotonic/d' \
92 + setup.py || die
93 + # Sanity check we didn't miss any updates.
94 + grep '==' setup.py && die "Need to update version requirements"
95 +
96 + # For debugging purposes, temporarily uncomment this in order to
97 + # show hidden tracebacks.
98 + #sed -e 's/^ except OSError as e:$/&\n raise/' \
99 + # -e 's/def _HandleUnknownFailure(e):/&\n raise/' \
100 + # -i gslib/__main__.py || die
101 +
102 + # create_bucket raised ResponseNotReady.
103 + sed -i \
104 + -e 's/test_cp_unwritable_tracker_file/_&/' \
105 + -e 's/test_cp_unwritable_tracker_file_download/_&/' \
106 + gslib/tests/test_cp.py || die
107 +
108 + sed -i -E -e 's/(executable_prefix =).*/\1 [sys.executable]/' \
109 + gslib/commands/test.py || die
110 +
111 + # IOError: close() called during concurrent operation on the same file object.
112 + sed -i -e 's/sys.stderr.close()/#&/' \
113 + gslib/tests/testcase/unit_testcase.py || die
114 +}
115 +
116 +python_compile() {
117 + 2to3 --write --nobackups --no-diffs -j "$(makeopts_jobs "${MAKEOPTS}" INF)" \
118 + gslib/vendored/boto/tests || die "2to3 on boto tests failed"
119 +
120 + distutils-r1_python_compile
121 +}
122 +
123 +python_test() {
124 + BOTO_CONFIG="${FILESDIR}/dummy.boto" \
125 + "${EPYTHON}" gslib/__main__.py test -u || die "tests failed with ${EPYTHON}"
126 +}