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 2D015158086 for ; Fri, 29 Oct 2021 15:29:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 83FECE0830; Fri, 29 Oct 2021 15:29:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 580CDE0830 for ; Fri, 29 Oct 2021 15:29:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 5ED03343314 for ; Fri, 29 Oct 2021 15:29:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DF29615A for ; Fri, 29 Oct 2021 15:29:11 +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: <1635521342.9c8807e1f6459f64d22231021a6ddcf8495ded47.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/bpython/files/, dev-python/bpython/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/bpython/bpython-0.21.ebuild dev-python/bpython/files/bpython-0.21-fix-py3.10.patch X-VCS-Directories: dev-python/bpython/ dev-python/bpython/files/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 9c8807e1f6459f64d22231021a6ddcf8495ded47 X-VCS-Branch: master Date: Fri, 29 Oct 2021 15:29:11 +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: 736e22af-6146-4110-aeba-ad8421b1e5e0 X-Archives-Hash: fbecd8b92c3a7d9c937f03d83ca3ea88 commit: 9c8807e1f6459f64d22231021a6ddcf8495ded47 Author: Arthur Zamarin gentoo org> AuthorDate: Fri Oct 29 15:26:42 2021 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Oct 29 15:29:02 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c8807e1 dev-python/bpython: enable py3.10 Closes: https://bugs.gentoo.org/812305 Signed-off-by: Arthur Zamarin gentoo.org> dev-python/bpython/bpython-0.21.ebuild | 9 ++-- .../bpython/files/bpython-0.21-fix-py3.10.patch | 48 ++++++++++++++++++++++ 2 files changed, 53 insertions(+), 4 deletions(-) diff --git a/dev-python/bpython/bpython-0.21.ebuild b/dev-python/bpython/bpython-0.21.ebuild index b89b7316740..d815d918656 100644 --- a/dev-python/bpython/bpython-0.21.ebuild +++ b/dev-python/bpython/bpython-0.21.ebuild @@ -3,9 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..9} ) -DISTUTILS_USE_SETUPTOOLS=rdepend - +PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 DESCRIPTION="Syntax highlighting and autocompletion for the Python interpreter" @@ -34,7 +32,10 @@ BDEPEND=" DOCS=( AUTHORS.rst CHANGELOG.rst ) -PATCHES=( "${FILESDIR}"/${PN}-sphinx-4.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-sphinx-4.patch + "${FILESDIR}"/${P}-fix-py3.10.patch +) distutils_enable_sphinx doc/sphinx/source --no-autodoc distutils_enable_tests unittest diff --git a/dev-python/bpython/files/bpython-0.21-fix-py3.10.patch b/dev-python/bpython/files/bpython-0.21-fix-py3.10.patch new file mode 100644 index 00000000000..5b7c6376782 --- /dev/null +++ b/dev-python/bpython/files/bpython-0.21-fix-py3.10.patch @@ -0,0 +1,48 @@ +From 78ead4c83d7c47c35ab075dd08114f51c24a709d Mon Sep 17 00:00:00 2001 +From: Thomas Ballinger +Date: Wed, 6 Oct 2021 19:59:38 -0700 +Subject: [PATCH] Test Python 3.10 (#924) + +* Test Python 3.10 +* Update tests for Python 3.10 + +--- a/bpython/test/test_curtsies_painting.py ++++ b/bpython/test/test_curtsies_painting.py +@@ -139,6 +139,14 @@ def test_completion(self): + "└──────────────────────────────┘", + "Welcome to bpython! Press f", + ] ++ if sys.version_info[:2] < (3, 10) ++ else [ ++ ">>> an", ++ "┌──────────────────────────────┐", ++ "│ and anext( any( │", ++ "└──────────────────────────────┘", ++ "Welcome to bpython! Press f", ++ ] + ) + self.assert_paint_ignoring_formatting(screen, (0, 4)) + +--- a/bpython/test/test_interpreter.py ++++ b/bpython/test/test_interpreter.py +@@ -35,7 +35,19 @@ def test_syntaxerror(self): + + i.runsource("1.1.1.1") + +- if sys.version_info[:2] >= (3, 8): ++ if sys.version_info[:2] >= (3, 10): ++ expected = ( ++ " File " ++ + green('""') ++ + ", line " ++ + bold(magenta("1")) ++ + "\n 1.1.1.1\n ^^^^^\n" ++ + bold(red("SyntaxError")) ++ + ": " ++ + cyan("invalid syntax. Perhaps you forgot a comma?") ++ + "\n" ++ ) ++ elif (3, 8) <= sys.version_info[:2] <= (3, 9): + expected = ( + " File " + + green('""')