增加表单

This commit is contained in:
dekun
2026-05-22 12:03:11 +08:00
parent 25d17b1645
commit 7d263c349f
2 changed files with 56 additions and 0 deletions
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# 修复中控缺 python-multipart 等问题
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
if [[ ! -d .venv ]]; then
python3 -m venv .venv
fi
# shellcheck source=/dev/null
source .venv/bin/activate
pip install -U pip
pip install -r requirements.txt
echo "OK: $(python -c 'import multipart; print("python-multipart", multipart.__version__)' 2>/dev/null || pip show python-multipart | head -1)"
echo "Hub ping (需 hub 已启动): curl -s http://127.0.0.1:5100/api/ping"