a2a-robots 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. a2a_robots-0.1.1/.github/scripts/check_release_ref.py +133 -0
  2. a2a_robots-0.1.1/.github/workflows/ci.yml +63 -0
  3. a2a_robots-0.1.1/.github/workflows/publish.yml +133 -0
  4. a2a_robots-0.1.1/.github/workflows/release-please.yml +161 -0
  5. a2a_robots-0.1.1/.gitignore +8 -0
  6. a2a_robots-0.1.1/.release-please-manifest.json +7 -0
  7. a2a_robots-0.1.1/CHANGELOG.md +17 -0
  8. a2a_robots-0.1.1/CONTRIBUTING.md +67 -0
  9. a2a_robots-0.1.1/LICENSE +201 -0
  10. a2a_robots-0.1.1/PKG-INFO +171 -0
  11. a2a_robots-0.1.1/README.md +148 -0
  12. a2a_robots-0.1.1/examples/fake_robot.py +18 -0
  13. a2a_robots-0.1.1/pyproject.toml +54 -0
  14. a2a_robots-0.1.1/release-please-config.json +54 -0
  15. a2a_robots-0.1.1/src/a2a_robots/__init__.py +32 -0
  16. a2a_robots-0.1.1/src/a2a_robots/adapter.py +152 -0
  17. a2a_robots-0.1.1/src/a2a_robots/backend.py +57 -0
  18. a2a_robots-0.1.1/src/a2a_robots/controller.py +212 -0
  19. a2a_robots-0.1.1/src/a2a_robots/fake.py +98 -0
  20. a2a_robots-0.1.1/src/a2a_robots/limits.py +68 -0
  21. a2a_robots-0.1.1/src/a2a_robots/planning.py +69 -0
  22. a2a_robots-0.1.1/src/a2a_robots/skills.py +156 -0
  23. a2a_robots-0.1.1/src/a2a_robots/testing.py +208 -0
  24. a2a_robots-0.1.1/tests/conftest.py +14 -0
  25. a2a_robots-0.1.1/tests/helpers.py +21 -0
  26. a2a_robots-0.1.1/tests/test_a2a.py +212 -0
  27. a2a_robots-0.1.1/tests/test_controller.py +427 -0
  28. a2a_robots-0.1.1/tests/test_fake_contract.py +7 -0
  29. a2a_robots-0.1.1/tests/test_planning.py +27 -0
  30. a2a_robots-0.1.1/tests/test_release_config.py +223 -0
  31. a2a_robots-0.1.1/tests/test_skills.py +68 -0
  32. a2a_robots-0.1.1/uv.lock +1114 -0
