-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJustfile
More file actions
37 lines (33 loc) · 1006 Bytes
/
Copy pathJustfile
File metadata and controls
37 lines (33 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
install:
uv sync
test:
uv run --active pytest -v -s
run:
uv run --active mcp-ssh-tmux
dev:
uv run --active python -m mcp_ssh_tmux.server
release version:
#!/usr/bin/env bash
set -euo pipefail
# Validate version format
if [[ ! "{{version}}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: Version must be in format v#.#.# (e.g., v0.1.1)"
exit 1
fi
new_version="{{version}}"
new_version="${new_version#v}"
# Update pyproject.toml
sed -i "s/^version = .*/version = \"$new_version\"/" pyproject.toml
# Verify the update worked
if ! grep -q "^version = \"$new_version\"$" pyproject.toml; then
echo "Error: Failed to update version in pyproject.toml"
exit 1
fi
# Sync lockfile
uv lock
# Commit, tag, and push
git add pyproject.toml uv.lock
git commit -m "chore: bump version to $new_version"
git push
git tag -a {{version}} -m "Release {{version}}"
git push origin {{version}}