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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B9629158010 for ; Fri, 27 Jan 2023 15:47:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B0E54E0BFD; Fri, 27 Jan 2023 15:47:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 98442E0BFD for ; Fri, 27 Jan 2023 15:47:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7BC173410F3 for ; Fri, 27 Jan 2023 15:47:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 77B5E828 for ; Fri, 27 Jan 2023 15:47:27 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1674834439.28ce4d68f16bd0961c95e0bfa1b0cedae084169d.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/urwid/files/, dev-python/urwid/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/urwid/files/urwid-2.1.2-fix-py3.11.patch dev-python/urwid/urwid-2.1.2-r1.ebuild X-VCS-Directories: dev-python/urwid/files/ dev-python/urwid/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 28ce4d68f16bd0961c95e0bfa1b0cedae084169d X-VCS-Branch: master Date: Fri, 27 Jan 2023 15:47:27 +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: a1a195d9-8da5-42fa-be7c-82b47a22bc73 X-Archives-Hash: 82ac42e3e70aace1bc377aa78e6c54ba commit: 28ce4d68f16bd0961c95e0bfa1b0cedae084169d Author: Arthur Zamarin gentoo org> AuthorDate: Fri Jan 27 13:37:56 2023 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Jan 27 15:47:19 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28ce4d68 dev-python/urwid: enable py3.11 Signed-off-by: Arthur Zamarin gentoo.org> .../urwid/files/urwid-2.1.2-fix-py3.11.patch | 26 ++++++++++++++++++++++ dev-python/urwid/urwid-2.1.2-r1.ebuild | 7 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/dev-python/urwid/files/urwid-2.1.2-fix-py3.11.patch b/dev-python/urwid/files/urwid-2.1.2-fix-py3.11.patch new file mode 100644 index 000000000000..dd60b8a220b9 --- /dev/null +++ b/dev-python/urwid/files/urwid-2.1.2-fix-py3.11.patch @@ -0,0 +1,26 @@ +https://github.com/urwid/urwid/pull/517 +From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= +Date: Fri, 20 Jan 2023 11:37:15 -0800 +Subject: [PATCH] make tests compatible with Python 3.11 + +--- a/urwid/tests/test_event_loops.py ++++ b/urwid/tests/test_event_loops.py +@@ -201,15 +201,14 @@ def test_error(self): + evl.alarm(0.5, lambda: 1 / 0) # Simulate error in event loop + self.assertRaises(ZeroDivisionError, evl.run) + +- def test_coroutine_error(self): ++ async def test_coroutine_error(self): + evl = self.evl + +- @asyncio.coroutine +- def error_coro(): ++ async def error_coro(): + result = 1 / 0 # Simulate error in coroutine + yield result + +- asyncio.ensure_future(error_coro()) ++ asyncio.ensure_future(await error_coro()) + self.assertRaises(ZeroDivisionError, evl.run) + + diff --git a/dev-python/urwid/urwid-2.1.2-r1.ebuild b/dev-python/urwid/urwid-2.1.2-r1.ebuild index 9914a472ab5f..b0934f8622e6 100644 --- a/dev-python/urwid/urwid-2.1.2-r1.ebuild +++ b/dev-python/urwid/urwid-2.1.2-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..10} ) +PYTHON_COMPAT=( python3_{9..11} ) PYTHON_REQ_USE="ncurses" inherit distutils-r1 optfeature @@ -24,6 +24,11 @@ IUSE="examples" distutils_enable_sphinx docs distutils_enable_tests setup.py +PATCHES=( + # https://github.com/urwid/urwid/pull/517 + "${FILESDIR}/${P}-fix-py3.11.patch" +) + src_prepare() { # optional tests broken by modern tornado versions sed -e 's:import tornado:&_broken:' \