Skip to content

Commit 8e81501

Browse files
committed
feat: implement dynamic version management using hatch
1 parent 20fd5cf commit 8e81501

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "quip-mcp-server"
7-
version = "0.1.0"
7+
dynamic = ["version"]
88
description = "MCP server for interacting with Quip spreadsheets"
99
readme = "README.md"
1010
requires-python = ">=3.12"
@@ -43,6 +43,9 @@ quip-mcp-server = "src.server:main"
4343
[tool.hatch.build.targets.wheel]
4444
packages = ["src"]
4545

46+
[tool.hatch.version]
47+
path = "src/version.py"
48+
4649
[tool.pytest.ini_options]
4750
testpaths = ["tests"]
4851
python_files = "test_*.py"

src/server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
from dotenv import load_dotenv
1616

17+
from .version import __version__
1718
from .tools import get_quip_tools, handle_quip_read_spreadsheet
1819
from .storage import create_storage, StorageInterface
1920

@@ -221,7 +222,7 @@ async def call_tool(name: str, arguments: Any) -> Sequence[TextContent | ImageCo
221222
write_stream,
222223
InitializationOptions(
223224
server_name="quip-mcp-server",
224-
server_version="0.1.0",
225+
server_version=__version__,
225226
capabilities=server.get_capabilities(
226227
notification_options=NotificationOptions(),
227228
experimental_capabilities={},

src/version.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"""
2+
Version information for the quip-mcp-server package.
3+
This file is the single source of truth for the version number.
4+
"""
5+
6+
__version__ = "0.2.0"

0 commit comments

Comments
 (0)