Skip to content

Commit

Permalink
✨ 声明 extras
Browse files Browse the repository at this point in the history
  • Loading branch information
AzideCupric committed Mar 14, 2024
1 parent 5f61b57 commit 577186f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install prerequisites
run: poetry install --with=adapters,alc
run: poetry install --with=adapters --all-extras

- name: Run Pytest
run: poetry run pytest --cov-report xml --cov=./nonebot_plugin_saa
Expand Down
15 changes: 9 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 577186f

Please sign in to comment.