Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] python3-ipython: fix sagemath prompt
@ 2023-12-26 21:44 tornaria
  2023-12-26 21:51 ` [PR PATCH] [Merged]: " ahesford
  0 siblings, 1 reply; 2+ messages in thread
From: tornaria @ 2023-12-26 21:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1406 bytes --]

There is a new pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages ipython
https://github.com/void-linux/void-packages/pull/47913

python3-ipython: fix sagemath prompt
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

@ahesford nasty bug in ipython that makes (interactive) sagemath unusable.

See: https://github.com/ipython/ipython/pull/14223#issuecomment-1869776898

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/47913.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ipython-47913.patch --]
[-- Type: text/x-diff, Size: 1938 bytes --]

From f1c15ac4ea33b34bc2bd5cffb105e5e5283c151a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Tue, 26 Dec 2023 18:25:21 -0300
Subject: [PATCH] python3-ipython: fix sagemath prompt

---
 .../patches/fix-sagemath-prompt.patch             | 15 +++++++++++++++
 srcpkgs/python3-ipython/template                  |  2 +-
 2 files changed, 16 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/python3-ipython/patches/fix-sagemath-prompt.patch

diff --git a/srcpkgs/python3-ipython/patches/fix-sagemath-prompt.patch b/srcpkgs/python3-ipython/patches/fix-sagemath-prompt.patch
new file mode 100644
index 0000000000000..5b7089156ac60
--- /dev/null
+++ b/srcpkgs/python3-ipython/patches/fix-sagemath-prompt.patch
@@ -0,0 +1,15 @@
+See: https://github.com/ipython/ipython/pull/14223#issuecomment-1869776898
+
+diff --git a/IPython/terminal/interactiveshell.py b/IPython/terminal/interactiveshell.py
+index 532287f5e..d92d6b7b2 100644
+--- a/IPython/terminal/interactiveshell.py
++++ b/IPython/terminal/interactiveshell.py
+@@ -764,7 +764,7 @@ def get_message():
+             "message": get_message,
+             "prompt_continuation": (
+                 lambda width, lineno, is_soft_wrap: PygmentsTokens(
+-                    self.prompts.continuation_prompt_tokens(width, lineno=lineno)
++                    self.prompts.continuation_prompt_tokens(width)
+                 )
+             ),
+             "multiline": True,
diff --git a/srcpkgs/python3-ipython/template b/srcpkgs/python3-ipython/template
index 038128536d5eb..5719ae4a9a717 100644
--- a/srcpkgs/python3-ipython/template
+++ b/srcpkgs/python3-ipython/template
@@ -1,7 +1,7 @@
 # Template file for 'python3-ipython'
 pkgname=python3-ipython
 version=8.19.0
-revision=1
+revision=2
 build_style=python3-pep517
 hostmakedepends="python3-setuptools python3-wheel"
 depends="python3-jedi python3-decorator python3-pickleshare

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: python3-ipython: fix sagemath prompt
  2023-12-26 21:44 [PR PATCH] python3-ipython: fix sagemath prompt tornaria
@ 2023-12-26 21:51 ` ahesford
  0 siblings, 0 replies; 2+ messages in thread
From: ahesford @ 2023-12-26 21:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1253 bytes --]

There's a merged pull request on the void-packages repository

python3-ipython: fix sagemath prompt
https://github.com/void-linux/void-packages/pull/47913

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

@ahesford nasty bug in ipython that makes (interactive) sagemath unusable.

See: https://github.com/ipython/ipython/pull/14223#issuecomment-1869776898

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-26 21:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-26 21:44 [PR PATCH] python3-ipython: fix sagemath prompt tornaria
2023-12-26 21:51 ` [PR PATCH] [Merged]: " ahesford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).