From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4E5FC1581EE for ; Tue, 25 Mar 2025 09:22:40 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 3BAC9343363 for ; Tue, 25 Mar 2025 09:22:40 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 4DC011104BB; Tue, 25 Mar 2025 09:22:13 +0000 (UTC) Received: from smtp.gentoo.org (mail.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)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 439491104BB for ; Tue, 25 Mar 2025 09:22:13 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DD2AF34334D for ; Tue, 25 Mar 2025 09:22:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E5A1D28B5 for ; Tue, 25 Mar 2025 09:22:08 +0000 (UTC) From: "Anna Vyalkova" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" Message-ID: <1742893406.11c0d2d42890b62c29fd628c9aba186ddf76f30e.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/questionary/, dev-python/questionary/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/questionary/Manifest dev-python/questionary/files/questionary-2.0.1-prompt-toolkit.patch dev-python/questionary/questionary-2.0.1.ebuild X-VCS-Directories: dev-python/questionary/files/ dev-python/questionary/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: 11c0d2d42890b62c29fd628c9aba186ddf76f30e X-VCS-Branch: dev Date: Tue, 25 Mar 2025 09:22:08 +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: 75dc084e-1b6f-4fb2-8b35-d2d427ce0933 X-Archives-Hash: eda5665c0357fdbae0fb964b5eab295a commit: 11c0d2d42890b62c29fd628c9aba186ddf76f30e Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Tue Mar 25 09:03:26 2025 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Tue Mar 25 09:03:26 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=11c0d2d4 dev-python/questionary: drop 2.0.1 Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> dev-python/questionary/Manifest | 1 - .../files/questionary-2.0.1-prompt-toolkit.patch | 64 ---------------------- dev-python/questionary/questionary-2.0.1.ebuild | 31 ----------- 3 files changed, 96 deletions(-) diff --git a/dev-python/questionary/Manifest b/dev-python/questionary/Manifest index 82c0ac76a..05a2b53d9 100644 --- a/dev-python/questionary/Manifest +++ b/dev-python/questionary/Manifest @@ -1,2 +1 @@ -DIST questionary-2.0.1.gh.tar.gz 350585 BLAKE2B ec8b617e2fadf1ac23dac6a1b770916ac18a4874c7fbf7c5c9645626ae46848de815d118c8bcc2da54479525045fe50d6edf7f3fa743bbc91d14528a3f941e51 SHA512 366baacbb0b1a16317ea164baf55c09f29580a0a818d24ece2cf2fc2f3f34362707f570b2b54638c10cb8f1ad5fb008a30a02bc4b017fad0c2845d6f739453f1 DIST questionary-2.1.0.gh.tar.gz 354532 BLAKE2B 22f73572704758060044b663cc4875ad93ffdcde992e0e1c8fa02035dcc93cd6aa58a4fd1bb6dcfb79fdbc51051bf4a9d2c1e9de4fd9ff49ce93c7da2435fc0b SHA512 80e689164defd8025d4ce4bef787e861370b0335f126110b2a239efe07b83feacf1b6e6fc7f0d42a8410eac175289f1e6f88e2e369b656e312521daefe36d8de diff --git a/dev-python/questionary/files/questionary-2.0.1-prompt-toolkit.patch b/dev-python/questionary/files/questionary-2.0.1-prompt-toolkit.patch deleted file mode 100644 index 2978ceb72..000000000 --- a/dev-python/questionary/files/questionary-2.0.1-prompt-toolkit.patch +++ /dev/null @@ -1,64 +0,0 @@ -Try to support prompt_toolkit >3.0.37 - -Fixes: https://github.com/tmbo/questionary/issues/344 - ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -33,7 +33,7 @@ license = "MIT" - - [tool.poetry.dependencies] - python = ">=3.8" --prompt_toolkit = ">=2.0,<=3.0.36" # once https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1726 is fixed, this can be changed to ">=2.0,<4.0" -+prompt_toolkit = ">=2.0,<4.0" - - [tool.poetry.group.docs] - optional = true -diff --git a/tests/prompts/test_common.py b/tests/prompts/test_common.py -index d6ce51e..b6bbe1b 100644 ---- a/tests/prompts/test_common.py -+++ b/tests/prompts/test_common.py -@@ -1,8 +1,10 @@ -+import asyncio - from unittest.mock import Mock - from unittest.mock import call - - import pytest - from prompt_toolkit.document import Document -+from prompt_toolkit.input.defaults import create_pipe_input - from prompt_toolkit.output import DummyOutput - from prompt_toolkit.styles import Attrs - from prompt_toolkit.validation import ValidationError -@@ -13,7 +15,6 @@ from questionary.prompts import common - from questionary.prompts.common import InquirerControl - from questionary.prompts.common import build_validator - from questionary.prompts.common import print_formatted_text --from tests.utils import execute_with_input_pipe - from tests.utils import prompt_toolkit_version - - -@@ -72,7 +73,7 @@ def test_blank_line_fix(): - - ic = InquirerControl(["a", "b", "c"]) - -- def run(inp): -+ async def run(inp): - inp.send_text("") - layout = common.create_inquirer_layout( - ic, get_prompt_tokens, input=inp, output=DummyOutput() -@@ -86,7 +87,15 @@ def test_blank_line_fix(): - == 1000000000000000000000000000001 - ) - -- execute_with_input_pipe(run) -+ if prompt_toolkit_version < (3, 0, 29): -+ inp = create_pipe_input() -+ try: -+ return asyncio.run(run(inp)) -+ finally: -+ inp.close() -+ else: -+ with create_pipe_input() as inp: -+ asyncio.run(run(inp)) - - - def test_prompt_highlight_coexist(): diff --git a/dev-python/questionary/questionary-2.0.1.ebuild b/dev-python/questionary/questionary-2.0.1.ebuild deleted file mode 100644 index 8a05013f0..000000000 --- a/dev-python/questionary/questionary-2.0.1.ebuild +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{11..13} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="Python library to build pretty command line user prompts" -HOMEPAGE=" - https://pypi.org/project/questionary/ - https://github.com/tmbo/questionary -" -SRC_URI="https://github.com/tmbo/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND="dev-python/prompt-toolkit[${PYTHON_USEDEP}]" - -PATCHES=( "${FILESDIR}"/${PN}-2.0.1-prompt-toolkit.patch ) - -distutils_enable_tests pytest - -distutils_enable_sphinx docs \ - dev-python/sphinx-autodoc-typehints \ - dev-python/sphinx-copybutton \ - dev-python/sphinx-rtd-theme