Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions agent_sdks/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
# limitations under the License.

[project]
name = "a2ui-agent"
version = "0.1.0"
description = "A2UI Agent"
name = "a2ui-agent-sdk"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The distribution name (a2ui-agent-sdk) and the package import name (a2ui) are inconsistent. This can lead to confusion for users (e.g., pip install a2ui-agent-sdk but import a2ui) and potential namespace conflicts if other a2ui components are developed. Consider renaming the package directory to a2ui_agent_sdk or ensuring a2ui is implemented as a proper namespace package.

dynamic = ["version"]
description = "A2UI Agent SDK"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
Expand All @@ -29,6 +29,9 @@ dependencies = [
requires = ["hatchling", "jsonschema"]
build-backend = "hatchling.build"

[tool.hatch.version]
path = "src/a2ui/version.py"

[tool.hatch.build.targets.wheel]
packages = ["src/a2ui"]
artifacts = ["src/a2ui/assets/**"]
Expand Down
3 changes: 2 additions & 1 deletion agent_sdks/python/src/a2ui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from .version import __version__
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

It is recommended to define __all__ when exporting symbols from __init__.py. This explicitly defines the public API of the package and helps with linting and auto-import tools.

Suggested change
from .version import __version__
from .version import __version__
__all__ = ["__version__"]

24 changes: 24 additions & 0 deletions agent_sdks/python/src/a2ui/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# File-based dynamic versioning
# - The next release version
# - Version format: major.minor.patch
# - Update the version in this file before releasing
#
# TODO:
# Switch to VCS-based versioning which derives version
# from Git tags automatically with the hatch-vcs plugin
# when we start using Git tags.
__version__ = "0.1.2"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

According to the repository style guide, code changes should include tests. Please ensure there are tests verifying the versioning (e.g., checking that a2ui.__version__ matches the expected value) and the package renaming.

References
  1. If there are code changes, code should have tests. (link)

3 changes: 1 addition & 2 deletions agent_sdks/python/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion samples/agent/adk/contact_lookup/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"python-dotenv>=1.1.0",
"litellm",
"jsonschema>=4.0.0",
"a2ui-agent",
"a2ui-agent-sdk>=0.1.1",
]

[tool.hatch.build.targets.wheel]
Expand Down
2 changes: 1 addition & 1 deletion samples/agent/adk/custom-components-example/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"python-dotenv>=1.1.0",
"litellm",
"jsonschema>=4.0.0",
"a2ui-agent",
"a2ui-agent-sdk>=0.1.1",
"mcp>=1.26.0",
"uvicorn>=0.40.0",
"starlette>=0.50.0",
Expand Down
5 changes: 1 addition & 4 deletions samples/agent/adk/mcp_app_proxy/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = [
"python-dotenv>=1.1.0",
"litellm",
"jsonschema>=4.0.0",
"a2ui-agent",
"a2ui-agent-sdk>=0.1.1",
"uvicorn",
"starlette",
"mcp",
Expand All @@ -42,8 +42,5 @@ mcp_app_proxy = "mcp_app_proxy:main"
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv.sources]
a2ui-agent = { path = "../../../../agent_sdks/python", editable = true }

[tool.hatch.build.targets.wheel]
packages = ["."]
2 changes: 1 addition & 1 deletion samples/agent/adk/orchestrator/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"python-dotenv>=1.1.0",
"litellm",
"jsonschema>=4.0.0",
"a2ui-agent",
"a2ui-agent-sdk>=0.1.1",
]

[tool.hatch.build.targets.wheel]
Expand Down
3 changes: 0 additions & 3 deletions samples/agent/adk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ default = true
[tool.uv.workspace]
members = ["contact_lookup", "custom-components-example", "orchestrator", "restaurant_finder", "rizzcharts", "mcp_app_proxy"]

[tool.uv.sources]
a2ui-agent = { path = "../../../agent_sdks/python", editable = true }

[tool.pyink]
unstable = true
target-version = []
Expand Down
2 changes: 1 addition & 1 deletion samples/agent/adk/restaurant_finder/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"python-dotenv>=1.1.0",
"litellm",
"jsonschema>=4.0.0",
"a2ui-agent",
"a2ui-agent-sdk>=0.1.1",
]

[tool.hatch.build.targets.wheel]
Expand Down
5 changes: 1 addition & 4 deletions samples/agent/adk/rizzcharts/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"python-dotenv>=1.1.0",
"litellm",
"jsonschema>=4.0.0",
"a2ui-agent",
"a2ui-agent-sdk>=0.1.1",
]

[tool.hatch.build.targets.wheel]
Expand All @@ -42,6 +42,3 @@ allow-direct-references = true
[[tool.uv.index]]
url = "https://pypi.org/simple"
default = true

[tool.uv.sources]
a2ui-agent = { path = "../../../../agent_sdks/python", editable = true }
47 changes: 18 additions & 29 deletions samples/agent/adk/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions samples/agent/mcp/a2ui-over-mcp-recipe/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ readme = "README.md"
requires-python = ">=3.10"
keywords = ["mcp", "llm", "automation", "a2ui", "agent"]
license = { text = "MIT" }
dependencies = ["anyio>=4.5", "click>=8.2.0", "httpx>=0.27", "mcp", "a2ui-agent"]
dependencies = ["anyio>=4.5", "click>=8.2.0", "httpx>=0.27", "mcp", "a2ui-agent-sdk>=0.1.1"]

[project.scripts]
a2ui-mcp-recipe-demo = "server:main"
Expand Down Expand Up @@ -52,5 +52,3 @@ target-version = "py310"
[dependency-groups]
dev = ["pyright>=1.1.378", "pytest>=8.3.3", "ruff>=0.6.9"]

[tool.uv.sources]
a2ui-agent = { path = "../../../../agent_sdks/python", editable = true }
10 changes: 5 additions & 5 deletions samples/agent/mcp/a2ui-over-mcp-recipe/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading