Skip to content

Commit a204614

Browse files
committed
fix(ci): restore build dependency fallback and add --group ci to uv sync
- Add --group ci to uv sync in semantic-release.yml so the build package (in [dependency-groups].ci) is installed before PSR runs - Restore self-healing fallback in build.sh: if build is not found, install it via uv pip or pip rather than hard-failing - Keep --no-isolation on python -m build to avoid broken .venv/bin/pip stub in uv-managed venvs The original build.sh had a self-healing fallback that worked at v1.5.2. PR #197 added uv sync --all-extras (correct, needed for sdk-go-export-spec) but --all-extras does not install [dependency-groups]. PR #198 removed the fallback assuming --all-extras covered build — it does not.
1 parent 0489190 commit a204614

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/semantic-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
uses: astral-sh/setup-uv@v7
103103

104104
- name: Install ORB
105-
run: uv sync --all-extras
105+
run: uv sync --all-extras --group ci
106106

107107
- name: Python Semantic Release
108108
id: release

dev-tools/package/build.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@ if [ "$QUIET" = false ]; then
3434
echo "INFO: Checking build dependencies..."
3535
fi
3636
if ! $RUN_TOOL python -c "import build" 2>/dev/null; then
37-
echo "ERROR: 'build' package not found. Ensure 'uv sync --all-extras' has been run." >&2
38-
exit 1
37+
if [ "$QUIET" = false ]; then
38+
echo "INFO: Installing build dependencies..."
39+
fi
40+
if command -v uv >/dev/null 2>&1; then
41+
uv pip install build --quiet
42+
else
43+
$RUN_TOOL pip install build
44+
fi
3945
fi
4046

4147
# Build package

0 commit comments

Comments
 (0)