From 77c11669d965a2eb1820ba7f433407f7a989f016 Mon Sep 17 00:00:00 2001 From: Jonas Hungershausen Date: Mon, 21 Sep 2026 10:37:14 -0400 Subject: [PATCH] fix: publish Python SDK again and fail the release when it does not Python 3.12 venvs no longer include setuptools, so setup.py crashed and twine had nothing to upload. The failure was masked because the python function runs inside an || list, which disables errexit, and the trailing to_git call returned 0. PyPI has been stuck at 1.22.28 since March. Co-Authored-By: Claude Fable 5.1 --- scripts/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release.sh b/scripts/release.sh index 7ecdb994541..2adaba122d6 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -171,7 +171,7 @@ golang() { python() { dir="clients/${PROJECT}/python" - (cd "${dir}"; rm -rf "dist" || true; pip install wheel; python3 setup.py sdist bdist_wheel; twine upload "dist/*") + (cd "${dir}"; rm -rf "dist" && pip install setuptools wheel && python3 setup.py sdist bdist_wheel && twine upload "dist/*") || return 1 to_git "python" "yes" }