This repository has been archived on 2026-02-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
cvc_checker/checker/scripts/setup_with_uv.sh
2026-01-06 12:06:12 +08:00

25 lines
578 B
Bash
Executable File

#!/bin/bash
# 使用uv安装和运行项目
set -e
echo "🚀 使用 uv 设置项目..."
# 检查uv是否安装
if ! command -v uv &> /dev/null; then
echo "❌ uv 未安装,请先安装 uv:"
echo " curl -LsSf https://astral.sh/uv/install.sh | sh"
exit 1
fi
# 安装项目依赖
echo "📦 安装项目依赖..."
uv pip install -e .
echo "✅ 安装完成!"
echo ""
echo "现在你可以运行:"
echo " checker # 运行命令行工具"
echo " python -m checker # 或使用模块方式"
echo " uv run python -m checker # 使用uv运行"