Skip to content

Commit 0e960c7

Browse files
authored
🔀 Merge pull request #60 from davep/bump-textual
Bump Textual to v3.1.0
2 parents 28b565a + 257c18e commit 0e960c7

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

Diff for: ChangeLog.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Peplum ChangeLog
22

3+
## Unreleased
4+
5+
**Released: WiP**
6+
7+
- Make Textual v3.1.0 the minimum required version, to take advantage of the
8+
fix for [#58](https://github.com/davep/peplum/issues/58).
9+
([#60](https://github.com/davep/peplum/pull/60))
10+
- Add a workaround for
11+
[textual#5742](https://github.com/Textualize/textual/issues/5742).
12+
([#60](https://github.com/davep/peplum/pull/60))
13+
314
## v0.6.0
415

516
**Released: 2025-04-09**

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [
77
]
88
dependencies = [
99
"httpx>=0.28.1",
10-
"textual>=3.0.1",
10+
"textual>=3.1.0",
1111
"xdg-base-dirs>=6.0.2",
1212
"typing-extensions>=4.12.2",
1313
"packaging>=24.2",

Diff for: requirements-dev.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ghp-import==2.1.0
5353
# via mkdocs
5454
h11==0.14.0
5555
# via httpcore
56-
httpcore==1.0.7
56+
httpcore==1.0.8
5757
# via httpx
5858
httpx==0.28.1
5959
# via peplum
@@ -75,7 +75,7 @@ jinja2==3.1.6
7575
# via textual-serve
7676
linkify-it-py==2.0.3
7777
# via markdown-it-py
78-
markdown==3.7
78+
markdown==3.8
7979
# via mkdocs
8080
# via mkdocs-material
8181
# via pymdown-extensions
@@ -103,7 +103,7 @@ mkdocs-material-extensions==1.3.1
103103
# via mkdocs-material
104104
msgpack==1.1.0
105105
# via textual-dev
106-
multidict==6.3.2
106+
multidict==6.4.3
107107
# via aiohttp
108108
# via yarl
109109
mypy==1.15.0
@@ -155,7 +155,7 @@ six==1.17.0
155155
# via python-dateutil
156156
sniffio==1.3.1
157157
# via anyio
158-
textual==3.0.1
158+
textual==3.1.0
159159
# via peplum
160160
# via textual-dev
161161
# via textual-enhanced
@@ -168,14 +168,14 @@ textual-fspicker==0.4.1
168168
# via peplum
169169
textual-serve==1.1.1
170170
# via textual-dev
171-
typing-extensions==4.13.1
171+
typing-extensions==4.13.2
172172
# via mypy
173173
# via peplum
174174
# via textual
175175
# via textual-dev
176176
uc-micro-py==1.0.3
177177
# via linkify-it-py
178-
urllib3==2.3.0
178+
urllib3==2.4.0
179179
# via requests
180180
virtualenv==20.30.0
181181
# via pre-commit

Diff for: requirements.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ certifi==2025.1.31
1717
# via httpx
1818
h11==0.14.0
1919
# via httpcore
20-
httpcore==1.0.7
20+
httpcore==1.0.8
2121
# via httpx
2222
httpx==0.28.1
2323
# via peplum
@@ -46,15 +46,15 @@ rich==14.0.0
4646
# via textual
4747
sniffio==1.3.1
4848
# via anyio
49-
textual==3.0.1
49+
textual==3.1.0
5050
# via peplum
5151
# via textual-enhanced
5252
# via textual-fspicker
5353
textual-enhanced==0.11.0
5454
# via peplum
5555
textual-fspicker==0.4.1
5656
# via peplum
57-
typing-extensions==4.13.1
57+
typing-extensions==4.13.2
5858
# via peplum
5959
# via textual
6060
uc-micro-py==1.0.3

Diff for: src/peplum/app/peplum.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
##############################################################################
88
# Textual imports.
9-
from textual.app import InvalidThemeError
9+
from textual.app import InvalidThemeError, ScreenStackError
1010

1111
##############################################################################
1212
# Textual enhanced imports.
@@ -67,7 +67,10 @@ def __init__(self, arguments: Namespace) -> None:
6767
self.theme = arguments.theme or configuration.theme
6868
except InvalidThemeError:
6969
pass
70-
self.update_keymap(configuration.bindings)
70+
try:
71+
self.update_keymap(configuration.bindings)
72+
except ScreenStackError: # https://github.com/Textualize/textual/issues/5742
73+
pass
7174

7275
def watch_theme(self) -> None:
7376
"""Save the application's theme when it's changed."""

0 commit comments

Comments
 (0)