Skip to content

Commit d889cc9

Browse files
authored
chore: revert "build: remove uv dynamic versioning (#824)" (#827)
Turns out it creates more problems than solves and requires more intervention into release-please to also update `uv.lock`. release-please still uses SemVer values in its PRs, but they are normalized during build (see [here](https://packaging.python.org/en/latest/specifications/version-specifiers/#normalization)).
1 parent acb32ff commit d889cc9

2 files changed

Lines changed: 106 additions & 16 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "a2a-sdk"
3-
version = "0.3.25"
3+
dynamic = ["version"]
44
description = "A2A Python SDK"
55
readme = "README.md"
66
license = "Apache-2.0"
@@ -62,7 +62,7 @@ changelog = "https://github.com/a2aproject/a2a-python/blob/main/CHANGELOG.md"
6262
documentation = "https://a2a-protocol.org/latest/sdk/python/"
6363

6464
[build-system]
65-
requires = ["hatchling", "hatch-build-scripts"]
65+
requires = ["hatchling", "uv-dynamic-versioning", "hatch-build-scripts"]
6666
build-backend = "hatchling.build"
6767

6868
[tool.hatch.build.hooks.build-scripts]
@@ -72,6 +72,8 @@ artifacts = ["src/a2a/types/a2a.json"]
7272
commands = ["bash scripts/gen_proto.sh"]
7373
work_dir = "."
7474

75+
[tool.hatch.version]
76+
source = "uv-dynamic-versioning"
7577

7678
[tool.hatch.build.targets.wheel]
7779
packages = ["src/a2a"]
@@ -102,6 +104,9 @@ filterwarnings = [
102104
[tool.pytest-asyncio]
103105
mode = "strict"
104106

107+
[tool.uv-dynamic-versioning]
108+
vcs = "git"
109+
style = "pep440"
105110

106111
[dependency-groups]
107112
dev = [
@@ -114,6 +119,7 @@ dev = [
114119
"pytest-xdist>=3.6.1",
115120
"respx>=0.20.2",
116121
"ruff>=0.12.8",
122+
"uv-dynamic-versioning>=0.8.2",
117123
"types-protobuf",
118124
"types-requests",
119125
"pre-commit",

uv.lock

Lines changed: 98 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)