Downgrade prompt-toolkit to >=3.0.29,<3.0.40 (#5403)

This downgrade continues previous (#5288). Found issue in prompt-toolkit
3.0.40 (#5393).

JFYI #5241

## For community
⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍
comment**

Co-authored-by: a <1@1.1>
This commit is contained in:
Andy Kipp 2024-05-09 15:13:03 +02:00 committed by GitHub
parent 4a2cfc6415
commit d2d13f028f
Failed to generate hash of commit
2 changed files with 26 additions and 3 deletions

23
news/downgrade_ptk.rst Normal file
View file

@ -0,0 +1,23 @@
**Added:**
* <news item>
**Changed:**
* Pinned prompt-toolkit version 3.0.29-3.0.39 to workaround upstream issue. More info in issue 5393.
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -83,7 +83,7 @@ changelog = "https://github.com/xonsh/xonsh/blob/main/CHANGELOG.rst"
[project.optional-dependencies]
ptk = [
"prompt-toolkit>=3.0.29,<3.0.41",
"prompt-toolkit>=3.0.29,<3.0.40",
"pyperclip",
]
pygments = ["pygments>=2.2"]
@ -98,7 +98,7 @@ full = [
"ujson",
]
bestshell = [
"prompt_toolkit>=3.0.29",
"prompt-toolkit>=3.0.29,<3.0.40",
"pygments>=2.2",
]
test = [
@ -110,7 +110,7 @@ test = [
"pytest-timeout",
"pytest-subprocess",
"pytest-rerunfailures",
"prompt-toolkit>=3.0.29,<3.0.41",
"prompt-toolkit>=3.0.29,<3.0.40",
"pygments>=2.2",
"coverage>=5.3.1",
"pyte>=0.8.0",