release(cli): Support bookworm, trixie, etc. (#5975)

Also add support for pinning to a semantic version.
This commit is contained in:
William FH
2025-08-20 15:40:04 +00:00
committed by GitHub
parent ef65d3cf88
commit 998e194e82
15 changed files with 308 additions and 174 deletions
+4 -3
View File
@@ -62,9 +62,10 @@ jobs:
working-directory: ${{ inputs.working-directory }}
run: |
PKG_NAME=$(grep -m 1 "^name = " pyproject.toml | cut -d '"' -f 2)
# sdk-py uses dynamic versioning from langgraph_sdk/__init__.py
if [ "$PKG_NAME" = "langgraph-sdk" ]; then
VERSION=$(grep -m 1 '^__version__' langgraph_sdk/__init__.py | cut -d '"' -f 2)
if grep -q 'dynamic.*=.*\[.*"version".*\]' pyproject.toml; then
# handle dynamic versioning
DIR_NAME=$(echo "$PKG_NAME" | tr '-' '_')
VERSION=$(grep -m 1 '^__version__' "${DIR_NAME}/__init__.py" | cut -d '"' -f 2)
else
VERSION=$(grep -m 1 "^version = " pyproject.toml | cut -d '"' -f 2)
fi