From 508604610fea071385ed925c3b831671b320c50a Mon Sep 17 00:00:00 2001 From: snowy-yang <102860110+snowy-yang@users.noreply.github.com> Date: Thu, 24 Sep 2026 21:55:41 +0800 Subject: [PATCH] =?UTF-8?q?qqbotsdk=20=E4=BE=9D=E8=B5=96=E6=94=B9=E8=B5=B0?= =?UTF-8?q?=20GitHub=20archive=20=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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。 --- README.md | 2 +- pyproject.toml | 2 +- uv.lock | 14 ++++++++++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 68c62b5..992bc84 100644 --- a/README.md +++ b/README.md @@ -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. **歌曲卡片**——点编号弹出卡片:专辑封面图 + 歌名/歌手/来源 + `[▶ 播放][⬇ 下载]` 回调按钮,再点才执行 diff --git a/pyproject.toml b/pyproject.toml index ab038d4..b850172 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/uv.lock b/uv.lock index 7673e9a..127c201 100644 --- a/uv.lock +++ b/uv.lock @@ -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"