diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-11-03 16:06:58 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-11-03 16:06:58 +0000 |
commit | bd4aeefe33e63f613512604e47bfca7b2187697d (patch) | |
tree | adb35b5a9a00ee7ea591ab0c987f70167c23b597 /net-misc/gsutil | |
parent | 48ece6662cbd443015f5a57ae6d8cbdbd69ef37c (diff) |
gentoo resync : 03.11.2019
Diffstat (limited to 'net-misc/gsutil')
-rw-r--r-- | net-misc/gsutil/Manifest | 4 | ||||
-rw-r--r-- | net-misc/gsutil/gsutil-4.45.ebuild | 84 | ||||
-rw-r--r-- | net-misc/gsutil/metadata.xml | 17 |
3 files changed, 99 insertions, 6 deletions
diff --git a/net-misc/gsutil/Manifest b/net-misc/gsutil/Manifest index 3447dcae4736..c1d4d361a876 100644 --- a/net-misc/gsutil/Manifest +++ b/net-misc/gsutil/Manifest @@ -1,5 +1,7 @@ AUX dummy.boto 128 BLAKE2B f366c006392ef65857a3af2334f6776ce9609841fab260e27c15579b7f2603cc547f55f97ad053027aef670616e2e8c65c0c932ca930cb2a59de1428c62c3887 SHA512 9e420dde9d7e8e9fe2513529fd2681994763e8b9069ae9911c56a3ee72d77e40a8e5c8b0e7c006fe5c336ccb78935d908b20bd1bd275dded317a0c5d2b7bc97d AUX gsutil-4.41-tests.patch 810 BLAKE2B 93a2e7163d0684c8ad03ce03ae94aebc168922861ac89958e0a13a1fc3e53635b03d08531bd29b8301772c0a724647c33e5091af47e1c4bcf4c0478b4487fad6 SHA512 85fad475926755f32c4d08eaad9b023c9808c4ef696a2a7da4c61a68101d781c207c4f5817cda286f123e0c50477e8f7bf032a03d40420004d1aee412ef8375a DIST gsutil_4.41.tar.gz 3685987 BLAKE2B 7586d6c64c87c27e4c5f3e86372bfe6d7fdfbdcbe4146308ed497d86b6e3fb984a79d3f07ba3ed055ac09bfe70eef893b8b764a46921703c48c8e54e49cac7eb SHA512 f96500a4761cb244039ba20ccb328b143134a74822990538585116fe6afa6f9e23cfecc9958e34d5deb4291edc9cbe97c6176b3a0f0136ed6e8e81303b5b8c4a +DIST gsutil_4.45.tar.gz 3695514 BLAKE2B 9b129ae1e87620b2430368818929fbd884319cd2cf7788275ba556f873b13700b9333c59b753202d8c88a81eaa47e223f39f6ded26adf8d16144324763528886 SHA512 9b21162afcfcd063976be51151d1d51aaeac1a32c2b7d0ee79aaccb28f5202f93623b39ed994bd796ab508a56363fea69429fe42cd770cff3c7c8352a4956212 EBUILD gsutil-4.41.ebuild 2613 BLAKE2B 2c08175115e2db69fd50b9e1695374ed5feb1df7a0e42ca2366ae67109ed0d13301f229a814497213dd2f9894454a7df068c465b01ecfe98f66fc581c48ac8b5 SHA512 61a9a371ea6aee9f4448a359d6ac9f06ba4c3ae2b0a0c1ade10b0e229256d7cd2e7c48101964d49c17983bea5cdb021c6a88a22568ac6106cf162ca2621e5a7d -MISC metadata.xml 309 BLAKE2B 2e96100ac1f7d7ec8002836564ada61c1f60527f13dedb03063940bbed304147766406ad2dfe3269385320f1f81d3f7ce0979077c6f43ec49d6e8f99d5913cd7 SHA512 9ef28b80fa82fb11b954bdaf65bb385203f18a44dcfa53f2f8cdf47f62ece37eea0ecec1c83e067485d16fc0dd6b8bfb8a0fe625b5af8e5d07cb48a1e52b3178 +EBUILD gsutil-4.45.ebuild 2613 BLAKE2B 2c08175115e2db69fd50b9e1695374ed5feb1df7a0e42ca2366ae67109ed0d13301f229a814497213dd2f9894454a7df068c465b01ecfe98f66fc581c48ac8b5 SHA512 61a9a371ea6aee9f4448a359d6ac9f06ba4c3ae2b0a0c1ade10b0e229256d7cd2e7c48101964d49c17983bea5cdb021c6a88a22568ac6106cf162ca2621e5a7d +MISC metadata.xml 514 BLAKE2B b37a6acae57aa619dd2adc4722283fbf1f5076ed9b3fa18558fdbe0d9ea39eb9fd1e0a678ce2df59c2c37f444558f9e4d1e913be7c7fdf1b2a16f31e809b7588 SHA512 d97ecaa80d5996fb0bb424681861e552c4f3ee206ec0b5d7a4f703247ea495e0a201757ebe4a5288389cab58208ead2718288107cad173684f37ecb9357bf06e diff --git a/net-misc/gsutil/gsutil-4.45.ebuild b/net-misc/gsutil/gsutil-4.45.ebuild new file mode 100644 index 000000000000..c645f1344db9 --- /dev/null +++ b/net-misc/gsutil/gsutil-4.45.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_6 ) + +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" + +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.5[${PYTHON_USEDEP}] + >=dev-python/google-apitools-0.5.30[${PYTHON_USEDEP}] + dev-python/google-reauth-python[${PYTHON_USEDEP}] + >=dev-python/httplib2-0.11.3[${PYTHON_USEDEP}] + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] + >=dev-python/monotonic-1.4[${PYTHON_USEDEP}] + >=dev-python/oauth2client-4.1.2[${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}] + >=dev-python/PySocks-1.01[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}/gsutil-4.41-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 + + sed -e 's/boto==/boto>=/' \ + -e 's/mock==/mock>=/' \ + -e 's/oauth2client==/oauth2client>=/' \ + -e 's/SocksiPy-branch==/PySocks>=/' \ + -i setup.py || die + + # 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 -e 's/test_cp_unwritable_tracker_file/_&/' \ + -e 's/test_cp_unwritable_tracker_file_download/_&/' \ + -i gslib/tests/test_cp.py || die + + sed -e 's/\(executable_prefix =\).*/\1 [sys.executable]/' \ + -i gslib/commands/test.py || die + + # IOError: close() called during concurrent operation on the same file object. + sed -e 's/sys.stderr.close()/#&/' \ + -i gslib/tests/testcase/unit_testcase.py + + # Package installs 'test' package which is forbidden and likely a bug in the build system + rm -rf "${S}/test" || die + sed -i -e '/recursive-include test/d' MANIFEST.in || die +} + +python_test() { + BOTO_CONFIG=${FILESDIR}/dummy.boto \ + ${PYTHON} gslib/__main__.py test -u || die "tests failed" +} diff --git a/net-misc/gsutil/metadata.xml b/net-misc/gsutil/metadata.xml index 6625c00f3193..8d2593986484 100644 --- a/net-misc/gsutil/metadata.xml +++ b/net-misc/gsutil/metadata.xml @@ -1,9 +1,16 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> - <upstream> - <remote-id type="google-code">gsutil</remote-id> - <remote-id type="github">GoogleCloudPlatform/gsutil</remote-id> - </upstream> + <maintainer type="person"> + <email>chutzpah@gentoo.org</email> + <name>Patrick McLean</name> + </maintainer> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + <name>Zac Medico</name> + </maintainer> + <upstream> + <remote-id type="google-code">gsutil</remote-id> + <remote-id type="github">GoogleCloudPlatform/gsutil</remote-id> + </upstream> </pkgmetadata> |