From bac1cba524dc3b64534d3ce6206f01120896cc0d Mon Sep 17 00:00:00 2001 From: Edgar Arakelyan Date: Wed, 30 Sep 2026 11:02:48 -1000 Subject: [PATCH] build(ci): publish the protocol as agentenv-framework-protocol on the CircleCI index too The CircleCI publish renamed the protocol distribution back to agentenv-protocol and pinned the framework to that name, so the package had one name on PyPI and another there. Both jobs now publish the same metadata: agentenv-framework-protocol, with agentenv-framework pinned to its exact version. Co-Authored-By: Claude Opus 5.5 (1M context) --- .circleci/config.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3ed8de58..abd832a4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -82,23 +82,19 @@ jobs: name: Build and publish the protocol package command: | set -euo pipefail - # This index carries the protocol under its former distribution name, agentenv-protocol; - # PyPI has it as agentenv-framework-protocol (publish-pypi.yml). - sed -i 's/^name = "agentenv-framework-protocol"$/name = "agentenv-protocol"/' packages/agentenv-protocol/pyproject.toml - grep -q '^name = "agentenv-protocol"$' packages/agentenv-protocol/pyproject.toml python -m build packages/agentenv-protocol --outdir packages/agentenv-protocol/dist twine upload --repository codeartifact packages/agentenv-protocol/dist/* - run: - name: Build package (pin the exact protocol version, by this index's name) + name: Build package (pin the exact protocol version) command: | set -euo pipefail PV=$(sed -n 's/^version = "\(.*\)"/\1/p' packages/agentenv-protocol/pyproject.toml) # Only the quoted requirement: the directory name also appears in the sdist include list # and the uv workspace members, and the bare name keys [tool.uv.sources]; none may change. - sed -i "s/\"agentenv-framework-protocol[^\"]*\"/\"agentenv-protocol==${PV}\"/" pyproject.toml + sed -i "s/\"agentenv-framework-protocol[^\"]*\"/\"agentenv-framework-protocol==${PV}\"/" pyproject.toml python -c "import tomllib; tomllib.load(open('pyproject.toml','rb'))" - grep -q "\"agentenv-protocol==${PV}\"" pyproject.toml + grep -q "\"agentenv-framework-protocol==${PV}\"" pyproject.toml python -m build - run: