File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,9 +138,11 @@ do not infer from kube context.
138138## Python Wheel Packaging
139139
140140The generated protobuf/gRPC stubs under ` python/openshell/_proto/ ` are gitignored
141- build outputs of ` mise run python:proto ` . maturin honors ` .gitignore ` when
142- collecting ` python-source ` files, so native builds (Linux CI, local
143- ` pip install . ` ) would drop them and ship an unimportable wheel. ` pyproject.toml `
141+ build outputs of ` mise run python:proto ` . The task uses ` uv run --frozen ` to
142+ synchronize the current worktree's ` .venv ` from ` uv.lock ` before generation.
143+ maturin honors ` .gitignore ` when collecting ` python-source ` files, so native
144+ builds (Linux CI, local ` pip install . ` ) would drop them and ship an unimportable
145+ wheel. ` pyproject.toml `
144146pins them back in with ` [tool.maturin].include ` globs. The release workflows
145147install each Linux wheel in a clean image and import ` openshell.sandbox ` as a
146148smoke check.
Original file line number Diff line number Diff line change @@ -218,11 +218,10 @@ hide = true
218218
219219["python:proto" ]
220220description = " Generate Python protobuf stubs from .proto files"
221- env = { UV_NO_SYNC = " 1" }
222221run = """
223222#!/usr/bin/env bash
224223set -euo pipefail
225- uv run python -m grpc_tools.protoc \
224+ uv run --frozen python -m grpc_tools.protoc \
226225 -Iproto \
227226 --python_out=python/openshell/_proto \
228227 --pyi_out=python/openshell/_proto \
@@ -233,7 +232,7 @@ uv run python -m grpc_tools.protoc \
233232 proto/options.proto \
234233 proto/sandbox.proto
235234# Fix absolute imports in generated stubs to use package-relative imports
236- uv run python - <<'PY'
235+ uv run --frozen python - <<'PY'
237236from pathlib import Path
238237import re
239238
You can’t perform that action at this time.
0 commit comments