From 2e2a3a9f8fc85dda13000db9652708965cbdb121 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Wed, 6 Apr 2022 11:45:56 -0400 Subject: [PATCH] python3-prompt_toolkit: update to 3.0.29. --- .../patches/dont-handle-sigint.patch | 51 +++++++++++++++++-- srcpkgs/python3-prompt_toolkit/template | 6 +-- 2 files changed, 50 insertions(+), 7 deletions(-) diff --git a/srcpkgs/python3-prompt_toolkit/patches/dont-handle-sigint.patch b/srcpkgs/python3-prompt_toolkit/patches/dont-handle-sigint.patch index 60ce287a63d..4bcca9d1692 100644 --- a/srcpkgs/python3-prompt_toolkit/patches/dont-handle-sigint.patch +++ b/srcpkgs/python3-prompt_toolkit/patches/dont-handle-sigint.patch @@ -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: diff --git a/srcpkgs/python3-prompt_toolkit/template b/srcpkgs/python3-prompt_toolkit/template index 26bcb33e82b..27fdeb83dab 100644 --- a/srcpkgs/python3-prompt_toolkit/template +++ b/srcpkgs/python3-prompt_toolkit/template @@ -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() {