From 90a1bdbbf476a5ab333ebf2dfd8b5d55d821e79e Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Mon, 20 Apr 2026 15:34:27 -0700 Subject: [PATCH] fix: pin a2a-sdk<1.0 to keep a2a.server.apps import working MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit a2a-sdk 1.0.0 restructured the package and removed a2a.server.apps, which main.py imports directly for A2AStarletteApplication. The current >=0.3.25 constraint resolves to 1.0.0 on fresh installs and the runtime crashes at startup with ModuleNotFoundError — which is exactly what bit production workspace EC2 instances provisioned on 2026-04-20. Bump to 0.1.3 and pin <1.0 until we're ready to migrate to the 1.x import paths. Companion fix in molecule-controlplane PR #174 pins at pip-install time; this PR fixes the upstream package so other callers don't re-hit the same trap. Co-Authored-By: Claude Opus 4.7 (1M context) --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e8a1968..48404dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,14 +4,16 @@ build-backend = "setuptools.build_meta" [project] name = "molecule-ai-workspace-runtime" -version = "0.1.2" +version = "0.1.3" description = "Molecule AI workspace runtime — shared infrastructure for all agent adapters" requires-python = ">=3.11" license = {text = "BSL-1.1"} readme = "README.md" # Don't pin heavy deps — each adapter adds its own dependencies = [ - "a2a-sdk[http-server]>=0.3.25", + # Upper bound: a2a-sdk 1.0.0 dropped the a2a.server.apps module we import + # in main.py. Keep on the 0.3.x line until we migrate to the 1.x API. + "a2a-sdk[http-server]>=0.3.25,<1.0", "httpx>=0.27.0", "uvicorn>=0.30.0", "starlette>=0.38.0",