Pin prompt-toolkit version (#5288)

* Update pyproject.toml

* Create pin-ptk.rst

* chore: strip whitespace

---------

Co-authored-by: Gil Forsyth <gil@forsyth.dev>
This commit is contained in:
Andy Kipp 2024-02-25 00:42:50 +01:00 committed by GitHub
parent e95a8099af
commit 7a915113f6
Failed to generate hash of commit
3 changed files with 28 additions and 5 deletions

View file

@ -1,11 +1,11 @@
<!--- <!---
Thanks for opening a PR on xonsh! Thanks for opening a PR on xonsh!
Please do this: Please do this:
1. Include a news file with your PR (https://xon.sh/devguide.html#changelog). 1. Include a news file with your PR (https://xon.sh/devguide.html#changelog).
2. Add the documentation for your feature into `/docs`. 2. Add the documentation for your feature into `/docs`.
3. Add the example of usage or before-after behavior. 3. Add the example of usage or before-after behavior.
4. Mention the issue that this PR is addressing e.g. `#1234`. 4. Mention the issue that this PR is addressing e.g. `#1234`.

23
news/pin-ptk.rst Normal file
View file

@ -0,0 +1,23 @@
**Added:**
* <news item>
**Changed:**
* Pinned prompt-toolkit version 3.0.29-3.0.40 to workaround upstream issue. More info in issue 5241.
**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] [project.optional-dependencies]
ptk = [ ptk = [
"prompt-toolkit>=3.0.29", "prompt-toolkit>=3.0.29,<3.0.41",
"pyperclip", "pyperclip",
] ]
pygments = ["pygments>=2.2"] pygments = ["pygments>=2.2"]
@ -110,7 +110,7 @@ test = [
"pytest-timeout", "pytest-timeout",
"pytest-subprocess", "pytest-subprocess",
"pytest-rerunfailures", "pytest-rerunfailures",
"prompt-toolkit>=3.0.29", "prompt-toolkit>=3.0.29,<3.0.41",
"pygments>=2.2", "pygments>=2.2",
"coverage>=5.3.1", "coverage>=5.3.1",
"pyte>=0.8.0", "pyte>=0.8.0",