From 3bbdf9ac2ee30c54eb795b9d8ec7c05f2900d6bb Mon Sep 17 00:00:00 2001 From: Stone Date: Sun, 3 Nov 2024 17:26:31 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=8F=91=E5=B8=83=200.11.0=20(#154)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .release.py | 1 + docs/changelog.md | 23 +++++++++++++++++++ package.json | 2 +- .../pyproject.toml | 4 ++-- .../alicebot-adapter-cqhttp/pyproject.toml | 4 ++-- .../alicebot-adapter-dingtalk/pyproject.toml | 4 ++-- .../alicebot-adapter-mirai/pyproject.toml | 4 ++-- .../alicebot-adapter-onebot/pyproject.toml | 4 ++-- .../alicebot-adapter-telegram/pyproject.toml | 4 ++-- pyproject.toml | 2 +- uv.lock | 14 +++++------ 11 files changed, 45 insertions(+), 21 deletions(-) diff --git a/.release.py b/.release.py index 2d74e6f..e62c2ab 100644 --- a/.release.py +++ b/.release.py @@ -80,5 +80,6 @@ def write_version_toml(file: Path, version: str, *, is_package: bool = False) -> ).replace("_", "\\_") ) subprocess.run(["pnpm", "exec", "prettier", "--write", "docs/changelog.md"], check=True) +subprocess.run(["uv", "sync", "--all-extras", "--dev", "--upgrade"], check=True) subprocess.run(["git", "add", "."], check=True) subprocess.run(["git", "commit", "-m", "chore: 发布 " + version], check=True) diff --git a/docs/changelog.md b/docs/changelog.md index dbc3cc6..c495393 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -4,6 +4,29 @@ sidebar: auto # 更新日志 +## [0.11.0](https://github.com/AliceBotProject/alicebot/compare/v0.10.0...v0.11.0) (2024-11-03) + +### Bug Fixes + +- 修复部分类型错误 ([#131](https://github.com/AliceBotProject/alicebot/issues/131)) ([35d85b0](https://github.com/AliceBotProject/alicebot/commit/35d85b0bb9e4ef628f31d3d35775fc452cd50c06)) +- **onebot:** 修复 OneBot 适配器 typo ([#132](https://github.com/AliceBotProject/alicebot/issues/132)) ([5a23f51](https://github.com/AliceBotProject/alicebot/commit/5a23f519a4c4e70e69557610b70ad3aa00990cf6)) + +### Features + +- 使用 AnyIO 重构 ([#138](https://github.com/AliceBotProject/alicebot/issues/138)) ([c518c2b](https://github.com/AliceBotProject/alicebot/commit/c518c2b489332bfb482cff65db967722079e65c1)) +- 添加 override 装饰器 ([#130](https://github.com/AliceBotProject/alicebot/issues/130)) ([7b2a9b6](https://github.com/AliceBotProject/alicebot/commit/7b2a9b6b9cb8e1f8a6d34f84f5a2eb918e013be0)) +- 移除 Python 3.8 支持 ([#129](https://github.com/AliceBotProject/alicebot/issues/129)) ([1813a64](https://github.com/AliceBotProject/alicebot/commit/1813a6446cadb002475f4d475d5c5e0f206af972)) +- **bot:** 为 Bot 类的 \_\_init\_\_ 添加用于控制是否处理系统信号的 handle_signals 参数 ([#140](https://github.com/AliceBotProject/alicebot/issues/140)) ([a0e175f](https://github.com/AliceBotProject/alicebot/commit/a0e175f4cece5b6304c10dd972a17b4241142862)) +- **bot:** Bot 类新增用于安全退出的 exit() 方法 ([#139](https://github.com/AliceBotProject/alicebot/issues/139)) ([7a58d41](https://github.com/AliceBotProject/alicebot/commit/7a58d41b81048365ce98df552e84370add9b2394)) +- **cqhttp:** 修改 CQHTTP 适配器事件的 detail_type 判断方式 ([#146](https://github.com/AliceBotProject/alicebot/issues/146)) ([ffa2c40](https://github.com/AliceBotProject/alicebot/commit/ffa2c40a42ce36fed563d4f84701a84ab8474cd3)) +- **telegram:** 新增 Telegram 协议适配器 ([#147](https://github.com/AliceBotProject/alicebot/issues/147)) ([77ea80b](https://github.com/AliceBotProject/alicebot/commit/77ea80bac9071a76c93c3e21fbdd2360d005d31e)) +- **telegram:** 优化 API 和 Event 的代码生成 ([#150](https://github.com/AliceBotProject/alicebot/issues/150)) ([42e3174](https://github.com/AliceBotProject/alicebot/commit/42e3174c0350cba8a2a897cc72e197d4a89df188)) + +### BREAKING CHANGES + +- **bot:** 移除 Bot 类型的 should_exit 公开属性 +- 移除 Python 3.8 支持 + ## [0.10.0](https://github.com/AliceBotProject/alicebot/compare/v0.9.0...v0.10.0) (2024-03-22) ### Bug Fixes diff --git a/package.json b/package.json index 54d5184..60a8ec3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "alicebot", "type": "module", - "version": "0.10.0", + "version": "0.11.0", "private": true, "description": "A simple asynchronous python chat bot framework.", "author": "st1020 ", diff --git a/packages/alicebot-adapter-apscheduler/pyproject.toml b/packages/alicebot-adapter-apscheduler/pyproject.toml index b539526..1e37967 100644 --- a/packages/alicebot-adapter-apscheduler/pyproject.toml +++ b/packages/alicebot-adapter-apscheduler/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "alicebot-adapter-apscheduler" -version = "0.10.0" +version = "0.11.0" description = "APScheduler adapter for AliceBot." authors = [{ name = "st1020", email = "stone_1020@qq.com" }] license = { text = "MIT" } @@ -17,7 +17,7 @@ classifiers = [ "Topic :: Communications :: Chat", ] requires-python = ">=3.9" -dependencies = ["alicebot==0.10.0", "apscheduler>=3.7,<4.0"] +dependencies = ["alicebot==0.11.0", "apscheduler>=3.7,<4.0"] [project.urls] Homepage = "https://docs.alicebot.dev/" diff --git a/packages/alicebot-adapter-cqhttp/pyproject.toml b/packages/alicebot-adapter-cqhttp/pyproject.toml index 948a04e..40f2ece 100644 --- a/packages/alicebot-adapter-cqhttp/pyproject.toml +++ b/packages/alicebot-adapter-cqhttp/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "alicebot-adapter-cqhttp" -version = "0.10.0" +version = "0.11.0" description = "OneBot(CQHTTP) adapter for AliceBot." authors = [{ name = "st1020", email = "stone_1020@qq.com" }] license = { text = "MIT" } @@ -17,7 +17,7 @@ classifiers = [ "Topic :: Communications :: Chat", ] requires-python = ">=3.9" -dependencies = ["alicebot==0.10.0"] +dependencies = ["alicebot==0.11.0"] [project.urls] Homepage = "https://docs.alicebot.dev/" diff --git a/packages/alicebot-adapter-dingtalk/pyproject.toml b/packages/alicebot-adapter-dingtalk/pyproject.toml index 3eb7c37..96820de 100644 --- a/packages/alicebot-adapter-dingtalk/pyproject.toml +++ b/packages/alicebot-adapter-dingtalk/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "alicebot-adapter-dingtalk" -version = "0.10.0" +version = "0.11.0" description = "DingTalk adapter for AliceBot." authors = [{ name = "st1020", email = "stone_1020@qq.com" }] license = { text = "MIT" } @@ -17,7 +17,7 @@ classifiers = [ "Topic :: Communications :: Chat", ] requires-python = ">=3.9" -dependencies = ["alicebot==0.10.0"] +dependencies = ["alicebot==0.11.0"] [project.urls] Homepage = "https://docs.alicebot.dev/" diff --git a/packages/alicebot-adapter-mirai/pyproject.toml b/packages/alicebot-adapter-mirai/pyproject.toml index e94a681..a897700 100644 --- a/packages/alicebot-adapter-mirai/pyproject.toml +++ b/packages/alicebot-adapter-mirai/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "alicebot-adapter-mirai" -version = "0.10.0" +version = "0.11.0" description = "Mirai adapter for AliceBot." authors = [{ name = "st1020", email = "stone_1020@qq.com" }] license = { text = "AGPL-3.0-or-later" } @@ -17,7 +17,7 @@ classifiers = [ "Topic :: Communications :: Chat", ] requires-python = ">=3.9" -dependencies = ["alicebot==0.10.0"] +dependencies = ["alicebot==0.11.0"] [project.urls] Homepage = "https://docs.alicebot.dev/" diff --git a/packages/alicebot-adapter-onebot/pyproject.toml b/packages/alicebot-adapter-onebot/pyproject.toml index 5f935eb..17f9def 100644 --- a/packages/alicebot-adapter-onebot/pyproject.toml +++ b/packages/alicebot-adapter-onebot/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "alicebot-adapter-onebot" -version = "0.10.0" +version = "0.11.0" description = "OneBot v12 adapter for AliceBot." authors = [{ name = "st1020", email = "stone_1020@qq.com" }] license = { text = "MIT" } @@ -17,7 +17,7 @@ classifiers = [ "Topic :: Communications :: Chat", ] requires-python = ">=3.9" -dependencies = ["alicebot==0.10.0"] +dependencies = ["alicebot==0.11.0"] [project.urls] Homepage = "https://docs.alicebot.dev/" diff --git a/packages/alicebot-adapter-telegram/pyproject.toml b/packages/alicebot-adapter-telegram/pyproject.toml index 351fa08..7701dd1 100644 --- a/packages/alicebot-adapter-telegram/pyproject.toml +++ b/packages/alicebot-adapter-telegram/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "alicebot-adapter-telegram" -version = "0.10.0" +version = "0.11.0" description = "Telegram adapter for AliceBot." authors = [{ name = "AliceBot", email = "concontact@alicebot.dev" }] license = { text = "MIT" } @@ -17,7 +17,7 @@ classifiers = [ "Topic :: Communications :: Chat", ] requires-python = ">=3.9" -dependencies = ["alicebot==0.10.0"] +dependencies = ["alicebot==0.11.0"] [project.urls] Homepage = "https://docs.alicebot.dev/" diff --git a/pyproject.toml b/pyproject.toml index b5b2d32..46a161d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "alicebot" -version = "0.10.0" +version = "0.11.0" description = "A simply asynchronous python chatbot framework." authors = [{ name = "st1020", email = "stone_1020@qq.com" }] license = { text = "MIT" } diff --git a/uv.lock b/uv.lock index b866d35..83abeca 100644 --- a/uv.lock +++ b/uv.lock @@ -133,7 +133,7 @@ wheels = [ [[package]] name = "alicebot" -version = "0.10.0" +version = "0.11.0" source = { editable = "." } dependencies = [ { name = "aiohttp" }, @@ -238,7 +238,7 @@ dev = [ [[package]] name = "alicebot-adapter-apscheduler" -version = "0.10.0" +version = "0.11.0" source = { editable = "packages/alicebot-adapter-apscheduler" } dependencies = [ { name = "alicebot" }, @@ -253,7 +253,7 @@ requires-dist = [ [[package]] name = "alicebot-adapter-cqhttp" -version = "0.10.0" +version = "0.11.0" source = { editable = "packages/alicebot-adapter-cqhttp" } dependencies = [ { name = "alicebot" }, @@ -264,7 +264,7 @@ requires-dist = [{ name = "alicebot", editable = "." }] [[package]] name = "alicebot-adapter-dingtalk" -version = "0.10.0" +version = "0.11.0" source = { editable = "packages/alicebot-adapter-dingtalk" } dependencies = [ { name = "alicebot" }, @@ -275,7 +275,7 @@ requires-dist = [{ name = "alicebot", editable = "." }] [[package]] name = "alicebot-adapter-mirai" -version = "0.10.0" +version = "0.11.0" source = { editable = "packages/alicebot-adapter-mirai" } dependencies = [ { name = "alicebot" }, @@ -286,7 +286,7 @@ requires-dist = [{ name = "alicebot", editable = "." }] [[package]] name = "alicebot-adapter-onebot" -version = "0.10.0" +version = "0.11.0" source = { editable = "packages/alicebot-adapter-onebot" } dependencies = [ { name = "alicebot" }, @@ -297,7 +297,7 @@ requires-dist = [{ name = "alicebot", editable = "." }] [[package]] name = "alicebot-adapter-telegram" -version = "0.10.0" +version = "0.11.0" source = { editable = "packages/alicebot-adapter-telegram" } dependencies = [ { name = "alicebot" },