Skip to content

Commit 83dd354

Browse files
kthota-gmartimfasantos
authored andcommitted
ci: Setup repo for publishing (a2aproject#30)
* Setup repo for publishing * Update pyproject.toml
1 parent b50fb21 commit 83dd354

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
"fastapi>=0.115.12",
912
"httpx>=0.28.1",
@@ -16,6 +19,22 @@ dependencies = [
1619
"typing-extensions>=4.13.2",
1720
]
1821

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

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

2847
[build-system]
29-
requires = ["hatchling"]
48+
requires = ["hatchling", "uv-dynamic-versioning"]
3049
build-backend = "hatchling.build"
3150

51+
[tool.hatch.version]
52+
source = "uv-dynamic-versioning"
53+
54+
[tool.hatch.build.targets.sdist]
55+
exclude = [
56+
"tests/",
57+
]
58+
59+
[tool.uv-dynamic-versioning]
60+
vcs = "git"
61+
style = "pep440"
62+
3263
[tool.uv.workspace]
3364
members = [
3465
"examples/langgraph",
@@ -46,4 +77,11 @@ dev = [
4677
"pytest-cov>=6.1.1",
4778
"pytest-mock>=3.14.0",
4879
"ruff>=0.11.6",
80+
"uv-dynamic-versioning>=0.8.2",
4981
]
82+
83+
[[tool.uv.index]]
84+
name = "testpypi"
85+
url = "https://test.pypi.org/simple/"
86+
publish-url = "https://test.pypi.org/legacy/"
87+
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)