File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish
2
2
on :
3
3
push :
4
- branches : [main]
4
+ tags :
5
+ - " v*"
5
6
strategy :
6
7
matrix :
7
8
python-version : ["3.11"]
57
58
steps :
58
59
- uses : actions/checkout@v4
59
60
61
+ - name : Update version from tag
62
+ run : |
63
+ # Strip 'v' prefix from tag and update version.py
64
+ VERSION=${GITHUB_REF#refs/tags/v}
65
+ echo "__version__ = \"${VERSION}\"" > mcp_shell_server/version.py
66
+
60
67
- name : Set up Python ${{ matrix.python-version }}
61
68
uses : actions/setup-python@v5
62
69
with :
Original file line number Diff line number Diff line change
1
+ __version__ = "0.0.0-dev"
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " mcp-shell-server"
3
- version = " 0.1.0"
4
3
description = " MCP Shell Server - Execute shell commands via MCP protocol"
5
4
authors = [
6
5
{ name = " tumf" }
@@ -12,6 +11,7 @@ dependencies = [
12
11
requires-python = " >=3.11"
13
12
readme = " README.md"
14
13
license = { text = " MIT" }
14
+ dynamic = [" version" ]
15
15
16
16
[project .scripts ]
17
17
mcp-shell-server = " mcp_shell_server:main"
@@ -62,4 +62,7 @@ target-version = ['py311']
62
62
63
63
[tool .isort ]
64
64
profile = " black"
65
- line_length = 88
65
+ line_length = 88
66
+
67
+ [tool .hatch .version ]
68
+ path = " mcp_shell_server/version.py"
You can’t perform that action at this time.
0 commit comments