Skip to content

Commit 0e53313

Browse files
committed
Go back to dynamic versioning for uv
1 parent 2588c49 commit 0e53313

File tree

4 files changed

+26
-7
lines changed

4 files changed

+26
-7
lines changed

.versionrc

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,36 @@
1111
"type": "plain-text"
1212
},
1313
{
14-
"filename": "src/python/pyproject.toml",
15-
"type": "python"
14+
"filename": "src/typescript/package.json",
15+
"type": "json"
1616
},
1717
{
18-
"filename": "src/typescript/package.json",
18+
"filename": "src/typescript/package-lock.json",
1919
"type": "json"
2020
},
2121
{
2222
"filename": "e2e_tests/typescript/package.json",
2323
"type": "json"
2424
},
25+
{
26+
"filename": "e2e_tests/typescript/package-lock.json",
27+
"type": "json"
28+
},
2529
{
2630
"filename": "examples/servers/weather-alerts/package.json",
2731
"type": "json"
2832
},
33+
{
34+
"filename": "examples/servers/weather-alerts/package-lock.json",
35+
"type": "json"
36+
},
2937
{
3038
"filename": "examples/chatbots/typescript/package.json",
3139
"type": "json"
40+
},
41+
{
42+
"filename": "examples/chatbots/typescript/package-lock.json",
43+
"type": "json"
3244
}
3345
],
3446
"tagPrefix": "v"

examples/servers/time/cdk_stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def after_bundling(self, input_dir: str, output_dir: str) -> list[str]:
2525
f"cp /mcp_lambda_src/pyproject.toml {output_dir}/mcp_lambda_build/pyproject.toml",
2626
f"cp /mcp_lambda_src/uv.lock {output_dir}/mcp_lambda_build/uv.lock",
2727
f"cp -r /mcp_lambda_src/src {output_dir}/mcp_lambda_build/src",
28-
f"UV_CACHE_DIR={output_dir}/.cache {output_dir}/uv build --wheel --directory {output_dir}/mcp_lambda_build",
28+
f"UV_CACHE_DIR={output_dir}/.cache UV_DYNAMIC_VERSIONING_BYPASS=0.0.1 {output_dir}/uv build --wheel --directory {output_dir}/mcp_lambda_build",
2929
f"python -m pip install {output_dir}/mcp_lambda_build/dist/*.whl -t {output_dir}",
3030
f"rm -r {output_dir}/mcp_lambda_build {output_dir}/.cache uv",
3131
]

src/python/pyproject.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mcp-lambda"
3-
version = "0.0.1"
3+
dynamic = ["version"]
44
description = "Model Context Protocol SDK for AWS Lambda"
55
requires-python = ">=3.11"
66

@@ -25,9 +25,17 @@ dev-dependencies = [
2525
]
2626

2727
[build-system]
28-
requires = ["hatchling"]
28+
requires = ["hatchling", "uv-dynamic-versioning"]
2929
build-backend = "hatchling.build"
3030

31+
[tool.hatch.version]
32+
source = "uv-dynamic-versioning"
33+
34+
[tool.uv-dynamic-versioning]
35+
vcs = "git"
36+
style = "pep440"
37+
bump = false
38+
3139
[tool.hatch.build.targets.wheel]
3240
packages = ["src/mcp_lambda"]
3341

src/python/uv.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)