From d99093fb4bb5652015c06274d64083daa2439e4f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 3 Mar 2021 10:28:17 +0000 Subject: gentoo resync : 03.03.2021 --- net-misc/gsutil/Manifest | 2 + net-misc/gsutil/gsutil-4.59.ebuild | 97 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 net-misc/gsutil/gsutil-4.59.ebuild (limited to 'net-misc/gsutil') diff --git a/net-misc/gsutil/Manifest b/net-misc/gsutil/Manifest index c51a69857dc6..d02a479e2d4d 100644 --- a/net-misc/gsutil/Manifest +++ b/net-misc/gsutil/Manifest @@ -3,5 +3,7 @@ AUX gsutil-4.41-tests.patch 810 BLAKE2B 93a2e7163d0684c8ad03ce03ae94aebc16892286 AUX gsutil-4.50-boto-tests.patch 1483 BLAKE2B 9d40250f7a836535297da411bda76430dc844128f68f67d2817c6ffd2189b6cd5e40357ed15580f5bdd68a68148faf77c49198040e767af4c57f49163c5903f0 SHA512 53c20d01d60be0d560c5e15f26bbe206bba59ad97df486b8c24409e2a58b13093b09a4601f6d8add9ec4f5f01faf9e5c3ecee00e9818e5de84f7df7d39b5127a AUX gsutil-4.50-tests.patch 2451 BLAKE2B d84d1cd31eeabb3c0ecbb4b4850ec30d5f96e641b135b6c7fe6e7442edcfc4d2d076858b6fe1365f9424d32c81d9b818885df03f66405dfb8ca4d2149ee33ab5 SHA512 007e07b54a5f4182586f3defbc070f5883356214cb0e28861df66509c414d8bbde5718fd8598bcf023e9971331a34b2f1aefd89350e6d3c97e93ae80176b2d5a DIST gsutil_4.50.tar.gz 3618295 BLAKE2B bbd8ec13428a9822b1ebe3eea984f3e50abc010a0de4e57e7dc365642ab501f7994a235d778eaa73c8217ae1e69d1569e80ac8a59d94a84a6abb8272ad466a35 SHA512 aa7d68f369ac24c75cbd321d9a1a943fc361e9bf768797327852d0da39d364fa95ac3891367e90a39061b30b331405e2ea8358e0c91e3bdc5cb151d367e0857e +DIST gsutil_4.59.tar.gz 4024669 BLAKE2B 4317cd3787adae2d7d066d7c8d5c62cfe77749d4efc8b5451e87ac6294de0e6f13c085795de30a891f2d7b58cd7e0724234cf14b4308542c8d050856a868c5cf SHA512 c86b957a2630f3a80869e3105c0baa7bf1297b84698e756fed28b28adf36345cf1dd28d4216ec395de6bfee5b118dd70040ff964a2938f22d8af15a5c3485c48 EBUILD gsutil-4.50.ebuild 3204 BLAKE2B 1fa9f4720094eecff970a749d2fa33664ef8735d198d4a8f281101196ad500da3d04e9cdf35d3ecacefe1a64fb89d0a383eae5b95a04e8de7e18115944b80775 SHA512 69d23976eec1fe7d87644b336681044a3dcb5dde46fa1a762d7d69f00fc9501797283be68c87e628d5500b94c5abf7d89966d2850382b738a63975130a969771 +EBUILD gsutil-4.59.ebuild 3026 BLAKE2B 579c56d597e1aedb12a872763947c3d1e4eb29edd6768cefea0ba0e1bc435f79a1a2ef495682407ed545fce53cbd71ce4fa5fd166c926ab1c9d9370018d1351a SHA512 82e63ab4bbb1e2b965079fa3268b2c340d909822c9e9b6286239a36a6b10745a45c7dc7ac93706907adc8e2a3a1e1210f19932b6534aa6bd453a65bfba9dca08 MISC metadata.xml 514 BLAKE2B b37a6acae57aa619dd2adc4722283fbf1f5076ed9b3fa18558fdbe0d9ea39eb9fd1e0a678ce2df59c2c37f444558f9e4d1e913be7c7fdf1b2a16f31e809b7588 SHA512 d97ecaa80d5996fb0bb424681861e552c4f3ee206ec0b5d7a4f703247ea495e0a201757ebe4a5288389cab58208ead2718288107cad173684f37ecb9357bf06e diff --git a/net-misc/gsutil/gsutil-4.59.ebuild b/net-misc/gsutil/gsutil-4.59.ebuild new file mode 100644 index 000000000000..48e12ee22074 --- /dev/null +++ b/net-misc/gsutil/gsutil-4.59.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{7..9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="command line tool for interacting with cloud storage services" +HOMEPAGE="https://github.com/GoogleCloudPlatform/gsutil" +SRC_URI="http://commondatastorage.googleapis.com/pub/${PN}_${PV}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="${PYTHON_DEPS} + >=dev-python/argcomplete-1.9.4[${PYTHON_USEDEP}] + >=dev-python/boto-2.49.0[${PYTHON_USEDEP}] + >=dev-python/crcmod-1.7[${PYTHON_USEDEP}] + >=dev-python/fasteners-0.14.1[${PYTHON_USEDEP}] + >=dev-python/gcs-oauth2-boto-plugin-2.7[${PYTHON_USEDEP}] + >=dev-python/google-apitools-0.5.30[${PYTHON_USEDEP}] + >=dev-python/google-reauth-python-0.1.0[${PYTHON_USEDEP}] + >=dev-python/httplib2-0.18[${PYTHON_USEDEP}] + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] + >=dev-python/monotonic-1.4[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] + >=dev-python/retry-decorator-1.0.0[${PYTHON_USEDEP}] + >=dev-python/six-1.12.0[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/gsutil-4.41-tests.patch" + "${FILESDIR}/gsutil-4.50-boto-tests.patch" + "${FILESDIR}/gsutil-4.50-tests.patch" +) + +S="${WORKDIR}/${PN}" + +DOCS=( README.md CHANGES.md ) + +# needs to talk to Google to run tests +RESTRICT+=" test" + +python_prepare_all() { + distutils-r1_python_prepare_all + + # NB: We don't delete all of boto/ because the tests are imported by the + # production code. The same reason we can't delete gslib/tests/. We can + # delete the main boto library and use the system version though. + rm -r gslib/vendored/boto/boto || die + + # failes to compile with py3 + rm gslib/vendored/boto/tests/mturk/cleanup_tests.py || die + + sed -i \ + -e 's/mock==/mock>=/' \ + setup.py || die + # Sanity check we didn't miss any updates. + grep '==' setup.py && die "Need to update version requirements" + + # For debugging purposes, temporarily uncomment this in order to + # show hidden tracebacks. + #sed -e 's/^ except OSError as e:$/&\n raise/' \ + # -e 's/def _HandleUnknownFailure(e):/&\n raise/' \ + # -i gslib/__main__.py || die + + # create_bucket raised ResponseNotReady + sed -i \ + -e 's/test_cp_unwritable_tracker_file/_&/' \ + -e 's/test_cp_unwritable_tracker_file_download/_&/' \ + gslib/tests/test_cp.py || die + + sed -i -E -e 's/(executable_prefix =).*/\1 [sys.executable]/' \ + gslib/commands/test.py || die + + # IOError: close() called during concurrent operation on the same file object. + sed -i -e 's/sys.stderr.close()/#&/' \ + gslib/tests/testcase/unit_testcase.py || die +} + +python_compile() { + 2to3 --write --nobackups --no-diffs -j "$(makeopts_jobs "${MAKEOPTS}" INF)" \ + gslib/vendored/boto/tests || die "2to3 on boto tests failed" + + distutils-r1_python_compile +} + +python_test() { + BOTO_CONFIG="${FILESDIR}/dummy.boto" \ + "${EPYTHON}" gslib/__main__.py test -u || die "tests failed with ${EPYTHON}" +} -- cgit v1.2.3