diff --git a/pyproject.toml b/pyproject.toml index bc93fc8..167ed41 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,6 +37,26 @@ nonebot-plugin-gscode = "0.2.1" nonebot-plugin-status = "0.7.1" nonebot-plugin-bawiki = "0.9.3" +# --- 运行时补充依赖(与 requirements.txt 同步维护)--- +aiohttp = ">=3.9.5" +beautifulsoup4 = ">=4.13.3" +boto3 = ">=1.39.11" +cjk-textwrap = ">=0.1.0" +cloudscraper = ">=1.2.71" +curl-cffi = ">=0.14.0" +jieba = ">=0.42.1" +lxml = ">=5.4.0" +nonebot-plugin-htmlrender = ">=0.6.7" +numpy = ">=2.2.2" +opencv-contrib-python = ">=4.10.0.84" +psutil = ">=5.9.5" +py-cpuinfo = ">=9.0.0" +pytz = ">=2025.1" +ruamel.yaml = ">=0.17.40" +yt-dlp = ">=2026.6.9" + +taskgroup = { version = ">=0.2.2", markers = "python_version < '3.11'" } + [tool.poetry.group.dev.dependencies] nonebug = "^0.3.3" pytest-cov = "^4.0.0" diff --git a/requirements.txt b/requirements.txt index ba1ff0e..958c422 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,21 +1,40 @@ -nonebot2[fastapi]>=1.9 +nonebot2[fastapi,websockets,httpx]>=2.1.0 -chardet>=5.2.0 -websockets>=10.4 +# --- 基础运行时 --- httpx>=0.23.3 -pillow>=10.3.0 -playwright>=1.44.0 -requests>=2.32.3 -pilmoji>=2.0.4 aiohttp>=3.9.5 -CairoSVG>=2.7.1 -qrcode>=7.4.2 +websockets>=10.4 +requests>=2.32.3 pydantic>=2.7.3 -mcstatus>=11.1.1 SQLAlchemy>=2.0.30 -gradio_client>=1.4.0 -aiohttp-retry>=2.8.3 + +# --- 图像 / 渲染 --- +pillow>=10.3.0 +pilmoji>=2.0.4 +CairoSVG>=2.7.1 +playwright>=1.50.0 +nonebot-plugin-htmlrender>=0.6.7 # hexi/core/message_utils.py、helldivers、picstatus +numpy>=2.2.2 +opencv-contrib-python>=4.10.0.84 # bf_bot +cjk-textwrap>=0.1.0 # makeaquote + +# --- 抓取 / 网络 --- +yt-dlp>=2026.6.9 # video_analysis +boto3>=1.39.11 # video_analysis S3 存储 +cloudscraper>=1.2.71 # picfinder_take +curl-cffi>=0.14.0 # bf_bot (BF6) +lxml>=5.4.0 # picfinder_take +beautifulsoup4>=4.13.3 # steam_info +mcstatus>=11.1.1 # mc_server_status + +# --- 文本 / 系统 --- +jieba>=0.42.1 # learning_chat +ruamel.yaml>=0.17.40 # learning_chat +pytz>=2025.1 # steam_info +psutil>=5.9.5 # web_hub dashboard、picstatus +py-cpuinfo>=9.0.0 # web_hub dashboard、picstatus +taskgroup>=0.2.2 # picstatus(仅 py<3.11 需要) # nonebot_plugin_group_daily_analysis ulid-py>=1.1.0 -diskcache>=5.6.3 \ No newline at end of file +diskcache>=5.6.3