forestui 0.9.3__py3-none-any.whl → 0.9.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- forestui/app.py +17 -17
- {forestui-0.9.3.dist-info → forestui-0.9.5.dist-info}/METADATA +1 -1
- {forestui-0.9.3.dist-info → forestui-0.9.5.dist-info}/RECORD +5 -5
- {forestui-0.9.3.dist-info → forestui-0.9.5.dist-info}/WHEEL +0 -0
- {forestui-0.9.3.dist-info → forestui-0.9.5.dist-info}/entry_points.txt +0 -0
forestui/app.py
CHANGED
|
@@ -178,15 +178,16 @@ class ForestApp(App[None]):
|
|
|
178
178
|
def _auto_update(self) -> None:
|
|
179
179
|
"""Auto-update via PyPI with status in title bar.
|
|
180
180
|
|
|
181
|
-
Uses `uv tool
|
|
181
|
+
Uses `uv tool upgrade forestui` to check PyPI for updates.
|
|
182
182
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
Output on successful update:
|
|
184
|
+
Updated forestui v0.9.3 -> v0.9.4
|
|
185
|
+
- forestui==0.9.3
|
|
186
|
+
+ forestui==0.9.4
|
|
187
|
+
Installed 1 executable: forestui
|
|
187
188
|
|
|
188
|
-
|
|
189
|
-
|
|
189
|
+
Output when already up to date:
|
|
190
|
+
Nothing to upgrade
|
|
190
191
|
"""
|
|
191
192
|
import os
|
|
192
193
|
import re
|
|
@@ -197,23 +198,22 @@ class ForestApp(App[None]):
|
|
|
197
198
|
try:
|
|
198
199
|
self._set_title_suffix("checking for updates...")
|
|
199
200
|
|
|
200
|
-
# Install from PyPI if newer version available
|
|
201
|
-
# MUST use "install --force --upgrade", NOT "upgrade"
|
|
202
|
-
# See docstring for explanation
|
|
203
201
|
result = subprocess.run(
|
|
204
|
-
["uv", "tool", "
|
|
202
|
+
["uv", "tool", "upgrade", "forestui"],
|
|
205
203
|
capture_output=True,
|
|
206
204
|
text=True,
|
|
207
205
|
timeout=120,
|
|
208
206
|
)
|
|
209
207
|
|
|
210
208
|
if result.returncode == 0:
|
|
209
|
+
output = result.stdout + result.stderr
|
|
211
210
|
# Check if we actually upgraded (vs already up to date)
|
|
212
|
-
#
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
211
|
+
# "Nothing to upgrade" means already on latest
|
|
212
|
+
if "Nothing to upgrade" in output:
|
|
213
|
+
self._set_title_suffix(None)
|
|
214
|
+
elif "Updated" in output:
|
|
215
|
+
# Extract version from "+ forestui==X.Y.Z" line
|
|
216
|
+
match = re.search(r"\+ forestui==(\d+\.\d+\.\d+)", output)
|
|
217
217
|
if match:
|
|
218
218
|
new_version = match.group(1)
|
|
219
219
|
self._set_title_suffix(
|
|
@@ -222,7 +222,7 @@ class ForestApp(App[None]):
|
|
|
222
222
|
else:
|
|
223
223
|
self._set_title_suffix("updated - restart to apply")
|
|
224
224
|
else:
|
|
225
|
-
#
|
|
225
|
+
# Unknown output format, assume no update
|
|
226
226
|
self._set_title_suffix(None)
|
|
227
227
|
else:
|
|
228
228
|
# Command failed - might not be on PyPI yet or network issue
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
forestui/__init__.py,sha256=__8Am4B3qZObWoxSf5xL066vcEvEr5bW-9_2B33v0YI,286
|
|
2
2
|
forestui/__main__.py,sha256=nDdStXHt-5rnJh-nihdYReIx0MlTOvtNVwu4HhNbPNM,102
|
|
3
|
-
forestui/app.py,sha256=
|
|
3
|
+
forestui/app.py,sha256=sJqSTydmirHzHd8Ousg36L3tFaFfazwNEmkInBsMjU8,39404
|
|
4
4
|
forestui/cli.py,sha256=41Bn3OmGRIEjJpiMZL3puncjgVpb0wqPPrf9ccBixG8,4921
|
|
5
5
|
forestui/models.py,sha256=vSeGOis6kdxJDV7720U-X0tACTJQkDnMY9WXYUAJsuA,6167
|
|
6
6
|
forestui/state.py,sha256=x54bDbYZYuQa8Yv00v6AzUBiDKeP1N55sNEPcRQh6tM,8854
|
|
@@ -17,7 +17,7 @@ forestui/services/git.py,sha256=9Gu_yawmAckhBkepkNID80I_r4bFMqqs9IbTjT6VY4Q,9165
|
|
|
17
17
|
forestui/services/github.py,sha256=jZF0iYDL4iZHarXC5zYfqLhuyUDiP_VsUwP63Z7cSt8,8156
|
|
18
18
|
forestui/services/settings.py,sha256=j7PgYMoCaTv4moakNU2Uo75gMvezyYsmPpBV71-4Uec,2608
|
|
19
19
|
forestui/services/tmux.py,sha256=WPTm0JUV9wGbXo70iwW1l3gcjqlZUnwWO_W7whtC_Jg,9715
|
|
20
|
-
forestui-0.9.
|
|
21
|
-
forestui-0.9.
|
|
22
|
-
forestui-0.9.
|
|
23
|
-
forestui-0.9.
|
|
20
|
+
forestui-0.9.5.dist-info/METADATA,sha256=mu4fSq18IJxmpJVM_kWzVT7pL09djh8VS1trNjto4fs,4829
|
|
21
|
+
forestui-0.9.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
22
|
+
forestui-0.9.5.dist-info/entry_points.txt,sha256=ifci7XODOi-Wmgal3AP-wCbNmsU7a2sHI-xe-def8CM,47
|
|
23
|
+
forestui-0.9.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|