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:42
Message-Id: 1634263843.72c724894da68a043245282daf73ecd81047fe2c.vapier@gentoo
1 commit: 72c724894da68a043245282daf73ecd81047fe2c
2 Author: Mike Frysinger <vapier <AT> chromium <DOT> org>
3 AuthorDate: Fri Oct 15 02:10:04 2021 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 15 02:10:43 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72c72489
7
8 net-misc/gsutil: drop old 4.59
9
10 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
11
12 net-misc/gsutil/Manifest | 1 -
13 net-misc/gsutil/gsutil-4.59-r1.ebuild | 98 -----------------------------------
14 2 files changed, 99 deletions(-)
15
16 diff --git a/net-misc/gsutil/Manifest b/net-misc/gsutil/Manifest
17 index d844b48ab66..465ad363d05 100644
18 --- a/net-misc/gsutil/Manifest
19 +++ b/net-misc/gsutil/Manifest
20 @@ -1,2 +1 @@
21 -DIST gsutil_4.59.tar.gz 4024669 BLAKE2B 4317cd3787adae2d7d066d7c8d5c62cfe77749d4efc8b5451e87ac6294de0e6f13c085795de30a891f2d7b58cd7e0724234cf14b4308542c8d050856a868c5cf SHA512 c86b957a2630f3a80869e3105c0baa7bf1297b84698e756fed28b28adf36345cf1dd28d4216ec395de6bfee5b118dd70040ff964a2938f22d8af15a5c3485c48
22 DIST gsutil_4.60.tar.gz 4012900 BLAKE2B d3d1b57d5b0d42b1b454944efe8d62855b665d3772817c636568ef49c79ae2c566ef08c4c6e1bd3c9829471561865b64b3beec8d3911d6766748337aa1b1fc3e SHA512 18ab701cbb60513d66e8b96ced28cfe65dc0f210435fb5ffbcbfab3541ec7ed051db726e52239796d9579d0928953f610064279a3ee1e5b5c06cec963493804c
23
24 diff --git a/net-misc/gsutil/gsutil-4.59-r1.ebuild b/net-misc/gsutil/gsutil-4.59-r1.ebuild
25 deleted file mode 100644
26 index 7cd73f33bff..00000000000
27 --- a/net-misc/gsutil/gsutil-4.59-r1.ebuild
28 +++ /dev/null
29 @@ -1,98 +0,0 @@
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.30[${PYTHON_USEDEP}]
57 - >=dev-python/google-reauth-python-0.1.0[${PYTHON_USEDEP}]
58 - >=dev-python/httplib2-0.18[${PYTHON_USEDEP}]
59 - >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
60 - >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]
61 - >=dev-python/retry-decorator-1.0.0[${PYTHON_USEDEP}]
62 - >=dev-python/six-1.12.0[${PYTHON_USEDEP}]"
63 -DEPEND="${RDEPEND}"
64 -
65 -PATCHES=(
66 - "${FILESDIR}/gsutil-4.41-tests.patch"
67 - "${FILESDIR}/gsutil-4.50-boto-tests.patch"
68 - "${FILESDIR}/gsutil-4.50-tests.patch"
69 -)
70 -
71 -S="${WORKDIR}/${PN}"
72 -
73 -DOCS=( README.md CHANGES.md )
74 -
75 -# needs to talk to Google to run tests
76 -RESTRICT+=" test"
77 -
78 -python_prepare_all() {
79 - distutils-r1_python_prepare_all
80 -
81 - # NB: We don't delete all of boto/ because the tests are imported by the
82 - # production code. The same reason we can't delete gslib/tests/. We can
83 - # delete the main boto library and use the system version though.
84 - rm -r gslib/vendored/boto/boto || die
85 -
86 - # failes to compile with py3
87 - rm gslib/vendored/boto/tests/mturk/cleanup_tests.py || die
88 -
89 - # monotonic is only used by bundled fasteners that we do not install
90 - sed -i \
91 - -e 's/mock==/mock>=/' \
92 - -e '/monotonic/d' \
93 - setup.py || die
94 - # Sanity check we didn't miss any updates.
95 - grep '==' setup.py && die "Need to update version requirements"
96 -
97 - # For debugging purposes, temporarily uncomment this in order to
98 - # show hidden tracebacks.
99 - #sed -e 's/^ except OSError as e:$/&\n raise/' \
100 - # -e 's/def _HandleUnknownFailure(e):/&\n raise/' \
101 - # -i gslib/__main__.py || die
102 -
103 - # create_bucket raised ResponseNotReady
104 - sed -i \
105 - -e 's/test_cp_unwritable_tracker_file/_&/' \
106 - -e 's/test_cp_unwritable_tracker_file_download/_&/' \
107 - gslib/tests/test_cp.py || die
108 -
109 - sed -i -E -e 's/(executable_prefix =).*/\1 [sys.executable]/' \
110 - gslib/commands/test.py || die
111 -
112 - # IOError: close() called during concurrent operation on the same file object.
113 - sed -i -e 's/sys.stderr.close()/#&/' \
114 - gslib/tests/testcase/unit_testcase.py || die
115 -}
116 -
117 -python_compile() {
118 - 2to3 --write --nobackups --no-diffs -j "$(makeopts_jobs "${MAKEOPTS}" INF)" \
119 - gslib/vendored/boto/tests || die "2to3 on boto tests failed"
120 -
121 - distutils-r1_python_compile
122 -}
123 -
124 -python_test() {
125 - BOTO_CONFIG="${FILESDIR}/dummy.boto" \
126 - "${EPYTHON}" gslib/__main__.py test -u || die "tests failed with ${EPYTHON}"
127 -}