python3-prompt_toolkit: update to 3.0.29.

This commit is contained in:
Andrew J. Hesford 2022-04-06 11:45:56 -04:00
parent d33dc9b479
commit 2e2a3a9f8f
2 changed files with 50 additions and 7 deletions

View file

@ -5,9 +5,10 @@ See:
- https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1576
- https://trac.sagemath.org/ticket/33360#comment:3
--- a/prompt_toolkit/application/application.py 2022-02-11 05:06:37.000000000 -0300
+++ b/prompt_toolkit/application/application.py 2022-02-21 10:43:13.828058001 -0300
@@ -634,7 +634,7 @@
diff -ur a/src/prompt_toolkit/application/application.py b/src/prompt_toolkit/application/application.py
--- a/src/prompt_toolkit/application/application.py
+++ b/src/prompt_toolkit/application/application.py
@@ -633,7 +633,7 @@
self,
pre_run: Optional[Callable[[], None]] = None,
set_exception_handler: bool = True,
@ -16,7 +17,7 @@ See:
slow_callback_duration: float = 0.5,
) -> _AppResult:
"""
@@ -859,7 +859,7 @@
@@ -858,7 +858,7 @@
self,
pre_run: Optional[Callable[[], None]] = None,
set_exception_handler: bool = True,
@ -25,3 +26,45 @@ See:
in_thread: bool = False,
) -> _AppResult:
"""
diff -ur a/src/prompt_toolkit/application/dummy.py b/src/prompt_toolkit/application/dummy.py
--- a/src/prompt_toolkit/application/dummy.py
+++ b/src/prompt_toolkit/application/dummy.py
@@ -24,7 +24,7 @@
self,
pre_run: Optional[Callable[[], None]] = None,
set_exception_handler: bool = True,
- handle_sigint: bool = True,
+ handle_sigint: bool = False,
in_thread: bool = False,
) -> None:
raise NotImplementedError("A DummyApplication is not supposed to run.")
@@ -33,7 +33,7 @@
self,
pre_run: Optional[Callable[[], None]] = None,
set_exception_handler: bool = True,
- handle_sigint: bool = True,
+ handle_sigint: bool = False,
slow_callback_duration: float = 0.5,
) -> None:
raise NotImplementedError("A DummyApplication is not supposed to run.")
diff -ur a/src/prompt_toolkit/shortcuts/prompt.py b/src/prompt_toolkit/shortcuts/prompt.py
--- a/src/prompt_toolkit/shortcuts/prompt.py
+++ b/src/prompt_toolkit/shortcuts/prompt.py
@@ -900,7 +900,7 @@
accept_default: bool = False,
pre_run: Optional[Callable[[], None]] = None,
set_exception_handler: bool = True,
- handle_sigint: bool = True,
+ handle_sigint: bool = False,
in_thread: bool = False,
) -> _T:
"""
@@ -1135,7 +1135,7 @@
accept_default: bool = False,
pre_run: Optional[Callable[[], None]] = None,
set_exception_handler: bool = True,
- handle_sigint: bool = True,
+ handle_sigint: bool = False,
) -> _T:
if message is not None:

View file

@ -1,7 +1,7 @@
# Template file for 'python3-prompt_toolkit'
pkgname=python3-prompt_toolkit
version=3.0.28
revision=2
version=3.0.29
revision=1
wrksrc="prompt_toolkit-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
@ -13,7 +13,7 @@ license="BSD-3-Clause"
homepage="https://github.com/prompt-toolkit/python-prompt-toolkit"
changelog="https://raw.githubusercontent.com/prompt-toolkit/python-prompt-toolkit/master/CHANGELOG"
distfiles="${PYPI_SITE}/p/prompt_toolkit/prompt_toolkit-${version}.tar.gz"
checksum=9f1cd16b1e86c2968f2519d7fb31dd9d669916f515612c269d14e9ed52b51650
checksum=bd640f60e8cecd74f0dc249713d433ace2ddc62b65ee07f96d358e0b152b6ea7
conflicts="python3-prompt_toolkit2<=2.0.9_4"
post_install() {