c3fad25ee5
- __version__.py 当前为动态加载实现(配置优先、_DEFAULT_APP_VERSION 兜底),脚本原先只认静态 __version__ 行导致报错 - 与 sync_tauri_version.mjs 的 readPythonVersion 兼容逻辑对齐:优先 __version__,回退 _DEFAULT_APP_VERSION - 已执行 ./scripts/version-bump.sh 0.0.1b2 → Tauri 0.0.1-beta.2
Scripts
Run from repo root.
Build wheel (with latest console)
bash scripts/wheel_build.sh
- Builds the console frontend (
console/), copiesconsole/disttosrc/pineagents/console/dist, then builds the wheel. Output:dist/*.whl.
Build website
bash scripts/website_build.sh
- Installs dependencies (pnpm or npm) and runs the Vite build. Output:
website/dist/.
Build Docker image
bash scripts/docker_build.sh [IMAGE_TAG] [EXTRA_ARGS...]
- Default tag:
qwenpaw:latest. Usesdeploy/Dockerfile(multi-stage: builds console then Python app). - Example:
bash scripts/docker_build.sh myreg/qwenpaw:v1 --no-cache.
Run Test
# Run all tests
python scripts/run_tests.py
# Run all unit tests
python scripts/run_tests.py -u
# Run unit tests for a specific module
python scripts/run_tests.py -u providers
# Run integration tests
python scripts/run_tests.py -i
# Run all tests and generate a coverage report
python scripts/run_tests.py -a -c
# Run tests in parallel (requires pytest-xdist)
python scripts/run_tests.py -p
# Show help
python scripts/run_tests.py -h