diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/gcs-oauth2-boto-plugin |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/gcs-oauth2-boto-plugin')
7 files changed, 198 insertions, 0 deletions
diff --git a/dev-python/gcs-oauth2-boto-plugin/Manifest b/dev-python/gcs-oauth2-boto-plugin/Manifest new file mode 100644 index 000000000000..a0087477a1b5 --- /dev/null +++ b/dev-python/gcs-oauth2-boto-plugin/Manifest @@ -0,0 +1,10 @@ +AUX gcs-oauth2-boto-plugin-1.13-py3.patch 2606 SHA256 0e77d01e6d4c8edf826d6f2979b6859210917ebeb004775ed61616448ec4c5bc SHA512 d215e1ef13a4f513f11dce6311352b808bb3f6b991a452fca1becef56b106529606a7a0ec065292e72fb47e6b04ed854293a43cb14ff74d50102d4b43225390a WHIRLPOOL 362b36758eb7694859dbac9de6db4d2c3ec59a015f545e5cf21d06ac57ebbefe77c7a318c4c8ef2d1bf0091796e44cac1c17b577f791a78fbb3568caa39816db +AUX gcs-oauth2-boto-plugin-1.13-use-friendy-version-checks.patch 347 SHA256 7b08a65bb812dfb6a48fdc50c8f24b9be6fc609bef56df255fc4e60700ceea11 SHA512 b7354d7b195382213018ac4c6924a042da106affb2b9058f664ab5c57b521f0b7164a5249609ecaccfa343114fb8c47d687a861a17b31700c75ee7ca42432bfe WHIRLPOOL b34916e2bbeea71f445d5970c33e1ca71a8759af951aef0fb87f7adcd5ed276167f17a415dc6d705a5bb57f0243941050b8703f0771dfc2fb69eb3a157004bb7 +AUX gcs-oauth2-boto-plugin-1.8-use-friendy-version-checks.patch 345 SHA256 c27b2be5e28a1fa5eb77bf1279a49da673357d4112e7480a3ef80ba1cff02316 SHA512 cc1dc36815a4ffd42867d398f00a702c0677bcfe54ce772ea93a1e641fd9f2ea0f146b25947587c8d40f66a9b45ff1c4038002c518110bd78808565e120f6230 WHIRLPOOL 80c3bffd819efbf8ffb6d4a43a313d6e3500410a8df8f409031e4d87bab58431797ba7ccf546d8369b047566416769a3fc449cdfe4043d48be76db55f2374730 +DIST gcs-oauth2-boto-plugin-1.14.tar.gz 14980 SHA256 dd06a90ee502a4732729a5bf2d56745965b0b2ed68741c140ff09c208c837fbe SHA512 86804a599c969c63587387df21a2396a27509981cc13a3f92bc98a645757362e77c63b68956ebd2663a721bb51993c9e61679db85a67de48d017ddad7de044b7 WHIRLPOOL 35c2eb3c8072994036b525525f22bc23ca3fa2d7fe1688aa324e25daca99f5dbbe62c281bcfb9674b7b0e7f78a2658223715355df74562edf06156854b7638bf +DIST gcs-oauth2-boto-plugin-1.8.tar.gz 13248 SHA256 cb4f3c608c953c9f6eecbad0dd33c6a2dba283cf1cd332ceaac1a9ba8a17c64b SHA512 5504fc38d58ee68a78ee2b8e6c3757045494d000748382bc26888a65085cec08d2d137c63cb51afd1cef72d31b3f0cac5d40014548cca47c5322a67a7f1ef204 WHIRLPOOL 238ee67cdad11162abe614fad7d6eb6175a27fc132c790e17f4380373b8c8d48906e5ac361c4d3c34fbac85e851bdf6426c3660434bf809d4abca87f6cb995a9 +EBUILD gcs-oauth2-boto-plugin-1.14.ebuild 1442 SHA256 8e087dc4f9dd63154ceaaf4c7b371e824e8c271b32e0fbaeae6370e959ce4e2d SHA512 9bef3d7c9cf276502c5cb940b749fbb22cd2f27eab4a14d208a420dab3d4e08b7deb537b3d16b534d62f2b1a7c30a39a1665b4cbf518d74782c496614a9b65c1 WHIRLPOOL 8ea1d30f8f38f138cb935cb6f6d5e6301b73c8565d1d10248af4b2da2f8a15d0eb7d3616d1c3a6d5739ced96f93f1dc306d524b3a6f698d0c446173f97f3c619 +EBUILD gcs-oauth2-boto-plugin-1.8-r1.ebuild 1042 SHA256 d881de53b304ab5fec131856d8ca8c98f04ee08656fd5ff4c352826436a50770 SHA512 fae2c7e75e0fc786ce8b69489189615bcfdc4c6b061a83ec1b67d31ef8dcff681e2e41be50deebea35c9561e25cbfcc152b5401dea32ce182eb3931183985b01 WHIRLPOOL 48720d95bebc2dfb526746172063031d202a6ce2d3290f49e92bd7745815f5d244a8bb9b3a846f16d4e828fe31c2af6e713698e013defb1f4be2719707f54eef +MISC ChangeLog 4508 SHA256 23d521bfa7a91260f01594f25163d278d32259c76c73b4056d878a0d5ef0c76c SHA512 46f5d31808aec60b9cc5e09e51b321912db1e7d90f130ec24bd866b80ba19046d2dc8acf1e18e8e037213e881f504c37b4ca210fcd12a49175f9d57ece76a72f WHIRLPOOL 4be3a83054b33acdd6c1d130d45926e97af4ead02086e519a2cc4b4ba080dc001a9356b1f521672bffdc0095e23cf056713956a691f0f412f64e50da886a0829 +MISC ChangeLog-2015 1663 SHA256 3b7ca678516c11c5f971c86baceb96b65cefa779d00552946dd020a284ac6dc8 SHA512 94aceab6716fd697561a7b913c5cbd67ddaf5d306f893a817f41270cbabd0073fa8572ea4e499fdb686fa5e8ebb8f63fd5c92ff7497a9a8a5c7aad9feaa95b5b WHIRLPOOL b4f5b6e4dc8bf552a8529e6f0ef3b21a6883bd4afac5be7bbd5a28b87e705c0480a678d90f3592ccbc3d858812a75d96ceb4428ef0d1a1bb0b55d57ace370f37 +MISC metadata.xml 335 SHA256 1c05ccebe4ee11783aca56fa532b2241bea9d204b57276e2068e3a48c5f78642 SHA512 cb494f35eba6442585175997cb16c7d4f6eea841e56f2828386f0894e68a7d917c010264bea46d7b6ae1957633763c66a5b669606fd8b0fcba3b4555fa926807 WHIRLPOOL aa4b871a67355df816868d5ba9bc711266f550f7b40d9b5805ad87eddc4c464d230962d1112b619e920e2f9c267e61aeabdd7dc5346cc0f1aefceec3994e6777 diff --git a/dev-python/gcs-oauth2-boto-plugin/files/gcs-oauth2-boto-plugin-1.13-py3.patch b/dev-python/gcs-oauth2-boto-plugin/files/gcs-oauth2-boto-plugin-1.13-py3.patch new file mode 100644 index 000000000000..15f6fc373779 --- /dev/null +++ b/dev-python/gcs-oauth2-boto-plugin/files/gcs-oauth2-boto-plugin-1.13-py3.patch @@ -0,0 +1,60 @@ +https://github.com/GoogleCloudPlatform/gcs-oauth2-boto-plugin/pull/18 + +--- a/gcs_oauth2_boto_plugin/oauth2_client.py ++++ b/gcs_oauth2_boto_plugin/oauth2_client.py +@@ -122,7 +122,7 @@ except ImportError: + retval.token_expiry = datetime.datetime.strptime( + data['token_expiry'], EXPIRY_FORMAT) + return retval +- except KeyError, e: ++ except KeyError as e: + raise Exception('Your JSON credentials are invalid; ' + 'missing required entry %s.' % e[0]) + # pylint: enable=protected-access +@@ -274,7 +274,7 @@ class FileSystemTokenCache(TokenCache): + flags |= os.O_BINARY + + try: +- fd = os.open(cache_file, flags, 0600) ++ fd = os.open(cache_file, flags, 0o0600) + except (OSError, IOError) as e: + LOG.warning('FileSystemTokenCache.PutToken: ' + 'Failed to create cache file %s: %s', cache_file, e) +@@ -633,7 +633,7 @@ class OAuth2UserAccountClient(OAuth2Client): + return AccessToken( + credentials.access_token, credentials.token_expiry, + datetime_strategy=self.datetime_strategy) +- except AccessTokenRefreshError, e: ++ except AccessTokenRefreshError as e: + if 'Invalid response 403' in e.message: + # This is the most we can do at the moment to accurately detect rate + # limiting errors since they come back as 403s with no further +@@ -669,7 +669,7 @@ class OAuth2GCEClient(OAuth2Client): + http = httplib2.Http() + response, content = http.request(META_TOKEN_URI, method='GET', + body=None, headers=META_HEADERS) +- except Exception, e: ++ except Exception as e: + raise GsAccessTokenRefreshError(e) + + if response.status == 200: +@@ -695,7 +695,7 @@ def _IsGCE(): + # this approach, we'll avoid having to enumerate all possible non-transient + # socket errors. + return False +- except Exception, e: # pylint: disable=broad-except ++ except Exception as e: # pylint: disable=broad-except + LOG.warning("Failed to determine whether we're running on GCE, so we'll" + "assume that we aren't: %s", e) + return False +--- a/gcs_oauth2_boto_plugin/test_oauth2_client.py ++++ b/gcs_oauth2_boto_plugin/test_oauth2_client.py +@@ -248,7 +248,7 @@ class FileSystemTokenCacheTest(unittest.TestCase): + # Assert that the cache file exists and has correct permissions. + if not IS_WINDOWS: + self.assertEquals( +- 0600, ++ 0o0600, + stat.S_IMODE(os.stat(self.cache.CacheFileName(self.key)).st_mode)) + + def testPutGet(self): diff --git a/dev-python/gcs-oauth2-boto-plugin/files/gcs-oauth2-boto-plugin-1.13-use-friendy-version-checks.patch b/dev-python/gcs-oauth2-boto-plugin/files/gcs-oauth2-boto-plugin-1.13-use-friendy-version-checks.patch new file mode 100644 index 000000000000..334ee5e90c96 --- /dev/null +++ b/dev-python/gcs-oauth2-boto-plugin/files/gcs-oauth2-boto-plugin-1.13-use-friendy-version-checks.patch @@ -0,0 +1,13 @@ +--- a/setup.py ++++ b/setup.py +@@ -36,9 +36,7 @@ + 'httplib2>=0.8', + 'oauth2client>=1.5.2, !=2.0.*', + 'pyOpenSSL>=0.13', +- # Not using 1.02 because of: +- # https://code.google.com/p/socksipy-branch/issues/detail?id=3 +- 'SocksiPy-branch==1.01', ++ 'SocksiPy-branch>=1.01', + 'retry_decorator>=1.0.0', + 'six>=1.6.1' + ] diff --git a/dev-python/gcs-oauth2-boto-plugin/files/gcs-oauth2-boto-plugin-1.8-use-friendy-version-checks.patch b/dev-python/gcs-oauth2-boto-plugin/files/gcs-oauth2-boto-plugin-1.8-use-friendy-version-checks.patch new file mode 100644 index 000000000000..c89b7a69b461 --- /dev/null +++ b/dev-python/gcs-oauth2-boto-plugin/files/gcs-oauth2-boto-plugin-1.8-use-friendy-version-checks.patch @@ -0,0 +1,13 @@ +--- a/setup.py ++++ b/setup.py +@@ -36,9 +36,7 @@ requires = [ + 'httplib2>=0.8', + 'google-api-python-client>=1.1', + 'pyOpenSSL>=0.13', +- # Not using 1.02 because of: +- # https://code.google.com/p/socksipy-branch/issues/detail?id=3 +- 'SocksiPy-branch==1.01', ++ 'SocksiPy-branch>=1.01', + 'retry_decorator>=1.0.0', + ] + diff --git a/dev-python/gcs-oauth2-boto-plugin/gcs-oauth2-boto-plugin-1.14.ebuild b/dev-python/gcs-oauth2-boto-plugin/gcs-oauth2-boto-plugin-1.14.ebuild new file mode 100644 index 000000000000..660f8c57b1eb --- /dev/null +++ b/dev-python/gcs-oauth2-boto-plugin/gcs-oauth2-boto-plugin-1.14.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit distutils-r1 + +DESCRIPTION="OAuth 2.0 plugin for Google Cloud Storage credentials in the Boto library" +HOMEPAGE="https://pypi.python.org/pypi/gcs-oauth2-boto-plugin" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="test" +# The tests only work with py2 atm. +RESTRICT="test" + +PATCHES=( + "${FILESDIR}/${PN}-1.13-use-friendy-version-checks.patch" + "${FILESDIR}/${PN}-1.13-py3.patch" +) + +# Keep versions in sync with setup.py. +DEPEND="${PYTHON_DEPS} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/freezegun[${PYTHON_USEDEP}] + )" +RDEPEND="${PYTHON_DEPS} + >=dev-python/boto-2.29.1[${PYTHON_USEDEP}] + >=dev-python/httplib2-0.8[${PYTHON_USEDEP}] + >=dev-python/oauth2client-1.5.2[${PYTHON_USEDEP}] + !=dev-python/oauth2client-2.0* + >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] + >=dev-python/retry-decorator-1.0.0[${PYTHON_USEDEP}] + >=dev-python/PySocks-1.01[${PYTHON_USEDEP}] + >=dev-python/six-1.6.1[${PYTHON_USEDEP}]" + +python_prepare_all() { + distutils-r1_python_prepare_all + sed -i \ + -e '/SocksiPy-branch/d' \ + setup.py || die + # Make sure the unittests aren't installed. + mv gcs_oauth2_boto_plugin/test_oauth2_client.py ./ || die +} + +python_test() { + ${EPYTHON} "${S}"/test_oauth2_client.py || die +} diff --git a/dev-python/gcs-oauth2-boto-plugin/gcs-oauth2-boto-plugin-1.8-r1.ebuild b/dev-python/gcs-oauth2-boto-plugin/gcs-oauth2-boto-plugin-1.8-r1.ebuild new file mode 100644 index 000000000000..690677bd6003 --- /dev/null +++ b/dev-python/gcs-oauth2-boto-plugin/gcs-oauth2-boto-plugin-1.8-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="OAuth 2.0 plugin for Google Cloud Storage credentials in the Boto library" +HOMEPAGE="https://pypi.python.org/pypi/gcs-oauth2-boto-plugin" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 arm x86" +IUSE="" + +PATCHES=( + "${FILESDIR}/${P}-use-friendy-version-checks.patch" +) + +# Keep versions in sync with setup.py. +DEPEND="${PYTHON_DEPS} + dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="${PYTHON_DEPS} + >=dev-python/boto-2.29.1[${PYTHON_USEDEP}] + >=dev-python/httplib2-0.8[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] + >=dev-python/google-api-python-client-1.1[${PYTHON_USEDEP}] + >=dev-python/retry-decorator-1.0.0[${PYTHON_USEDEP}] + >=dev-python/PySocks-1.01[${PYTHON_USEDEP}]" + +python_prepare_all() { + distutils-r1_python_prepare_all + sed \ + -e '/SocksiPy-branch/d' \ + -i setup.py || die +} diff --git a/dev-python/gcs-oauth2-boto-plugin/metadata.xml b/dev-python/gcs-oauth2-boto-plugin/metadata.xml new file mode 100644 index 000000000000..fa87f777eb4f --- /dev/null +++ b/dev-python/gcs-oauth2-boto-plugin/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">gcs-oauth2-boto-plugin</remote-id> + </upstream> +</pkgmetadata> |