From 774f3934a910d96cf08706701231f2f245c1dc8d Mon Sep 17 00:00:00 2001 From: Azide Date: Thu, 14 Mar 2024 11:19:52 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=A3=B0=E6=98=8E=20extras?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- poetry.lock | 15 +++++++++------ pyproject.toml | 8 +++----- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/poetry.lock b/poetry.lock index 7ee7d5b..5e28611 100644 --- a/poetry.lock +++ b/poetry.lock @@ -51,7 +51,7 @@ files = [ name = "arclet-alconna" version = "1.8.5" description = "A High-performance, Generality, Humane Command Line Arguments Parser Library." -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "arclet_alconna-1.8.5-py3-none-any.whl", hash = "sha256:b9f0309df53f957a16316155a3e61d1c3ffa33c2eb641b928ad27aa3effd9b2c"}, @@ -70,7 +70,7 @@ full = ["arclet-alconna-tools (>=0.2.0)"] name = "arclet-alconna-tools" version = "0.7.0" description = "Builtin Tools for Alconna" -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "arclet-alconna-tools-0.7.0.tar.gz", hash = "sha256:361a193239555d243d8738c39e89f536847d49fa9d74c0a2706b58514c8d8a70"}, @@ -858,7 +858,7 @@ files = [ name = "nepattern" version = "0.6.5" description = "a complex pattern, support typing" -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "nepattern-0.6.5-py3-none-any.whl", hash = "sha256:6c06dc6b2e06b9b2d98c4dee024c63e10d1301dc90091548b94cf76c7dfbd8fb"}, @@ -990,7 +990,7 @@ resolved_reference = "befcfc676fed6b7b5474b5559f6f35a694c709a0" name = "nonebot-plugin-alconna" version = "0.40.1" description = "Alconna Adapter for Nonebot" -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "nonebot_plugin_alconna-0.40.1-py3-none-any.whl", hash = "sha256:6f4bd7576e6df65710a7f920c93cb5400a8eef66abaff06189b532930b376330"}, @@ -1624,7 +1624,7 @@ test = ["pylint", "pytest", "pytest-black", "pytest-cov", "pytest-pylint"] name = "tarina" version = "0.4.4" description = "A collection of common utils for Arclet" -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "tarina-0.4.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:9d38b0cef20cac14c12ace52887bc5c88f74577ca8d04b3a77ab55cca371981b"}, @@ -2099,7 +2099,10 @@ files = [ idna = ">=2.0" multidict = ">=4.0" +[extras] +alc = ["nonebot-plugin-alconna"] + [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "a24bcb7c059a657a0e40ae8007cb38edf7cd8a72c31e6727b747b6caaa73e8ab" +content-hash = "880e48a7b82ed45d118ded5aaef9c288369f7f14eead23db52fb36519ab3271d" diff --git a/pyproject.toml b/pyproject.toml index 3f23fd8..6efb338 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,7 @@ nonebot2 = "^2.0.0" strenum = "^0.4.8" pydantic = ">=1.10.0,<3.0.0,!=2.5.0,!=2.5.1" anyio = ">=3.3.0,<5.0.0" +nonebot-plugin-alconna = { version = "^0.40.1", optional = true } [tool.poetry.group.dev.dependencies] pytest-asyncio = "^0.20.2" @@ -52,11 +53,8 @@ nonebot-adapter-red = "^0.9.0" nonebot-adapter-dodo = "^0.2.0" nonebot-adapter-qq = "^1.4.1" -[tool.poetry.group.alc] -optional = true - -[tool.poetry.group.alc.dependencies] -nonebot-plugin-alconna = "^0.40.1" +[tool.poetry.extras] +alc = ["nonebot-plugin-alconna"] [tool.black] line-length = 88