From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 36DF8138350 for ; Tue, 31 Mar 2020 20:07:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7C3B4E09DC; Tue, 31 Mar 2020 20:07:42 +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 58B77E09DC for ; Tue, 31 Mar 2020 20:07:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 D6A1034F41B for ; Tue, 31 Mar 2020 20:07:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B329A198 for ; Tue, 31 Mar 2020 20:07:37 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1585684634.41f57b145a777f4f247b1ad541f663d50c081a0a.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/aiohttp-cors/files/, dev-python/aiohttp-cors/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-py3_7.patch X-VCS-Directories: dev-python/aiohttp-cors/ dev-python/aiohttp-cors/files/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 41f57b145a777f4f247b1ad541f663d50c081a0a X-VCS-Branch: dev Date: Tue, 31 Mar 2020 20:07:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f24ce464-093c-42b8-a74e-1664923e4127 X-Archives-Hash: c9f1ff5d04dc8206d68d541b8e9ebc4e Message-ID: <20200331200737.AvM9Xr3apTZq9EwYDiNRWqiGWyvfLpWuLHs_KGEXBjQ@z> commit: 41f57b145a777f4f247b1ad541f663d50c081a0a Author: Andrew Ammerlaan riseup net> AuthorDate: Tue Mar 31 19:57:14 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Tue Mar 31 19:57:14 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=41f57b14 dev-python/aiohttp-cors: add patch for py3_7 https://github.com/aio-libs/aiohttp-cors/pull/278 Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan riseup.net> dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild | 7 ++++--- .../files/aiohttp-cors-0.7.0-py3_7.patch | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild b/dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild index bcc2930..4e87a24 100644 --- a/dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild +++ b/dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild @@ -3,14 +3,13 @@ EAPI=7 -PYTHON_COMPAT=( python3_6 ) +PYTHON_COMPAT=( python3_{6,7} ) inherit distutils-r1 DESCRIPTION="Implements CORS support for aiohttp asyncio-powered asynchronous HTTP server" HOMEPAGE="https://github.com/aio-libs/aiohttp-cors" SRC_URI="https://github.com/aio-libs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" -EGIT_REPO_URI="https://github.com/aio-libs/aiohttp-cors" LICENSE="Apache-2.0" SLOT="0" @@ -25,8 +24,10 @@ BDEPEND=" distutils_enable_tests pytest +# https://github.com/aio-libs/aiohttp-cors/pull/278 PATCHES=( - "${FILESDIR}"/aiohttp-cors-0.7.0-tests.patch + "${FILESDIR}/${P}-tests.patch" + "${FILESDIR}/${P}-py3_7.patch" ) src_prepare() { diff --git a/dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-py3_7.patch b/dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-py3_7.patch new file mode 100644 index 0000000..e09119c --- /dev/null +++ b/dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-py3_7.patch @@ -0,0 +1,22 @@ +From e64b95848f3253157d831f4934841fceeaf9b2e3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= +Date: Thu, 14 Nov 2019 12:54:47 +0100 +Subject: [PATCH] Test instance type by isinstance, not issubclass + +Fixes https://github.com/aio-libs/aiohttp-cors/issues/277 +--- + tests/unit/test_cors_config.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/unit/test_cors_config.py b/tests/unit/test_cors_config.py +index 817410e..d494e20 100644 +--- a/tests/unit/test_cors_config.py ++++ b/tests/unit/test_cors_config.py +@@ -103,7 +103,7 @@ def test_static_resource(app, cors): + "/file", "/", name="dynamic_named_route") + assert len(app.router.keys()) == 1 + for resource in list(app.router.resources()): +- if issubclass(resource, web.StaticResource): ++ if isinstance(resource, web.StaticResource): + cors.add(resource) + assert len(app.router.keys()) == 1