mirror of
https://github.com/andrewyng/openworker.git
synced 2026-09-01 15:36:08 +00:00
The Python import namespace (coworker) and the live auth config strings are intentionally unchanged.
23 lines
955 B
Bash
23 lines
955 B
Bash
#!/usr/bin/env bash
|
|
# One-time dev bootstrap for a fresh checkout: creates the Python venv every
|
|
# from-source flow expects at .venv — the browser dev flow runs its
|
|
# openworker-server directly, and the Tauri desktop shell falls back to it when
|
|
# no packaged sidecar binary is present (src-tauri/src/lib.rs, resolution step 3).
|
|
#
|
|
# Usage: bash packaging/setup_dev_env.sh
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
VENV="$ROOT/.venv"
|
|
|
|
python3 -m venv "$VENV"
|
|
# The coworker package (server, engine, connectors) + inbound-messaging extras.
|
|
# aisuite comes in as a regular dependency (git-pinned in pyproject.toml until
|
|
# the next PyPI release).
|
|
"$VENV/bin/pip" install --quiet --upgrade pip
|
|
"$VENV/bin/pip" install --quiet -e "$ROOT[messaging,dev]"
|
|
|
|
"$VENV/bin/python" -c 'import aisuite, coworker' # fail loudly if the wiring broke
|
|
echo "Ready: $VENV"
|
|
echo " server: $VENV/bin/openworker-server --cwd /path/to/your/project --port 8765"
|