qqbotsdk 依赖改走 GitHub archive 源

GitHub(snowy-yang/qqbotsdk)已是 SDK 主仓库,Gitea 反为其镜像。
[tool.uv.sources] 从 Gitea git 源切到 GitHub archive tarball 的 url 源:
安装不再需要 git,uv 按 sdist 构建、lock 记录内容 hash;升级依赖用
uv lock --upgrade-package qqbotsdk 重取 main 最新。README 的 SDK 链接
同步指向 GitHub。
This commit is contained in:
snowy-yang committed 2026-09-24 21:55:41 +08:00
1 parent 94ee3298b7
commit 508604610f
3 files changed
+14 -4

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
# musicbot
QQ 群点歌 bot,基于 [qqbotsdk](https://gitea.4i.hk/hhhge/qqbotsdk),两步点歌:
QQ 群点歌 bot,基于 [qqbotsdk](https://github.com/snowy-yang/qqbotsdk),两步点歌:
1. **选歌菜单**——`点歌 <歌名 [歌手]>`(或斜杠指令 `/点歌 <歌名 [歌手]>`)只负责选歌:Markdown 歌单(编号 + 歌名/歌手,默认 QQ 音乐源,搜不到自动聚合兜底),下方每行 5 个编号回调按钮 + `[上一页][下一页]`(每页 `MENU_PAGE_SIZE` 首,默认 10,上限 20)
2. **歌曲卡片**——点编号弹出卡片:专辑封面图 + 歌名/歌手/来源 + `[▶ 播放][⬇ 下载]` 回调按钮,再点才执行
+1 -1
View File
@@ -19,7 +19,7 @@ module-root = "" # flat 布局:musicbot/ 在仓库根而非 src/ 下
dev = ["pyright", "pytest", "pytest-asyncio", "ruff"]
[tool.uv.sources]
qqbotsdk = { git = "https://gitea.4i.hk/hhhge/qqbotsdk.git" }
qqbotsdk = { url = "https://github.com/snowy-yang/qqbotsdk/archive/refs/heads/main.tar.gz" }
[tool.pytest.ini_options]
asyncio_mode = "auto"
Generated
+12 -2
View File
@@ -487,7 +487,7 @@ dev = [
[package.metadata]
requires-dist = [
{ name = "loguru" },
{ name = "qqbotsdk", git = "https://gitea.4i.hk/hhhge/qqbotsdk.git" },
{ name = "qqbotsdk", url = "https://github.com/snowy-yang/qqbotsdk/archive/refs/heads/main.tar.gz" },
]
[package.metadata.requires-dev]
@@ -690,7 +690,7 @@ wheels = [
[[package]]
name = "qqbotsdk"
version = "0.1.0"
source = { git = "https://gitea.4i.hk/hhhge/qqbotsdk.git#b37a53f6e0dec360a3e684fbafd7140ec00a2711" }
source = { url = "https://github.com/snowy-yang/qqbotsdk/archive/refs/heads/main.tar.gz" }
dependencies = [
{ name = "aiohttp" },
{ name = "cryptography" },
@@ -698,6 +698,16 @@ dependencies = [
{ name = "python-dotenv" },
{ name = "ujson" },
]
sdist = { hash = "sha256:59960044772157383d1fba3506531e34f89102d17fcad9a14a99873566b6c526" }
[package.metadata]
requires-dist = [
{ name = "aiohttp", specifier = ">=3.14.3" },
{ name = "cryptography", specifier = ">=50.0.1" },
{ name = "loguru", specifier = ">=0.7.3" },
{ name = "python-dotenv", specifier = ">=1.2.3" },
{ name = "ujson", specifier = ">=6.0.0" },
]
[[package]]
name = "ruff"