Files
Auto_Bangumi/backend/sdk/pyproject.toml
Estrella Pan ca7fcdf058 chore(deps): httpx 全面迁移到 httpx2,SOCKS5 改用原生代理,升级 LLM SDK 大版本
- 依赖 httpx[socks] 换为 httpx2[socks]>=2.15,移除 httpx-socks / python-socks 及其 mypy 覆盖
- backend/src、ab_sdk、e2e 与单元测试统一使用 httpx2(异常类与 httpx 不通用)
- request_url 与 LLM 客户端工厂合并为 proxy_url(),SOCKS5 走 httpx2 原生代理(主机名由代理解析)
- 保留 #1104 过期连接池替换:httpcore2 2.15.1 的 start_tls 失败路径仍会泄漏隧道
- 日志同时压低 httpx2 与 httpx(google-genai、mcp 仍依赖旧 httpx)
- openai 3.35.1 / anthropic 1.15.0 / google-genai 2.31.0;结构化解析改用 chat.completions.parse
- ab_sdk 升到 0.6.0,客户端类型改为 httpx2.AsyncClient,同步插件文档
2026-10-20 10:56:32 +02:00

36 lines
959 B
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AutoBangumi 插件 SDK 的独立打包:源码仍在 backend/src/ab_sdk,宿主直接 import,
# 这里只负责把它构建成 autobangumi-sdk 轮子(uv build --wheel backend/sdk),
# 供插件作者安装 ab_sdk 与 ab-plugin 命令行,无需整个宿主。
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[project]
name = "autobangumi-sdk"
dynamic = ["version"]
description = "AutoBangumi plugin SDK and ab-plugin CLI"
requires-python = ">=3.14"
license = "MIT"
dependencies = [
"pydantic>=2.0.0",
"httpx2>=2.15",
"packaging>=26.0",
]
[project.optional-dependencies]
# ab_sdk.testing 的契约测试套件以 pytest 运行
test = ["pytest>=8.0.0"]
[project.scripts]
ab-plugin = "ab_sdk.cli:main"
[tool.setuptools]
package-dir = { "" = "../src" }
packages = ["ab_sdk"]
[tool.setuptools.dynamic]
version = { attr = "ab_sdk.SDK_VERSION" }
[tool.setuptools.package-data]
ab_sdk = ["py.typed"]