@@ -0,0 +1,133 @@
1
+ """Check that a publish.yml run is on the release tag before anything is built.
2
+
3
+ publish.yml publishes to PyPI on a ``release`` event, or on a hand run
4
+ (``workflow_dispatch``) unless ``test_pypi`` is true. Such a run must be on the
5
+ ``{component}-v{version}`` tag for the version in that package's pyproject.toml.
6
+ A TestPyPI rehearsal may run from a branch; on a tag, the tag must still match.
7
+
8
+ The publish job conditions in publish.yml decide what a run publishes, and this
9
+ script mirrors them. tests/test_release_config.py pins both; change them
10
+ together.
11
+ """
12
+
13
+ from __future__ import annotations
14
+
15
+ import os
16
+ import sys
17
+ import tomllib
18
+ from pathlib import Path
19
+
20
+ # Longest component first so a2a-robots-lerobot wins over a2a-robots.
21
+ PACKAGES: dict[str, tuple[str, str]] = {
22
+ "a2a-robots-lerobot": ("packages/a2a-robots-lerobot", "a2a-robots-lerobot"),
23
+ "a2a-robots-pollen": ("packages/a2a-robots-pollen", "a2a-robots-pollen"),
24
+ "a2a-robots-ros2": ("packages/a2a-robots-ros2", "a2a-robots-ros2"),
25
+ "a2a-robots-sharpa": ("packages/a2a-robots-sharpa", "a2a-robots-sharpa"),
26
+ "a2a-robots": (".", "a2a-robots"),
27
+ }
28
+
29
+ _COMPONENTS = tuple(sorted(PACKAGES, key=len, reverse=True))
30
+
31
+
32
+ def _error(message: str) -> int:
33
+ print(f"::error::{message}")
34
+ return 1
35
+
36
+
37
+ def parse_component_tag(ref_name: str) -> tuple[str, str] | None:
38
+ """Return (component, version) for ``{component}-v{version}``, else None."""
39
+ for component in _COMPONENTS:
40
+ prefix = f"{component}-v"
41
+ if ref_name.startswith(prefix):
42
+ version = ref_name[len(prefix) :]
43
+ if version and version[0].isdigit():
44
+ return component, version
45
+ return None
46
+
47
+
48
+ def resolve_package(
49
+ *,
50
+ ref_type: str,
51
+ ref_name: str,
52
+ package_input: str,
53
+ ) -> tuple[str, str, str, Path]:
54
+ """Return (component, package_dir, package_name, pyproject_path)."""
55
+ if ref_type == "tag":
56
+ parsed = parse_component_tag(ref_name)
57
+ if parsed is None:
58
+ raise ValueError(
59
+ f"Tag {ref_name} is not a known release tag "
60
+ f"(expected one of: {', '.join(c + '-v*' for c in _COMPONENTS)})."
61
+ )
62
+ component, _ = parsed
63
+ else:
64
+ component = package_input.strip() or "a2a-robots"
65
+ if component not in PACKAGES:
66
+ raise ValueError(
67
+ f"Unknown package {component!r}; expected one of: {', '.join(_COMPONENTS)}."
68
+ )
69
+
70
+ package_dir, package_name = PACKAGES[component]
71
+ pyproject = Path(package_dir) / "pyproject.toml"
72
+ return component, package_dir, package_name, pyproject
73
+
74
+
75
+ def _write_output(name: str, value: str) -> None:
76
+ output_file = os.environ.get("GITHUB_OUTPUT")
77
+ if not output_file:
78
+ return
79
+ with open(output_file, "a", encoding="utf-8") as f:
80
+ f.write(f"{name}={value}\n")
81
+
82
+
83
+ def main() -> int:
84
+ event = os.environ.get("GITHUB_EVENT_NAME", "")
85
+ ref_type = os.environ.get("GITHUB_REF_TYPE", "")
86
+ ref_name = os.environ.get("GITHUB_REF_NAME", "")
87
+ # Actions compares strings in ``if:`` ignoring case but not whitespace, so
88
+ # " true" still publishes to PyPI. No strip(): fail closed.
89
+ test_pypi = os.environ.get("TEST_PYPI", "").lower() == "true"
90
+ package_input = os.environ.get("PACKAGE", "")
91
+
92
+ try:
93
+ component, package_dir, package_name, pyproject = resolve_package(
94
+ ref_type=ref_type,
95
+ ref_name=ref_name,
96
+ package_input=package_input,
97
+ )
98
+ except ValueError as exc:
99
+ return _error(str(exc))
100
+
101
+ with open(pyproject, "rb") as f:
102
+ version = tomllib.load(f)["project"]["version"]
103
+ tag = f"{component}-v{version}"
104
+
105
+ _write_output("component", component)
106
+ _write_output("package_dir", package_dir)
107
+ _write_output("package_name", package_name)
108
+ _write_output("version", version)
109
+
110
+ if event == "release" or (event == "workflow_dispatch" and not test_pypi):
111
+ if ref_type != "tag":
112
+ return _error(
113
+ f"Publishing to PyPI needs a run on the {tag} tag, not {ref_type} "
114
+ f"{ref_name}; run from a branch only with test_pypi=true."
115
+ )
116
+ elif event == "workflow_dispatch":
117
+ if ref_type != "tag":
118
+ print(f"TestPyPI rehearsal from {ref_type} {ref_name} for {package_name}.")
119
+ return 0
120
+ else:
121
+ return _error(f"publish.yml ran on an unexpected event: {event or '(none)'}.")
122
+
123
+ if ref_name != tag:
124
+ return _error(
125
+ f"Release tag {ref_name} does not match package version {tag}. Release "
126
+ "through the release-please PR so the version is bumped first."
127
+ )
128
+ print(f"Ref {ref_name} matches package version {tag} ({package_dir}).")
129
+ return 0
130
+
131
+
132
+ if __name__ == "__main__":
133
+ sys.exit(main())
@@ -0,0 +1,63 @@
1
+ name: CI
2
+
3
+ # Runs lint and the test suite on pull requests and on pushes to main.
4
+ # publish.yml also calls it, so a package is only built after CI passes.
5
+ on:
6
+ pull_request:
7
+ push:
8
+ branches: [main]
9
+ workflow_call:
10
+
11
+ permissions:
12
+ contents: read
13
+
14
+ jobs:
15
+ test:
16
+ runs-on: ubuntu-latest
17
+ strategy:
18
+ fail-fast: false
19
+ matrix:
20
+ python-version: ["3.11", "3.12", "3.13"]
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ - uses: astral-sh/setup-uv@v6
24
+ with:
25
+ python-version: ${{ matrix.python-version }}
26
+ - run: uv sync --locked --extra dev
27
+ - run: uv run --locked --extra dev ruff format --check .
28
+ - run: uv run --locked --extra dev ruff check .
29
+ - run: uv run --locked --extra dev pytest
30
+ - run: uv run --directory packages/a2a-robots-lerobot --locked --extra dev pytest
31
+ - run: uv run --directory packages/a2a-robots-pollen --locked --extra dev pytest
32
+ - run: uv run --directory packages/a2a-robots-pollen --locked --extra sdk --extra dev pytest tests/test_reachy2_sdk_grpc.py
33
+ env:
34
+ A2A_ROBOTS_REQUIRE_REACHY2_SDK: "1"
35
+ - run: uv run --directory packages/a2a-robots-ros2 --locked --extra dev pytest
36
+ - uses: actions/cache@v4
37
+ with:
38
+ path: ${{ runner.temp }}/sharpa-model
39
+ key: sharpa-model-${{ hashFiles('packages/a2a-robots-sharpa/src/a2a_robots_sharpa/model.py') }}
40
+ - run: uv run --directory packages/a2a-robots-sharpa --locked --extra dev python -m a2a_robots_sharpa ${{ runner.temp }}/sharpa-model
41
+ - run: uv run --directory packages/a2a-robots-sharpa --locked --extra dev pytest
42
+ env:
43
+ SHARPA_MODEL_DIR: ${{ runner.temp }}/sharpa-model
44
+
45
+ ros2-jazzy:
46
+ # RclpyGateway against a live ROS 2 graph. rclpy comes from the ROS image,
47
+ # so the venv sees the system site-packages.
48
+ runs-on: ubuntu-latest
49
+ container: ros:jazzy-ros-base
50
+ env:
51
+ A2A_ROBOTS_REQUIRE_ROS: "1"
52
+ ROS_AUTOMATIC_DISCOVERY_RANGE: LOCALHOST
53
+ UV_PROJECT_ENVIRONMENT: /opt/a2a-venv
54
+ defaults:
55
+ run:
56
+ shell: bash
57
+ steps:
58
+ - uses: actions/checkout@v4
59
+ - run: apt-get update && apt-get install -y --no-install-recommends ros-jazzy-example-interfaces ros-jazzy-turtlesim
60
+ - uses: astral-sh/setup-uv@v6
61
+ - run: uv venv --system-site-packages --python /usr/bin/python3 "$UV_PROJECT_ENVIRONMENT"
62
+ - run: uv sync --locked --project packages/a2a-robots-ros2 --extra dev
63
+ - run: source /opt/ros/jazzy/setup.bash && uv run --no-sync --project packages/a2a-robots-ros2 pytest packages/a2a-robots-ros2
@@ -0,0 +1,133 @@
1
+ name: Publish to PyPI
2
+
3
+ # release-please.yml dispatches this workflow on each new {component}-v{version}
4
+ # tag. It can also be run by hand, or by publishing a release from the GitHub UI.
5
+ on:
6
+ release:
7
+ types: [published]
8
+ workflow_dispatch:
9
+ inputs:
10
+ test_pypi:
11
+ description: "Publish to TestPyPI instead of PyPI"
12
+ required: false
13
+ default: "false"
14
+ type: choice
15
+ options:
16
+ - "false"
17
+ - "true"
18
+ package:
19
+ description: "Component name when not on a release tag (TestPyPI from a branch)"
20
+ required: false
21
+ default: "a2a-robots"
22
+ type: choice
23
+ options:
24
+ - a2a-robots
25
+ - a2a-robots-lerobot
26
+ - a2a-robots-pollen
27
+ - a2a-robots-ros2
28
+ - a2a-robots-sharpa
29
+
30
+ jobs:
31
+ # Runs first so a run on the wrong ref fails before the test matrix. Later
32
+ # jobs depend on it through test, so a failed check blocks both publish jobs.
33
+ check-ref:
34
+ name: Check the ref is the release tag
35
+ runs-on: ubuntu-latest
36
+ permissions:
37
+ contents: read
38
+ outputs:
39
+ package_dir: ${{ steps.check.outputs.package_dir }}
40
+ package_name: ${{ steps.check.outputs.package_name }}
41
+ version: ${{ steps.check.outputs.version }}
42
+ steps:
43
+ - uses: actions/checkout@v4
44
+
45
+ - uses: actions/setup-python@v5
46
+ with:
47
+ python-version: "3.12"
48
+
49
+ - name: Check the ref is the release tag
50
+ id: check
51
+ env:
52
+ TEST_PYPI: ${{ github.event.inputs.test_pypi }}
53
+ PACKAGE: ${{ github.event.inputs.package }}
54
+ run: python .github/scripts/check_release_ref.py
55
+
56
+ test:
57
+ name: Test
58
+ needs: check-ref
59
+ uses: ./.github/workflows/ci.yml
60
+ permissions:
61
+ contents: read
62
+
63
+ build:
64
+ name: Build distribution
65
+ needs: [check-ref, test]
66
+ runs-on: ubuntu-latest
67
+ permissions:
68
+ contents: read
69
+ steps:
70
+ - uses: actions/checkout@v4
71
+
72
+ - name: Set up Python
73
+ uses: actions/setup-python@v5
74
+ with:
75
+ python-version: "3.12"
76
+
77
+ - name: Install build dependencies
78
+ run: |
79
+ python -m pip install --upgrade pip
80
+ pip install build
81
+
82
+ - name: Build package
83
+ env:
84
+ PACKAGE_DIR: ${{ needs.check-ref.outputs.package_dir }}
85
+ run: python -m build "$PACKAGE_DIR" --outdir dist/
86
+
87
+ - name: Store distribution packages
88
+ uses: actions/upload-artifact@v4
89
+ with:
90
+ name: python-package-distributions
91
+ path: dist/
92
+
93
+ publish-to-testpypi:
94
+ name: Publish to TestPyPI
95
+ if: github.event_name == 'workflow_dispatch' && github.event.inputs.test_pypi == 'true'
96
+ needs: [check-ref, build]
97
+ runs-on: ubuntu-latest
98
+ environment:
99
+ name: testpypi
100
+ url: https://test.pypi.org/p/${{ needs.check-ref.outputs.package_name }}
101
+ permissions:
102
+ id-token: write
103
+ steps:
104
+ - name: Download distributions
105
+ uses: actions/download-artifact@v4
106
+ with:
107
+ name: python-package-distributions
108
+ path: dist/
109
+
110
+ - name: Publish to TestPyPI
111
+ uses: pypa/gh-action-pypi-publish@release/v1
112
+ with:
113
+ repository-url: https://test.pypi.org/legacy/
114
+
115
+ publish-to-pypi:
116
+ name: Publish to PyPI
117
+ if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.test_pypi != 'true')
118
+ needs: [check-ref, build]
119
+ runs-on: ubuntu-latest
120
+ environment:
121
+ name: pypi
122
+ url: https://pypi.org/p/${{ needs.check-ref.outputs.package_name }}
123
+ permissions:
124
+ id-token: write
125
+ steps:
126
+ - name: Download distributions
127
+ uses: actions/download-artifact@v4
128
+ with:
129
+ name: python-package-distributions
130
+ path: dist/
131
+
132
+ - name: Publish to PyPI
133
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,161 @@
1
+ name: Release Please
2
+
3
+ # On every push to main, release-please opens or updates per-package release PRs
4
+ # that bump the version (pyproject.toml, __init__.py) and CHANGELOG.md from the
5
+ # Conventional Commits merged since the last release. The sync-lock job then
6
+ # commits matching uv.lock files to each open release PR: release-please's TOML
7
+ # updater has not updated uv.lock in practice. Merging a PR creates the
8
+ # {component}-v{version} tag and GitHub Release.
9
+ #
10
+ # release-please acts with GITHUB_TOKEN, and GitHub starts no workflow for a
11
+ # release that token creates, so publish.yml would never see the release
12
+ # event. It is dispatched on the new tag instead: workflow_dispatch is exempt
13
+ # from that rule, and publish.yml stays the top-level workflow that PyPI
14
+ # trusted publishing is registered for.
15
+ on:
16
+ push:
17
+ branches: [main]
18
+
19
+ permissions: {}
20
+
21
+ concurrency:
22
+ group: release-please
23
+ cancel-in-progress: false
24
+
25
+ jobs:
26
+ release-please:
27
+ if: github.repository == 'hybroai/a2a-robots'
28
+ runs-on: ubuntu-latest
29
+ permissions:
30
+ contents: write
31
+ pull-requests: write
32
+ outputs:
33
+ releases_created: ${{ steps.release.outputs.releases_created }}
34
+ root_release_created: ${{ steps.release.outputs.release_created }}
35
+ root_tag_name: ${{ steps.release.outputs.tag_name }}
36
+ lerobot_release_created: ${{ steps.release.outputs['packages/a2a-robots-lerobot--release_created'] }}
37
+ lerobot_tag_name: ${{ steps.release.outputs['packages/a2a-robots-lerobot--tag_name'] }}
38
+ pollen_release_created: ${{ steps.release.outputs['packages/a2a-robots-pollen--release_created'] }}
39
+ pollen_tag_name: ${{ steps.release.outputs['packages/a2a-robots-pollen--tag_name'] }}
40
+ ros2_release_created: ${{ steps.release.outputs['packages/a2a-robots-ros2--release_created'] }}
41
+ ros2_tag_name: ${{ steps.release.outputs['packages/a2a-robots-ros2--tag_name'] }}
42
+ sharpa_release_created: ${{ steps.release.outputs['packages/a2a-robots-sharpa--release_created'] }}
43
+ sharpa_tag_name: ${{ steps.release.outputs['packages/a2a-robots-sharpa--tag_name'] }}
44
+ steps:
45
+ - uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1
46
+ id: release
47
+ with:
48
+ token: ${{ secrets.GITHUB_TOKEN }}
49
+ config-file: release-please-config.json
50
+ manifest-file: .release-please-manifest.json
51
+
52
+ sync-lock:
53
+ needs: release-please
54
+ runs-on: ubuntu-latest
55
+ permissions:
56
+ contents: write
57
+ pull-requests: read
58
+ steps:
59
+ - name: Find open release PRs
60
+ id: find
61
+ env:
62
+ GH_TOKEN: ${{ github.token }}
63
+ run: |
64
+ mapfile -t branches < <(gh pr list --repo "$GITHUB_REPOSITORY" --state open \
65
+ --label "autorelease: pending" --json headRefName \
66
+ --jq '.[].headRefName')
67
+ {
68
+ echo "branches<<EOF"
69
+ printf '%s\n' "${branches[@]}"
70
+ echo "EOF"
71
+ } >> "$GITHUB_OUTPUT"
72
+ echo "count=${#branches[@]}" >> "$GITHUB_OUTPUT"
73
+
74
+ - uses: actions/checkout@v4
75
+ if: steps.find.outputs.count != '0'
76
+ with:
77
+ fetch-depth: 0
78
+
79
+ - name: Set up uv
80
+ if: steps.find.outputs.count != '0'
81
+ uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
82
+ with:
83
+ version: "0.7.13"
84
+ python-version: "3.12"
85
+
86
+ - name: Commit bumped versions to uv.lock files
87
+ if: steps.find.outputs.count != '0'
88
+ env:
89
+ BRANCHES: ${{ steps.find.outputs.branches }}
90
+ run: |
91
+ git config user.name "github-actions[bot]"
92
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
93
+
94
+ lock_projects() {
95
+ uv lock
96
+ uv lock --directory packages/a2a-robots-lerobot
97
+ uv lock --directory packages/a2a-robots-pollen
98
+ uv lock --directory packages/a2a-robots-ros2
99
+ uv lock --directory packages/a2a-robots-sharpa
100
+ }
101
+
102
+ while IFS= read -r branch; do
103
+ [ -n "$branch" ] || continue
104
+ echo "::group::${branch}"
105
+ git fetch origin "$branch"
106
+ git checkout "$branch"
107
+ lock_projects
108
+ if git diff --quiet -- \
109
+ uv.lock \
110
+ packages/a2a-robots-lerobot/uv.lock \
111
+ packages/a2a-robots-pollen/uv.lock \
112
+ packages/a2a-robots-ros2/uv.lock \
113
+ packages/a2a-robots-sharpa/uv.lock
114
+ then
115
+ echo "uv.lock files already in sync"
116
+ else
117
+ git add \
118
+ uv.lock \
119
+ packages/a2a-robots-lerobot/uv.lock \
120
+ packages/a2a-robots-pollen/uv.lock \
121
+ packages/a2a-robots-ros2/uv.lock \
122
+ packages/a2a-robots-sharpa/uv.lock
123
+ git commit -m "chore: sync uv.lock with the release version"
124
+ git push origin "HEAD:${branch}"
125
+ fi
126
+ echo "::endgroup::"
127
+ done <<< "$BRANCHES"
128
+
129
+ publish:
130
+ needs: release-please
131
+ if: needs.release-please.outputs.releases_created == 'true'
132
+ runs-on: ubuntu-latest
133
+ permissions:
134
+ actions: write
135
+ steps:
136
+ - name: Dispatch publish.yml on each new release tag
137
+ env:
138
+ GH_TOKEN: ${{ github.token }}
139
+ ROOT_CREATED: ${{ needs.release-please.outputs.root_release_created }}
140
+ ROOT_TAG: ${{ needs.release-please.outputs.root_tag_name }}
141
+ LEROBOT_CREATED: ${{ needs.release-please.outputs.lerobot_release_created }}
142
+ LEROBOT_TAG: ${{ needs.release-please.outputs.lerobot_tag_name }}
143
+ POLLEN_CREATED: ${{ needs.release-please.outputs.pollen_release_created }}
144
+ POLLEN_TAG: ${{ needs.release-please.outputs.pollen_tag_name }}
145
+ ROS2_CREATED: ${{ needs.release-please.outputs.ros2_release_created }}
146
+ ROS2_TAG: ${{ needs.release-please.outputs.ros2_tag_name }}
147
+ SHARPA_CREATED: ${{ needs.release-please.outputs.sharpa_release_created }}
148
+ SHARPA_TAG: ${{ needs.release-please.outputs.sharpa_tag_name }}
149
+ run: |
150
+ dispatch() {
151
+ local created="$1" tag="$2"
152
+ if [ "$created" = "true" ] && [ -n "$tag" ]; then
153
+ echo "Dispatching publish.yml on $tag"
154
+ gh workflow run publish.yml --repo "$GITHUB_REPOSITORY" --ref "$tag"
155
+ fi
156
+ }
157
+ dispatch "$ROOT_CREATED" "$ROOT_TAG"
158
+ dispatch "$LEROBOT_CREATED" "$LEROBOT_TAG"
159
+ dispatch "$POLLEN_CREATED" "$POLLEN_TAG"
160
+ dispatch "$ROS2_CREATED" "$ROS2_TAG"
161
+ dispatch "$SHARPA_CREATED" "$SHARPA_TAG"
@@ -0,0 +1,8 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .venv/
4
+ build/
5
+ dist/
6
+ *.egg-info/
7
+ .pytest_cache/
8
+ .ruff_cache/
@@ -0,0 +1,7 @@
1
+ {
2
+ ".": "0.1.1",
3
+ "packages/a2a-robots-lerobot": "0.1.0",
4
+ "packages/a2a-robots-pollen": "0.1.0",
5
+ "packages/a2a-robots-ros2": "0.1.0",
6
+ "packages/a2a-robots-sharpa": "0.1.0"
7
+ }
@@ -0,0 +1,17 @@
1
+ # Changelog
2
+
3
+ ## [0.1.1](https://github.com/hybroai/a2a-robots/compare/a2a-robots-v0.1.0...a2a-robots-v0.1.1) (2026-11-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **ci:** exclude backend paths from the root release-please package ([0840301](https://github.com/hybroai/a2a-robots/commit/0840301efa45760d5ddcfb466a2f58b6a4ad23d0))
9
+
10
+ ## Changelog
11
+
12
+ All notable changes to this project will be documented in this file.
13
+
14
+ Entries are generated by
15
+ [release-please](https://github.com/googleapis/release-please) from
16
+ Conventional Commits. This project adheres to
17
+ [Semantic Versioning](https://semver.org/).
@@ -0,0 +1,67 @@
1
+ # Contributing
2
+
3
+ ## Release Process
4
+
5
+ **(For maintainers only)**
6
+
7
+ Releases are automated with [release-please](https://github.com/googleapis/release-please).
8
+ Do not bump versions or add CHANGELOG entries by hand.
9
+
10
+ Prerequisite: "Allow GitHub Actions to create and approve pull requests" must
11
+ stay enabled in the repository's Actions settings, or release-please cannot
12
+ open its PRs.
13
+
14
+ Each installable package versions independently:
15
+
16
+ | Package | Component / tag prefix | Directory |
17
+ | --- | --- | --- |
18
+ | `a2a-robots` | `a2a-robots` | `.` |
19
+ | `a2a-robots-lerobot` | `a2a-robots-lerobot` | `packages/a2a-robots-lerobot` |
20
+ | `a2a-robots-pollen` | `a2a-robots-pollen` | `packages/a2a-robots-pollen` |
21
+ | `a2a-robots-ros2` | `a2a-robots-ros2` | `packages/a2a-robots-ros2` |
22
+ | `a2a-robots-sharpa` | `a2a-robots-sharpa` | `packages/a2a-robots-sharpa` |
23
+
24
+ The root package configures `exclude-paths` for every `packages/*` directory so
25
+ backend-only commits do not also bump `a2a-robots`.
26
+
27
+ 1. **Merge changes into `main` with Conventional Commit messages.**
28
+ release-please attributes commits to packages by the paths they touch.
29
+ Prefer scoped subjects such as `feat(lerobot): ...` or `fix(pollen): ...`.
30
+ - `fix:`, `perf:` and `revert:` bump the patch version. `feat:` bumps it
31
+ too while the version is below 1.0.0, and the minor version from 1.0.0 on.
32
+ - `feat!:` or a `BREAKING CHANGE:` footer bumps the minor version below
33
+ 1.0.0, and the major version from 1.0.0 on.
34
+ - `docs:`, `chore:`, `ci:`, `test:` and the other types do not start a release.
35
+ 2. **Review the release PR.** After each push to `main`, release-please opens
36
+ or updates a `chore(main): release <package> X.Y.Z` PR per package that has
37
+ releasable commits. It bumps the version in that package's `pyproject.toml`,
38
+ `__init__.py`, and `.release-please-manifest.json`, and updates its
39
+ `CHANGELOG.md`. The workflow then pushes a
40
+ `chore: sync uv.lock with the release version` commit when locks need it.
41
+ Edit the PR if the changelog needs wording changes.
42
+
43
+ CI does not run on these PRs, because GitHub starts no workflows for PRs
44
+ opened by `GITHUB_TOKEN`. Merge only once each touched `uv.lock` shows the
45
+ new version.
46
+ 3. **Merge the release PR.** release-please creates the
47
+ `{component}-vX.Y.Z` tag and the GitHub Release, then dispatches
48
+ `publish.yml` on that tag. The workflow runs CI, checks that the tag matches
49
+ the package version, builds that package, and publishes it to PyPI after a
50
+ maintainer approves the `pypi` environment deployment.
51
+
52
+ If publishing fails, fix the cause and re-run `publish.yml` from the Actions
53
+ tab on the `{component}-vX.Y.Z` tag. A hand run publishes to PyPI only from a
54
+ matching tag; from a branch, run it with `test_pypi=true` and choose the
55
+ package.
56
+
57
+ ### Versioning
58
+
59
+ We follow [Semantic Versioning](https://semver.org/). Until 1.0.0, versions
60
+ shift down one level: breaking changes bump MINOR, and new features and fixes
61
+ bump PATCH.
62
+
63
+ ### PyPI Trusted Publishing
64
+
65
+ Each package name is registered as a Trusted Publisher for workflow
66
+ `publish.yml` with environment `pypi` (and `testpypi` on TestPyPI). Create the
67
+ GitHub Environments `pypi` and `testpypi` with required reviewers.