Skip to content

chore: implement dynamic versioning and rename package to a2ui-agent-sdk#1046

Merged
nan-yu merged 2 commits intogoogle:mainfrom
nan-yu:agent-sdk
Apr 1, 2026
Merged

chore: implement dynamic versioning and rename package to a2ui-agent-sdk#1046
nan-yu merged 2 commits intogoogle:mainfrom
nan-yu:agent-sdk

Conversation

@nan-yu
Copy link
Copy Markdown
Collaborator

@nan-yu nan-yu commented Apr 1, 2026

Description

Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.

List which issues are fixed by this PR. For larger changes, raising an issue first helps reduce redundant work.

Pre-launch Checklist

If you need help, consider asking for advice on the discussion board.

@github-project-automation github-project-automation bot moved this to Todo in A2UI Apr 1, 2026
@nan-yu nan-yu requested a review from gspencergoog April 1, 2026 17:10
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request renames the Python agent package to a2ui-agent-sdk and implements dynamic versioning using hatchling, moving the version definition to a new version.py file. The review identifies a missing version in uv.lock that impacts build reproducibility and suggests aligning the distribution name with the import package name to prevent user confusion. Additionally, the feedback recommends defining __all__ in __init__.py and notes that tests must be included for these changes to adhere to the repository's style guide.

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.

# 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__"]

# 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)

@nan-yu nan-yu merged commit 0c5ab20 into google:main Apr 1, 2026
11 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in A2UI Apr 1, 2026
@nan-yu nan-yu deleted the agent-sdk branch April 1, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants