mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
python3-prompt_toolkit: update to 3.0.43.
This commit is contained in:
parent
b895e6469c
commit
340801eb73
3 changed files with 3 additions and 96 deletions
|
@ -1,23 +0,0 @@
|
||||||
From 55a45b1d19330a939d5df5a33671c10d52e11477 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
|
|
||||||
Date: Mon, 27 Nov 2023 11:10:21 -0300
|
|
||||||
Subject: [PATCH] Disable workaround for ipython >= 8.18
|
|
||||||
|
|
||||||
---
|
|
||||||
src/prompt_toolkit/application/application.py | 3 ++-
|
|
||||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/prompt_toolkit/application/application.py b/src/prompt_toolkit/application/application.py
|
|
||||||
index 726fc0a06..c07ea4e94 100644
|
|
||||||
--- a/src/prompt_toolkit/application/application.py
|
|
||||||
+++ b/src/prompt_toolkit/application/application.py
|
|
||||||
@@ -960,7 +960,8 @@ def run_in_thread() -> None:
|
|
||||||
def _called_from_ipython() -> bool:
|
|
||||||
try:
|
|
||||||
return (
|
|
||||||
- "IPython/terminal/interactiveshell.py"
|
|
||||||
+ sys.modules["IPython"].version_info < (8, 18, 0, "")
|
|
||||||
+ and "IPython/terminal/interactiveshell.py"
|
|
||||||
in sys._getframe(3).f_code.co_filename
|
|
||||||
)
|
|
||||||
except BaseException:
|
|
|
@ -1,70 +0,0 @@
|
||||||
This makes handle_sigint default to False
|
|
||||||
|
|
||||||
See:
|
|
||||||
- https://github.com/void-linux/void-packages/issues/35712
|
|
||||||
- https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1576
|
|
||||||
- https://trac.sagemath.org/ticket/33360#comment:3
|
|
||||||
|
|
||||||
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,
|
|
||||||
- handle_sigint: bool = True,
|
|
||||||
+ handle_sigint: bool = False,
|
|
||||||
slow_callback_duration: float = 0.5,
|
|
||||||
) -> _AppResult:
|
|
||||||
"""
|
|
||||||
@@ -858,7 +858,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,
|
|
||||||
) -> _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:
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python3-prompt_toolkit'
|
# Template file for 'python3-prompt_toolkit'
|
||||||
pkgname=python3-prompt_toolkit
|
pkgname=python3-prompt_toolkit
|
||||||
version=3.0.41
|
version=3.0.43
|
||||||
revision=2
|
revision=1
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
hostmakedepends="python3-setuptools"
|
hostmakedepends="python3-setuptools"
|
||||||
depends="python3-wcwidth"
|
depends="python3-wcwidth"
|
||||||
|
@ -12,7 +12,7 @@ license="BSD-3-Clause"
|
||||||
homepage="https://github.com/prompt-toolkit/python-prompt-toolkit"
|
homepage="https://github.com/prompt-toolkit/python-prompt-toolkit"
|
||||||
changelog="https://raw.githubusercontent.com/prompt-toolkit/python-prompt-toolkit/master/CHANGELOG"
|
changelog="https://raw.githubusercontent.com/prompt-toolkit/python-prompt-toolkit/master/CHANGELOG"
|
||||||
distfiles="${PYPI_SITE}/p/prompt_toolkit/prompt_toolkit-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/prompt_toolkit/prompt_toolkit-${version}.tar.gz"
|
||||||
checksum=941367d97fc815548822aa26c2a269fdc4eb21e9ec05fc5d447cf09bad5d75f0
|
checksum=3527b7af26106cbc65a040bcc84839a3566ec1b051bb0bfe953631e704b0ff7d
|
||||||
conflicts="python3-prompt_toolkit2<=2.0.9_4"
|
conflicts="python3-prompt_toolkit2<=2.0.9_4"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue