Skip to content

Commit 791d350

Browse files
committed
chore: requres-python >= 3.10
1 parent 776982c commit 791d350

File tree

3 files changed

+305
-15
lines changed

3 files changed

+305
-15
lines changed

pyproject.toml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ description = "插件描述"
55
readme = "README.md"
66
authors = [{ name = "owner", email = "[email protected]" }]
77
urls = { Repository = "https://github.com/owner/nonebot-plugin-template" }
8-
requires-python = ">=3.10,<3.13"
8+
requires-python = ">=3.10"
99
dependencies = [
1010
"nonebot2>=2.4.2,<3.0.0",
1111

12-
"nonebot-plugin-localstore>=0.7.4,<1.0.0", # 若不需要存储文件应删除
13-
"nonebot-plugin-apscheduler>=0.5.0,<1.0.0", # 若不使用定时任务应删除
14-
"nonebot-plugin-waiter>=0.8.1,<1.0.0", # 若不使用增强版的 got-reject 会话控制应删除
12+
"nonebot-plugin-localstore>=0.7.4,<1.0.0", # 存储文件
13+
"nonebot-plugin-apscheduler>=0.5.0,<1.0.0", # 定时任务
14+
"nonebot-plugin-waiter>=0.8.1,<1.0.0", # 增强版 got-reject 会话控制
1515

16-
"nonebot-plugin-uninfo>=0.9.0,<1.0.0", # 若不使用多平台用户信息获取插件应删除
17-
"nonebot-plugin-alconna>=0.59.3,<1.0.0", # 若不使用 alconna 跨平台命令解析拓展应删除
18-
# "nonebot-adapter-onebot>=2.4.6,<3.0.0", # 仅 onebot 应取消注释
16+
"nonebot-plugin-uninfo>=0.9.0,<1.0.0", # 多平台用户信息获取
17+
"nonebot-plugin-alconna>=0.59.3,<1.0.0", # 跨平台命令解析拓展
18+
# "nonebot-adapter-onebot>=2.4.6,<3.0.0"
1919

2020
"httpx>=0.27.0,<1.0.0",
2121
]
@@ -24,8 +24,8 @@ dependencies = [
2424
dev = [
2525
"nonebot2[fastapi]>=2.4.2,<3.0.0",
2626
"ruff>=0.12.7,<1.0.0",
27-
# "nonemoji>=0.1.4,<1.0.0", # 推荐全局安装 pipx install nonemoji
28-
# "pre-commit>=4.1.0", # 推荐全局安装 pipx install pre-commit
27+
"nonemoji>=0.1.4,<1.0.0",
28+
"pre-commit>=4.1.0",
2929
]
3030

3131
test = [
@@ -106,8 +106,10 @@ pythonVersion = "3.10"
106106
pythonPlatform = "All"
107107
defineConstant = { PYDANTIC_V2 = true }
108108
executionEnvironments = [
109-
{ root = "./tests", extraPaths = ["./src"] },
110-
{ root = "./src" },
109+
{ root = "./tests", extraPaths = [
110+
"./src",
111+
] },
112+
{ root = "./src" },
111113
]
112114
typeCheckingMode = "standard"
113115
reportShadowedImports = false
@@ -116,4 +118,4 @@ disableBytesTypePromotions = true
116118

117119
[build-system]
118120
requires = ["uv_build>=0.8.0,<0.9.0"]
119-
build-backend = "uv_build"
121+
build-backend = "uv_build"

src/nonebot_plugin_template/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
homepage="https://github.com/owner/nonebot-plugin-template",
1717
config=Config,
1818
supported_adapters=inherit_supported_adapters("nonebot_plugin_alconna", "nonebot_plugin_uninfo"),
19-
# supported_adapters={"~onebot.v11"}, # 仅 onebot 应取消注释
19+
# supported_adapters={"~onebot.v11"}, # 仅 onebot
2020
extra={"author": "owner <[email protected]>"},
2121
)
2222

0 commit comments

Comments
 (0)