mirror of
https://github.com/Cccc-owo/CheckInApp.git
synced 2026-06-17 05:56:29 +00:00
build(backend): manage dependencies with uv
BREAKING CHANGE: apps/backend/requirements.txt is no longer the backend dependency source. Use uv sync and uv run python main.py for backend setup and startup.
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
# Web Framework
|
||||
fastapi>=0.115.12
|
||||
uvicorn[standard]>=0.34.0
|
||||
|
||||
# Database
|
||||
sqlalchemy>=2.0.36
|
||||
|
||||
# Validation & Settings
|
||||
pydantic[email]>=2.10.6
|
||||
pydantic-settings>=2.7.1
|
||||
python-dotenv>=1.0.1
|
||||
|
||||
# Authentication & Security
|
||||
pyjwt>=2.10.1
|
||||
bcrypt>=4.2.2
|
||||
slowapi>=0.1.9
|
||||
|
||||
# Task Scheduling
|
||||
apscheduler>=3.10.4
|
||||
croniter>=5.0.3
|
||||
|
||||
# Automation
|
||||
selenium>=4.28.1
|
||||
filelock>=3.16.1
|
||||
|
||||
# HTTP & Utilities
|
||||
requests>=2.32.3
|
||||
@@ -3,10 +3,7 @@
|
||||
创建管理员用户的脚本
|
||||
|
||||
使用方法:
|
||||
PYTHONPATH=apps python apps/backend/scripts/create_admin.py
|
||||
|
||||
或使用虚拟环境:
|
||||
PYTHONPATH=apps ./venv/bin/python apps/backend/scripts/create_admin.py
|
||||
uv run python apps/backend/scripts/create_admin.py
|
||||
"""
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
- last_failed_login: 最后一次登录失败时间
|
||||
|
||||
运行方式:
|
||||
PYTHONPATH=apps python -m backend.scripts.migrate_add_account_lockout
|
||||
python -m backend.scripts.migrate_add_account_lockout
|
||||
uv run python -m backend.scripts.migrate_add_account_lockout
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
||||
Reference in New Issue
Block a user