[build-system] requires = ["setuptools>=68"] build-backend = "setuptools.build_meta" [project] name = "study-tool" version = "0.0.1" description = "东莞市教师培训平台多账号学习控制台" requires-python = ">=3.10" dependencies = [ "fastapi>=0.110", "uvicorn>=0.27", "requests>=2.31", "beautifulsoup4>=4.12", "lxml>=5.0", "playwright>=1.40", "ddddocr", "python-dotenv>=1.0", ] [project.scripts] study-tool = "study_tool.app:main" [tool.setuptools] package-dir = { "" = "src" } [tool.setuptools.packages.find] where = ["src"] # 国内镜像:uv 默认走阿里云源,不再直连 pypi.org。 # 换源:UV_DEFAULT_INDEX=https://mirrors.cloud.tencent.com/pypi/simple uv sync # 想回官方:UV_DEFAULT_INDEX=https://pypi.org/simple uv sync # (清华源 pypi.tuna.tsinghua.edu.cn 会 403 uv 的 JSON simple 请求,别用) [[tool.uv.index]] name = "aliyun" url = "https://mirrors.aliyun.com/pypi/simple" default = true