Creator App Tests / PR Spam Gate (push) Skipped
Frontend Tests / PR Spam Gate (push) Skipped
NPM Format (website & console) / PR Spam Gate (push) Skipped
Pre-commit Checks / PR Spam Gate (push) Skipped
QwenPaw Creator Plugin Release / check-version (push) Canceled after 0s
QwenPaw Creator Plugin Release / upload-oss (push) Canceled after 0s
Tests / PR Spam Gate (push) Skipped
CodeQL / CodeQL (python) (push) Canceled after 0s
CodeQL / CodeQL (typescript) (push) Canceled after 0s
Creator App Tests / Creator Backend Tests (push) Canceled after 0s
Creator App Tests / Creator UI Build & Tests (push) Canceled after 0s
E2E Smoke Tests / Playwright UI Smoke (push) Canceled after 0s
Frontend Tests / Detect console changes (push) Canceled after 0s
NPM Format (website & console) / website format check (push) Canceled after 0s
NPM Format (website & console) / console format check (push) Canceled after 0s
Pre-commit Checks / Pre-commit (push) Canceled after 0s
QwenPaw Data Plugin Release / check-version (push) Canceled after 0s
Tests / Detect code changes (push) Canceled after 0s
Frontend Tests / Vitest Unit Tests (push) Canceled after 0s
Frontend Tests / Frontend Summary (push) Canceled after 0s
QwenPaw Data Plugin Release / upload-oss (push) Canceled after 0s
Tests / Maintainer Approval (push) Canceled after 0s
Tests / Unit Tests - py3.11 - macos-latest (push) Canceled after 0s
Tests / Unit Tests - py3.11 - ubuntu-latest (push) Canceled after 0s
Tests / Unit Tests - py3.13 - ubuntu-latest (push) Canceled after 0s
Tests / Unit Tests - py3.11 - windows-latest (push) Canceled after 0s
Tests / Contract Tests - py3.11 - macos-latest (push) Canceled after 0s
Tests / Contract Tests - py3.11 - ubuntu-latest (push) Canceled after 0s
Tests / Contract Tests - py3.13 - ubuntu-latest (push) Canceled after 0s
Tests / Contract Tests - py3.11 - windows-latest (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - macos-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - macos-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - macos-latest - p2 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - fallback (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - p2 (push) Canceled after 0s
Tests / Integrated Tests - py3.13 - ubuntu-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.13 - ubuntu-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.13 - ubuntu-latest - p2 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - windows-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - windows-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - windows-latest - p2 (push) Canceled after 0s
Tests / Coverage Report (push) Canceled after 0s
Tests / Test Summary (push) Canceled after 0s
49 lines
1.8 KiB
Bash
Executable File
49 lines
1.8 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# -*- coding: utf-8 -*-
|
|
# Install the qwenpaw-data runtime from PyPI into the current Python environment.
|
|
#
|
|
# This is the out-of-the-box path: it does not require a QwenPaw-Data source
|
|
# workspace, uv, or any development tooling. It simply pip-installs the four
|
|
# runtime packages that the qwenpaw-data plugin needs to start its managed context
|
|
# service.
|
|
#
|
|
# If you prefer to run against an existing Context service, set
|
|
# QWENPAW_DATA_CONTEXT_MODE=external instead of installing the runtime locally.
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
APP_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
|
|
PYTHON_BIN="${QWENPAW_DATA_CONTEXT_PYTHON:-${PYTHON:-$(command -v python3 || command -v python)}}"
|
|
if [[ -z "$PYTHON_BIN" ]]; then
|
|
echo "ERROR: no Python interpreter found. Set PYTHON or QWENPAW_DATA_CONTEXT_PYTHON." >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo "==> Installing qwenpaw-data runtime packages with $PYTHON_BIN"
|
|
"$PYTHON_BIN" -m pip install --upgrade \
|
|
"qwenpaw-data-context>=0.1,<0.2" \
|
|
"qwenpaw-data-host-core>=0.1,<0.2" \
|
|
"qwenpaw-data-cli>=0.1,<0.2" \
|
|
"qwenpaw-data-skills>=0.1,<0.2"
|
|
|
|
echo ""
|
|
echo "==> Installed versions:"
|
|
for package_name in qwenpaw-data-context qwenpaw-data-host-core qwenpaw-data-cli qwenpaw-data-skills; do
|
|
"$PYTHON_BIN" -c \
|
|
'from importlib.metadata import version; import sys; print(f" {sys.argv[1]}=={version(sys.argv[1])}")' \
|
|
"$package_name"
|
|
done
|
|
|
|
echo ""
|
|
echo "==> Verifying context service entry point"
|
|
"$PYTHON_BIN" -c "import context_manager.api.server"
|
|
|
|
echo ""
|
|
echo "QwenPaw Data runtime is ready. Start QwenPaw with the qwenpaw-data plugin enabled."
|
|
echo "To use an external Context service instead, set:"
|
|
echo " export QWENPAW_DATA_CONTEXT_MODE=external"
|
|
echo " export QWENPAW_DATA_CONTEXT_URL=<context-service-url>"
|
|
echo " export QWENPAW_DATA_CONTEXT_TOKEN=<token>"
|