Skip to content
Merged
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
10 changes: 3 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading