fix: Update version bump script to include MCP server __init__.py
Issue found: bump-version.sh was missing the MCP server's __init__.py file, causing version mismatches (pyproject.toml: 0.9.2, __init__.py: 1.0.0). Changes: - Add integrations/beads-mcp/src/beads_mcp/__init__.py to update list - Add it to git staging in auto-commit - Add it to verification check - Fix current version mismatch: 1.0.0 to 0.9.2 Now the script updates 7 files instead of 6
This commit is contained in:
@@ -4,4 +4,4 @@ This package provides an MCP (Model Context Protocol) server that exposes
|
|||||||
beads (bd) issue tracker functionality to MCP Clients.
|
beads (bd) issue tracker functionality to MCP Clients.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__version__ = "1.0.0"
|
__version__ = "0.9.2"
|
||||||
|
|||||||
@@ -122,13 +122,19 @@ main() {
|
|||||||
"version = \"$CURRENT_VERSION\"" \
|
"version = \"$CURRENT_VERSION\"" \
|
||||||
"version = \"$NEW_VERSION\""
|
"version = \"$NEW_VERSION\""
|
||||||
|
|
||||||
# 5. Update README.md
|
# 5. Update integrations/beads-mcp/src/beads_mcp/__init__.py
|
||||||
|
echo " • integrations/beads-mcp/src/beads_mcp/__init__.py"
|
||||||
|
update_file "integrations/beads-mcp/src/beads_mcp/__init__.py" \
|
||||||
|
"__version__ = \"$CURRENT_VERSION\"" \
|
||||||
|
"__version__ = \"$NEW_VERSION\""
|
||||||
|
|
||||||
|
# 6. Update README.md
|
||||||
echo " • README.md"
|
echo " • README.md"
|
||||||
update_file "README.md" \
|
update_file "README.md" \
|
||||||
"Alpha (v$CURRENT_VERSION)" \
|
"Alpha (v$CURRENT_VERSION)" \
|
||||||
"Alpha (v$NEW_VERSION)"
|
"Alpha (v$NEW_VERSION)"
|
||||||
|
|
||||||
# 6. Update PLUGIN.md version requirements
|
# 7. Update PLUGIN.md version requirements
|
||||||
echo " • PLUGIN.md"
|
echo " • PLUGIN.md"
|
||||||
update_file "PLUGIN.md" \
|
update_file "PLUGIN.md" \
|
||||||
"Plugin $CURRENT_VERSION requires bd CLI $CURRENT_VERSION+" \
|
"Plugin $CURRENT_VERSION requires bd CLI $CURRENT_VERSION+" \
|
||||||
@@ -150,6 +156,7 @@ main() {
|
|||||||
"$(jq -r '.version' .claude-plugin/plugin.json)"
|
"$(jq -r '.version' .claude-plugin/plugin.json)"
|
||||||
"$(jq -r '.plugins[0].version' .claude-plugin/marketplace.json)"
|
"$(jq -r '.plugins[0].version' .claude-plugin/marketplace.json)"
|
||||||
"$(grep 'version = ' integrations/beads-mcp/pyproject.toml | head -1 | sed 's/.*"\(.*\)".*/\1/')"
|
"$(grep 'version = ' integrations/beads-mcp/pyproject.toml | head -1 | sed 's/.*"\(.*\)".*/\1/')"
|
||||||
|
"$(grep '__version__ = ' integrations/beads-mcp/src/beads_mcp/__init__.py | sed 's/.*"\(.*\)".*/\1/')"
|
||||||
)
|
)
|
||||||
|
|
||||||
ALL_MATCH=true
|
ALL_MATCH=true
|
||||||
@@ -177,6 +184,7 @@ main() {
|
|||||||
.claude-plugin/plugin.json \
|
.claude-plugin/plugin.json \
|
||||||
.claude-plugin/marketplace.json \
|
.claude-plugin/marketplace.json \
|
||||||
integrations/beads-mcp/pyproject.toml \
|
integrations/beads-mcp/pyproject.toml \
|
||||||
|
integrations/beads-mcp/src/beads_mcp/__init__.py \
|
||||||
README.md \
|
README.md \
|
||||||
PLUGIN.md
|
PLUGIN.md
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user