Skip to content

Commit db3f385

Browse files
authored
fix(install): upgrade existing install to latest (#7)
* fix(install): upgrade existing install to latest * docs(claude): release must update version, changelog, readme
1 parent 4aef72f commit db3f385

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

‎CLAUDE.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,9 @@ uv tool install --force -e . # global sd/shelldeck from this checkout (th
134134
- Keep code minimal: stdlib and existing deps first; mark deliberate shortcuts with `ponytail:` comments.
135135
- Verify UI changes in a real browser (`playwright-cli`, Edge) before claiming done.
136136
- Update `README.md` when user-visible behaviour changes.
137+
- **Every release updates the docs in the same release PR, before tagging:**
138+
- `pyproject.toml` version, then `uv lock`.
139+
- `CHANGELOG.md`: a new `## [x.y.z] - YYYY-MM-DD` section (Added / Changed / Fixed / Removed) covering every merged change since the last tag (`git log vPREV..HEAD`), plus its link at the bottom.
140+
- `README.md`: new commands, options, settings, install or security behaviour; `CONTRIBUTING.md` if the workflow changed.
141+
- This file, for new modules, flows, gotchas or release steps.
142+
- Then merge, tag `vX.Y.Z` on `main`, and confirm the release run, PyPI and the GitHub release.

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ irm https://raw.githubusercontent.com/codejunction/shelldeck/main/install.ps1 |
3535
curl -fsSL https://raw.githubusercontent.com/codejunction/shelldeck/main/install.sh | sh
3636
```
3737

38-
The installer sets up [uv](https://docs.astral.sh/uv/) if you don't have it, then installs shelldeck with its own Python 3.12+. Already use Python tooling? Any of these work too:
38+
The installer sets up [uv](https://docs.astral.sh/uv/) if you don't have it, then installs shelldeck with its own Python 3.12+. Run it again to update to the latest release (or `uv tool upgrade shelldeck`); stop the server first with `sd stop` so Windows can replace `sd.exe`. Already use Python tooling? Any of these work too:
3939

4040
```sh
4141
uv tool install shelldeck # or: pipx install shelldeck, or: pip install shelldeck

‎install.ps1‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# shelldeck installer for Windows.
22
# irm https://raw.githubusercontent.com/codejunction/shelldeck/main/install.ps1 | iex
3-
# Installs uv if missing, then shelldeck as a uv tool (uv fetches Python 3.12+ itself if needed).
3+
# Installs uv if missing, then shelldeck (or upgrades it) as a uv tool (uv fetches Python 3.12+ itself if needed).
44
# SHELLDECK_SOURCE overrides what gets installed (a wheel path, or git+https://github.com/codejunction/shelldeck).
55

66
$ErrorActionPreference = 'Stop'
@@ -19,7 +19,7 @@ if (-not (Get-Command uv -ErrorAction SilentlyContinue)) {
1919
$bin = (uv tool dir --bin) # honours UV_TOOL_BIN_DIR
2020

2121
Say "installing $source ..."
22-
uv tool install --force --python '>=3.12' $source
22+
uv tool install --force --upgrade --python '>=3.12' $source
2323
if ($LASTEXITCODE) { throw "uv tool install failed ($LASTEXITCODE)" }
2424
if (-not $env:UV_NO_MODIFY_PATH) { uv tool update-shell *> $null }
2525
if (-not ($env:Path -split ';' -contains $bin)) { $env:Path = "$bin;$env:Path" }

‎install.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
# shelldeck installer for Linux (and macOS, untested).
33
# curl -fsSL https://raw.githubusercontent.com/codejunction/shelldeck/main/install.sh | sh
4-
# Installs uv if missing, then shelldeck as a uv tool (uv fetches Python 3.12+ itself if needed).
4+
# Installs uv if missing, then shelldeck (or upgrades it) as a uv tool (uv fetches Python 3.12+ itself if needed).
55
# SHELLDECK_SOURCE overrides what gets installed (a wheel path, or git+https://github.com/codejunction/shelldeck).
66
set -eu
77

@@ -25,7 +25,7 @@ fi
2525
bin="$(uv tool dir --bin)" # honours UV_TOOL_BIN_DIR
2626

2727
say "installing $source ..."
28-
uv tool install --force --python '>=3.12' "$source"
28+
uv tool install --force --upgrade --python '>=3.12' "$source"
2929
[ -n "${UV_NO_MODIFY_PATH:-}" ] || uv tool update-shell >/dev/null 2>&1 || true
3030

3131
echo

0 commit comments

Comments
 (0)