From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1176310-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A68951382C5 for <garchives@archives.gentoo.org>; Tue, 2 Jun 2020 04:28:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 467BCE08D3; Tue, 2 Jun 2020 04:28:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C2E7AE08D1 for <gentoo-commits@lists.gentoo.org>; Tue, 2 Jun 2020 04:28:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D03E34F10B for <gentoo-commits@lists.gentoo.org>; Tue, 2 Jun 2020 04:28:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9396D285 for <gentoo-commits@lists.gentoo.org>; Tue, 2 Jun 2020 04:28:20 +0000 (UTC) From: "Aaron Bauman" <bman@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aaron Bauman" <bman@gentoo.org> Message-ID: <1591072079.8a66610eee41905f10fb132dac8982249d055791.bman@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/google-apitools/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/google-apitools/files/google-apitools-0.5.30-abc.patch dev-python/google-apitools/files/google-apitools-0.5.30-skip-enum-test-on-new-python.patch X-VCS-Directories: dev-python/google-apitools/files/ X-VCS-Committer: bman X-VCS-Committer-Name: Aaron Bauman X-VCS-Revision: 8a66610eee41905f10fb132dac8982249d055791 X-VCS-Branch: master Date: Tue, 2 Jun 2020 04:28:20 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ceef8e24-0659-4158-b6c4-14aa4f86e786 X-Archives-Hash: 5d2a646f91fd420dc5c550c00e3b88fe commit: 8a66610eee41905f10fb132dac8982249d055791 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> AuthorDate: Tue May 19 19:19:35 2020 +0000 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> CommitDate: Tue Jun 2 04:27:59 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a66610e dev-python/google-apitools: remove unused patches Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> .../files/google-apitools-0.5.30-abc.patch | 81 ---------------------- ...tools-0.5.30-skip-enum-test-on-new-python.patch | 21 ------ 2 files changed, 102 deletions(-) diff --git a/dev-python/google-apitools/files/google-apitools-0.5.30-abc.patch b/dev-python/google-apitools/files/google-apitools-0.5.30-abc.patch deleted file mode 100644 index 32f61a3d889..00000000000 --- a/dev-python/google-apitools/files/google-apitools-0.5.30-abc.patch +++ /dev/null @@ -1,81 +0,0 @@ -commit cfefe5a8322b40c6e7bd3cc794fd644edcc3a6d6 -Author: Karthikeyan Singaravelan <tir.karthi@gmail.com> -Date: Mon Jan 27 20:21:15 2020 +0530 - - Import ABC from collections.abc instead of collections for Python 3.9 compatibility. (#286) - -diff --git a/apitools/base/py/extra_types.py b/apitools/base/py/extra_types.py -index 847dc91..e40a785 100644 ---- a/apitools/base/py/extra_types.py -+++ b/apitools/base/py/extra_types.py -@@ -16,7 +16,6 @@ - - """Extra types understood by apitools.""" - --import collections - import datetime - import json - import numbers -@@ -30,6 +29,11 @@ from apitools.base.py import encoding_helper as encoding - from apitools.base.py import exceptions - from apitools.base.py import util - -+if six.PY3: -+ from collections.abc import Iterable -+else: -+ from collections import Iterable -+ - __all__ = [ - 'DateField', - 'DateTimeMessage', -@@ -129,7 +133,7 @@ def _PythonValueToJsonValue(py_value): - return JsonValue(double_value=float(py_value)) - if isinstance(py_value, dict): - return JsonValue(object_value=_PythonValueToJsonObject(py_value)) -- if isinstance(py_value, collections.Iterable): -+ if isinstance(py_value, Iterable): - return JsonValue(array_value=_PythonValueToJsonArray(py_value)) - raise exceptions.InvalidDataError( - 'Cannot convert "%s" to JsonValue' % py_value) -@@ -212,7 +216,7 @@ def _JsonProtoToPythonValue(json_proto): - def _PythonValueToJsonProto(py_value): - if isinstance(py_value, dict): - return _PythonValueToJsonObject(py_value) -- if (isinstance(py_value, collections.Iterable) and -+ if (isinstance(py_value, Iterable) and - not isinstance(py_value, six.string_types)): - return _PythonValueToJsonArray(py_value) - return _PythonValueToJsonValue(py_value) -diff --git a/apitools/base/py/util.py b/apitools/base/py/util.py -index ac1a44c..ad086e4 100644 ---- a/apitools/base/py/util.py -+++ b/apitools/base/py/util.py -@@ -16,7 +16,6 @@ - - """Assorted utilities shared between parts of apitools.""" - --import collections - import os - import random - -@@ -30,6 +29,11 @@ from apitools.base.protorpclite import messages - from apitools.base.py import encoding_helper as encoding - from apitools.base.py import exceptions - -+if six.PY3: -+ from collections.abc import Iterable -+else: -+ from collections import Iterable -+ - __all__ = [ - 'DetectGae', - 'DetectGce', -@@ -78,7 +82,7 @@ def NormalizeScopes(scope_spec): - if isinstance(scope_spec, six.string_types): - scope_spec = six.ensure_str(scope_spec) - return set(scope_spec.split(' ')) -- elif isinstance(scope_spec, collections.Iterable): -+ elif isinstance(scope_spec, Iterable): - scope_spec = [six.ensure_str(x) for x in scope_spec] - return set(scope_spec) - raise exceptions.TypecheckError( diff --git a/dev-python/google-apitools/files/google-apitools-0.5.30-skip-enum-test-on-new-python.patch b/dev-python/google-apitools/files/google-apitools-0.5.30-skip-enum-test-on-new-python.patch deleted file mode 100644 index 6003db87a97..00000000000 --- a/dev-python/google-apitools/files/google-apitools-0.5.30-skip-enum-test-on-new-python.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/apitools/base/protorpclite/descriptor_test.py b/apitools/base/protorpclite/descriptor_test.py -index fc27ec4..d518e24 100644 ---- a/apitools/base/protorpclite/descriptor_test.py -+++ b/apitools/base/protorpclite/descriptor_test.py -@@ -16,6 +16,7 @@ - # - - """Tests for apitools.base.protorpclite.descriptor.""" -+import sys - import platform - import types - -@@ -78,7 +79,7 @@ class DescribeEnumTest(test_util.TestCase): - described.check_initialized() - self.assertEquals(expected, described) - -- @unittest2.skipIf('PyPy' in platform.python_implementation(), -+ @unittest2.skipIf('PyPy' in platform.python_implementation() or sys.hexversion >= 0x03060000, - 'todo: reenable this') - def testEnumWithItems(self): - class EnumWithItems(messages.Enum):