Skip to content

Commit acb32ff

Browse files
authored
build: remove uv dynamic versioning (#824)
It's not fully transparent for non-release versions (like alpha or rc) how git tag names (i.e. `v1.0.0-alpha.0`) are converted to [Python version specifiers](https://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiers) (i.e. `1.0.0a0`). This can be checked only during [publish GitHub action](https://github.com/a2aproject/a2a-python/actions/workflows/python-publish.yml) execution which both builds and pushes PyPi package. `release-please` supports updating `pyproject.toml` so we will have the same level of automation. Current version is set to `0.3.25` - the latest release from `main`.
1 parent 1f51bdf commit acb32ff

2 files changed

Lines changed: 16 additions & 106 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "a2a-sdk"
3-
dynamic = ["version"]
3+
version = "0.3.25"
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", "uv-dynamic-versioning", "hatch-build-scripts"]
65+
requires = ["hatchling", "hatch-build-scripts"]
6666
build-backend = "hatchling.build"
6767

6868
[tool.hatch.build.hooks.build-scripts]
@@ -72,8 +72,6 @@ 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"
7775

7876
[tool.hatch.build.targets.wheel]
7977
packages = ["src/a2a"]
@@ -104,9 +102,6 @@ filterwarnings = [
104102
[tool.pytest-asyncio]
105103
mode = "strict"
106104

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

111106
[dependency-groups]
112107
dev = [
@@ -119,7 +114,6 @@ dev = [
119114
"pytest-xdist>=3.6.1",
120115
"respx>=0.20.2",
121116
"ruff>=0.12.8",
122-
"uv-dynamic-versioning>=0.8.2",
123117
"types-protobuf",
124118
"types-requests",
125119
"pre-commit",

uv.lock

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

0 commit comments

Comments
 (0)