From cd0d9000770337b445051f1852fe3971ceb7a6e2 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 18 Mar 2023 18:31:43 +0000 Subject: gentoo auto-resync : 18:03:2023 - 18:31:42 --- dev-python/oauth2client/Manifest | 6 -- .../files/oauth2client-4.1.3-py38.patch | 35 --------- dev-python/oauth2client/metadata.xml | 13 ---- .../oauth2client/oauth2client-4.1.3-r2.ebuild | 52 ------------- .../oauth2client/oauth2client-4.1.3-r3.ebuild | 85 ---------------------- 5 files changed, 191 deletions(-) delete mode 100644 dev-python/oauth2client/Manifest delete mode 100644 dev-python/oauth2client/files/oauth2client-4.1.3-py38.patch delete mode 100644 dev-python/oauth2client/metadata.xml delete mode 100644 dev-python/oauth2client/oauth2client-4.1.3-r2.ebuild delete mode 100644 dev-python/oauth2client/oauth2client-4.1.3-r3.ebuild (limited to 'dev-python/oauth2client') diff --git a/dev-python/oauth2client/Manifest b/dev-python/oauth2client/Manifest deleted file mode 100644 index 76d3db0a2a2e..000000000000 --- a/dev-python/oauth2client/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -AUX oauth2client-4.1.3-py38.patch 1782 BLAKE2B 751b62649cd7222230f809c7e957636e351cddb3588c1da112443b09067c73cc6ada588697dd36f9b6ed2115238f8f811bc5502b17c75b2f65be655b4199dc9f SHA512 3e03d7105e76206e63858a32a25dfd5bbf997ced6abafd75d0f4973528ee91cb28200854ccfa519945573992f454c18d2acad5784693acffc7509ddcb13908a8 -DIST oauth2client-4.1.3-fixes-20230207.patch 21827 BLAKE2B c04886be0efad92fff75f0d78c5597bbc386939001f1fc5d094f96899bcc25bbd80c4e620cdf401a45c7ed48a8c83515adc98a190cecbbd345f55b78ca4a0257 SHA512 4d648aff20e56628c6fa916627851d7bb50f927c1cb1a056e115130e0aec128e7e2a5571b4a35a167bbcf01762669c22008cffd5530e0006846250d32b3f8093 -DIST oauth2client-4.1.3.tar.gz 185589 BLAKE2B 6cd61448e0d55cef7f2ba640c8cbb50ac83e76d0993391eb0acb3e156f937fcdee80576c9d45d505235a9f266495069664ccbfafd649a4e2d7a0990517ee8cb6 SHA512 80f49e09a6dd6767307a2c278544926fbf20b4f55e4cf83563ac7a7c1043622bd3c8c7fcf6de62896b623ca8c7947b309a5e6bf2b7cb0fccff3ff7634386b287 -EBUILD oauth2client-4.1.3-r2.ebuild 1425 BLAKE2B 6571481cceff9f6fd60b99752ffdcf8fd3d2155017b13ef180ed3803c1ea3783b9ceb5b060c6aef1816bf688c2965d2cdb7cc7cd0c3032de1cb2a65460fd1fa6 SHA512 e7bed040d05f4797f5058b064a698357fecb821259fc1a851232026ada9e5964f464051689a7d0e25a8a2c873ebe31921f52aa9d37238955aaa971a10ac80a23 -EBUILD oauth2client-4.1.3-r3.ebuild 2344 BLAKE2B acc20be847650feda07a3ad875f5a2258a17206d758be2a9af891ce1536ce658592b2d610b82ad130ff6b404f98b04daed1deaad3754515f1fb96fa1d92b6450 SHA512 3a09c679a548f994c083c50483d675a738fd36273dce282fec784f39f83f6e78659bce66b54c63b8a1888eceb1c5f526dd49cc95bf47720bc578951b324a681c -MISC metadata.xml 403 BLAKE2B 53ea3fd7507fa9760d7af00c61e4598779e775fd3ab7e498908aa39f3472dff0cdd8246d7c2e7b62ebbfbf01c7ed9c1725dbb276e8685cb46ea77bcc2c02f9d2 SHA512 1cdf21510872f686912e699627a0252119ca25a3198183d74608a12e07bf14538398794e235ccdfdec06e1aafc52cbb693748bfde50855c083a59e3f1ada3870 diff --git a/dev-python/oauth2client/files/oauth2client-4.1.3-py38.patch b/dev-python/oauth2client/files/oauth2client-4.1.3-py38.patch deleted file mode 100644 index d0898c02036a..000000000000 --- a/dev-python/oauth2client/files/oauth2client-4.1.3-py38.patch +++ /dev/null @@ -1,35 +0,0 @@ -diff --git a/oauth2client/contrib/xsrfutil.py b/oauth2client/contrib/xsrfutil.py -index 7c3ec03..20f35c9 100644 ---- a/oauth2client/contrib/xsrfutil.py -+++ b/oauth2client/contrib/xsrfutil.py -@@ -44,7 +44,7 @@ def generate_token(key, user_id, action_id='', when=None): - Returns: - A string XSRF protection token. - """ -- digester = hmac.new(_helpers._to_bytes(key, encoding='utf-8')) -+ digester = hmac.new(_helpers._to_bytes(key, encoding='utf-8'), digestmod='MD5') - digester.update(_helpers._to_bytes(str(user_id), encoding='utf-8')) - digester.update(DELIMITER) - digester.update(_helpers._to_bytes(action_id, encoding='utf-8')) -diff --git a/tests/contrib/test_xsrfutil.py b/tests/contrib/test_xsrfutil.py -index 3115827..deae568 100644 ---- a/tests/contrib/test_xsrfutil.py -+++ b/tests/contrib/test_xsrfutil.py -@@ -54,7 +54,7 @@ class Test_generate_token(unittest.TestCase): - TEST_USER_ID_1, - action_id=TEST_ACTION_ID_1, - when=TEST_TIME) -- hmac.new.assert_called_once_with(TEST_KEY) -+ hmac.new.assert_called_once_with(TEST_KEY, digestmod='MD5') - digester.digest.assert_called_once_with() - - expected_digest_calls = [ -@@ -87,7 +87,7 @@ class Test_generate_token(unittest.TestCase): - TEST_USER_ID_1, - action_id=TEST_ACTION_ID_1) - -- hmac.new.assert_called_once_with(TEST_KEY) -+ hmac.new.assert_called_once_with(TEST_KEY, digestmod='MD5') - time.time.assert_called_once_with() - digester.digest.assert_called_once_with() - diff --git a/dev-python/oauth2client/metadata.xml b/dev-python/oauth2client/metadata.xml deleted file mode 100644 index 465b9dc1a08f..000000000000 --- a/dev-python/oauth2client/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - python@gentoo.org - Python - - - - googleapis/oauth2client - oauth2client - - diff --git a/dev-python/oauth2client/oauth2client-4.1.3-r2.ebuild b/dev-python/oauth2client/oauth2client-4.1.3-r2.ebuild deleted file mode 100644 index f17e9279839b..000000000000 --- a/dev-python/oauth2client/oauth2client-4.1.3-r2.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..10} ) - -inherit distutils-r1 - -DESCRIPTION="Library for accessing resources protected by OAuth 2.0" -HOMEPAGE="https://github.com/googleapis/oauth2client" -SRC_URI="https://github.com/googleapis/oauth2client/archive/v${PV/_p/-post}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}"/${P/_p/-post} - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~x86-linux" - -RDEPEND=" - >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}] - >=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}] - >=dev-python/pyasn1-modules-0.0.5[${PYTHON_USEDEP}] - >=dev-python/rsa-3.1.4[${PYTHON_USEDEP}] - >=dev-python/six-1.6.1[${PYTHON_USEDEP}] - dev-python/keyring[${PYTHON_USEDEP}] - !<=dev-python/google-api-python-client-1.1[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/flask[${PYTHON_USEDEP}] - dev-python/sqlalchemy[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests nose - -PATCHES=( - "${FILESDIR}/oauth2client-4.1.3-py38.patch" -) - -python_test() { - nosetests -v \ - -e appengine \ - -e django_util \ - -e test_multiprocess_file_storage \ - -e test_bad_positional || die "tests fail with ${EPYTHON}" - # appengine - requires appengine - # django_util - requires django - # test_multiprocess_file_storage - requires fasteners - # test_bad_positional - expects TypeError, gets ValueError -} diff --git a/dev-python/oauth2client/oauth2client-4.1.3-r3.ebuild b/dev-python/oauth2client/oauth2client-4.1.3-r3.ebuild deleted file mode 100644 index fd404d1b6b8e..000000000000 --- a/dev-python/oauth2client/oauth2client-4.1.3-r3.ebuild +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) - -inherit distutils-r1 - -DESCRIPTION="Library for accessing resources protected by OAuth 2.0" -HOMEPAGE="https://github.com/googleapis/oauth2client" -SRC_URI=" - https://github.com/googleapis/oauth2client/archive/v${PV/_p/-post}.tar.gz -> ${P}.tar.gz - https://dev.gentoo.org/~robbat2/distfiles/oauth2client-4.1.3-fixes-20230207.patch - " -S="${WORKDIR}"/${P/_p/-post} - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" - -# This package supports 3 different crypto options, but tests ALL of them -CRYPTO_A=">=dev-python/pycryptodome-2.6[${PYTHON_USEDEP}]" -CRYPTO_B="dev-python/pyopenssl[${PYTHON_USEDEP}]" -CRYPTO_C="( - >=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}] - >=dev-python/pyasn1-modules-0.0.5[${PYTHON_USEDEP}] - >=dev-python/rsa-3.1.4[${PYTHON_USEDEP}] - )" - -RDEPEND=" - >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}] - >=dev-python/six-1.6.1[${PYTHON_USEDEP}] - || ( ${CRYPTO_A} ${CRYPTO_B} ${CRYPTO_C} ) - dev-python/keyring[${PYTHON_USEDEP}] - !<=dev-python/google-api-python-client-1.1[${PYTHON_USEDEP}] -" - -# Not well-tested upstream, and broken: -# django dev-python/django[${PYTHON_USEDEP}] -# flask dev-python/flask[${PYTHON_USEDEP}] -BDEPEND=" - test? ( - dev-python/mock[${PYTHON_USEDEP}] - dev-python/sqlalchemy[${PYTHON_USEDEP}] - dev-python/fasteners[${PYTHON_USEDEP}] - ${CRYPTO_A} - ${CRYPTO_B} - ${CRYPTO_C} - ) -" - -distutils_enable_tests pytest - -PATCHES=( - "${DISTDIR}/oauth2client-4.1.3-fixes-20230207.patch" -) - -src_prepare() { - default - # These contrib modules are broken upstream: - REMOVE=( - # django - "${S}"/oauth2client/contrib/django_util/ - "${S}"/samples/django/ - "${S}"/tests/contrib/django_util/ - "${S}"/docs/source/oauth2client.contrib.django* - # flask - "${S}"/docs/source/oauth2client.contrib.flask_util.rst - "${S}"/oauth2client/contrib/flask_util.py - "${S}"/tests/contrib/test_flask_util.py - ) - rm -rf "${REMOVE[@]}" -} - -python_test() { - TEST_ARGS=( - # appengine - requires appengine - # django_util - requires django, contrib module broken upstream - # flash - requires flask, contrib module broken upstream - --ignore-glob='*appengine*' - ) - epytest "${TEST_ARGS[@]}" || die "tests fail with ${EPYTHON}" -} -- cgit v1.2.3