Skip to content

Commit 25cc557

Browse files
authored
ci: Setup repo for publishing (#30)
* Setup repo for publishing * Update pyproject.toml
1 parent 72c0b7b commit 25cc557

File tree

2 files changed

+103
-3
lines changed

2 files changed

+103
-3
lines changed

pyproject.toml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
[project]
22
name = "a2a-sdk"
3-
version = "0.2.0"
3+
dynamic = ["version"]
44
description = "A2A Python SDK"
55
readme = "README.md"
6+
license = { file = "LICENSE" }
7+
authors = [{ name = "Google LLC", email = "[email protected]" }]
68
requires-python = ">=3.13"
9+
keywords = ["A2A", "A2A SDK", "A2A Protocol", "Agent2Agent"]
710
dependencies = [
811
"httpx>=0.28.1",
912
"httpx-sse>=0.4.0",
@@ -15,6 +18,22 @@ dependencies = [
1518
"typing-extensions>=4.13.2",
1619
]
1720

21+
classifiers = [
22+
"Intended Audience :: Developers",
23+
"Programming Language :: Python",
24+
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3.13",
26+
"Operating System :: OS Independent",
27+
"Topic :: Software Development :: Libraries :: Python Modules",
28+
"License :: OSI Approved :: Apache Software License",
29+
]
30+
31+
[project.urls]
32+
homepage = "https://google.github.io/A2A/"
33+
repository = "https://github.com/google/a2a-python"
34+
changelog = "https://github.com/google/a2a-python/blob/main/CHANGELOG.md"
35+
documentation = "https://google.github.io/A2A/"
36+
1837
[tool.hatch.build.targets.wheel]
1938
packages = ["src/a2a"]
2039

@@ -25,9 +44,21 @@ python_functions = "test_*"
2544
addopts = "--cov=src --cov-config=.coveragerc --cov-report term --cov-report xml:coverage.xml --cov-branch"
2645

2746
[build-system]
28-
requires = ["hatchling"]
47+
requires = ["hatchling", "uv-dynamic-versioning"]
2948
build-backend = "hatchling.build"
3049

50+
[tool.hatch.version]
51+
source = "uv-dynamic-versioning"
52+
53+
[tool.hatch.build.targets.sdist]
54+
exclude = [
55+
"tests/",
56+
]
57+
58+
[tool.uv-dynamic-versioning]
59+
vcs = "git"
60+
style = "pep440"
61+
3162
[tool.uv.workspace]
3263
members = [
3364
"examples/langgraph",
@@ -45,4 +76,11 @@ dev = [
4576
"pytest-cov>=6.1.1",
4677
"pytest-mock>=3.14.0",
4778
"ruff>=0.11.6",
79+
"uv-dynamic-versioning>=0.8.2",
4880
]
81+
82+
[[tool.uv.index]]
83+
name = "testpypi"
84+
url = "https://test.pypi.org/simple/"
85+
publish-url = "https://test.pypi.org/legacy/"
86+
explicit = true

uv.lock

Lines changed: 63 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)