Skip to content

Commit f83c3d9

Browse files
committed
fix: use dspy 2.5.x and check PATH python first for CI/CD
1 parent 5b57fed commit f83c3d9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.2
1+
0.5.3

scripts/build_runtime_local.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ cp "$ROOT_DIR/npx/python/pyproject.toml" "$STAGE_DIR/app/python/"
5959
# 3) Install python deps into pydeps (no venv)
6060
echo "==> Installing python deps into pydeps/ (no venv)"
6161
# Find a working system python with pip (avoid venv issues)
62+
# Check python3 from PATH first (GitHub Actions sets this up), then homebrew, then system
6263
SYS_PYTHON=""
63-
for py in /opt/homebrew/opt/python@3.12/bin/python3.12 /opt/homebrew/bin/python3 /usr/local/bin/python3 /usr/bin/python3; do
64-
if [ -x "$py" ] && "$py" -m pip --version >/dev/null 2>&1; then
64+
for py in python3 python3.12 /opt/homebrew/opt/python@3.12/bin/python3.12 /opt/homebrew/bin/python3 /usr/local/bin/python3 /usr/bin/python3; do
65+
if command -v "$py" >/dev/null 2>&1 && "$py" -m pip --version >/dev/null 2>&1; then
6566
SYS_PYTHON="$py"
6667
break
6768
fi
@@ -73,7 +74,7 @@ fi
7374
echo "==> Using Python: $SYS_PYTHON"
7475
# Create a temporary requirements file pointing to the python package
7576
cat > "$STAGE_DIR/pydeps_install.txt" <<EOF
76-
dspy>=2.6.27,<3.0.0
77+
dspy>=2.5.40,<2.6.0
7778
rich>=13.0.0
7879
python-dotenv>=1.0.0
7980
httpx>=0.28.1

0 commit comments

Comments
 (0)