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 096211382C5 for ; Sat, 30 May 2020 07:12:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DF94EE08DC; Sat, 30 May 2020 07:12:18 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 A55BCE08DC for ; Sat, 30 May 2020 07:12:18 +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 0DEB334E1FD for ; Sat, 30 May 2020 07:12:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 715D0270 for ; Sat, 30 May 2020 07:12:14 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1590822726.4b3dc2328e3f321e94050640875505ab66cd9d7c.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/snakeoil/, dev-python/snakeoil/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/snakeoil/files/snakeoil-0.8.8-py39.patch dev-python/snakeoil/snakeoil-0.8.8.ebuild dev-python/snakeoil/snakeoil-9999.ebuild X-VCS-Directories: dev-python/snakeoil/files/ dev-python/snakeoil/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 4b3dc2328e3f321e94050640875505ab66cd9d7c X-VCS-Branch: master Date: Sat, 30 May 2020 07:12:14 +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: 4c7fc6bf-7bce-4899-bbfd-f3ab34b88160 X-Archives-Hash: 2ea40a44fd50fa6f010e8cd24db11dc6 commit: 4b3dc2328e3f321e94050640875505ab66cd9d7c Author: Michał Górny gentoo org> AuthorDate: Sat May 30 06:44:25 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat May 30 07:12:06 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b3dc232 dev-python/snakeoil: Port to py39 Signed-off-by: Michał Górny gentoo.org> .../snakeoil/files/snakeoil-0.8.8-py39.patch | 28 ++++++++++++++++++++++ dev-python/snakeoil/snakeoil-0.8.8.ebuild | 6 ++++- dev-python/snakeoil/snakeoil-9999.ebuild | 2 +- 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/dev-python/snakeoil/files/snakeoil-0.8.8-py39.patch b/dev-python/snakeoil/files/snakeoil-0.8.8-py39.patch new file mode 100644 index 00000000000..dbda88bd588 --- /dev/null +++ b/dev-python/snakeoil/files/snakeoil-0.8.8-py39.patch @@ -0,0 +1,28 @@ +From eeb1f45216eced42b386d6ea65eadc49798c7174 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= +Date: Thu, 28 May 2020 14:00:34 +0200 +Subject: [PATCH] test_obj: Ignore __class_getitem__ + +Ignore __class_getitem__ special that was added to some stdlib objects +in Python 3.9. It is used as part of type declarations. +--- + tests/module/test_obj.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/tests/module/test_obj.py b/tests/module/test_obj.py +index 03b100c..43c5c47 100644 +--- a/tests/module/test_obj.py ++++ b/tests/module/test_obj.py +@@ -23,7 +23,8 @@ class TestDelayedInstantiation: + def assertKls(cls, ignores=(), + default_ignores=("__new__", "__init__", "__init_subclass__", + "__getattribute__", "__class__", +- "__getnewargs__", "__doc__")): ++ "__getnewargs__", "__doc__", ++ "__class_getitem__")): + required = set(x for x in dir(cls) + if x.startswith("__") and x.endswith("__")) + missing = required.difference(obj.kls_descriptors) +-- +2.26.2 + diff --git a/dev-python/snakeoil/snakeoil-0.8.8.ebuild b/dev-python/snakeoil/snakeoil-0.8.8.ebuild index c762561aef9..72c91229bc3 100644 --- a/dev-python/snakeoil/snakeoil-0.8.8.ebuild +++ b/dev-python/snakeoil/snakeoil-0.8.8.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{6..9} ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1 @@ -27,6 +27,10 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] " [[ ${PV} == 9999 ]] && DEPEND+=" dev-python/cython[${PYTHON_USEDEP}]" +PATCHES=( + "${FILESDIR}"/${P}-py39.patch +) + python_test() { esetup.py test } diff --git a/dev-python/snakeoil/snakeoil-9999.ebuild b/dev-python/snakeoil/snakeoil-9999.ebuild index 1b7261487c4..68c9d150960 100644 --- a/dev-python/snakeoil/snakeoil-9999.ebuild +++ b/dev-python/snakeoil/snakeoil-9999.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{6..9} ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1