Skip to content

Commit

Permalink
chore(deps): 移除 optional-dependencies (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 authored Dec 4, 2024
1 parent 6ab8fa0 commit a56ccfd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
with:
enable-cache: true

- name: Sync dependencies
run: uv sync --all-extras

- name: Run tests
run: uv run poe test

Expand Down
5 changes: 2 additions & 3 deletions examples/store-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@ jobs:

- name: Test plugin
if: ${{ !contains(fromJSON('["Bot", "Adapter", "Plugin"]'), github.event.client_payload.type) }}
run: |
uv run --no-dev --extra plugin python -m src.providers.store_test plugin-test --offset ${{ github.event.inputs.offset || 0 }} --limit ${{ github.event.inputs.limit || 50 }} ${{ github.event.inputs.args }}
run: uv run --no-dev -m src.providers.store_test plugin-test --offset ${{ github.event.inputs.offset || 0 }} --limit ${{ github.event.inputs.limit || 50 }} ${{ github.event.inputs.args }}

- name: Update registry
if: ${{ contains(fromJSON('["Bot", "Adapter", "Plugin"]'), github.event.client_payload.type) }}
run: uv run --no-dev --extra plugin python -m src.providers.store_test registry-update
run: uv run --no-dev -m src.providers.store_test registry-update
env:
REGISTRY_UPDATE_PAYLOAD: ${{ toJson(github.event.client_payload) }}

Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">= 3.12"
dependencies = [
"click>=8.1.7",
"docker>=7.1.0",
"githubkit>=0.11.14",
"jinja2>=3.1.4",
Expand All @@ -15,6 +16,7 @@ dependencies = [
"pre-commit>=4.0.1",
"pydantic-extra-types>=2.10.0",
"pyjson5>=1.6.7",
"tzdata>=2024.2",
]

[project.urls]
Expand All @@ -23,9 +25,6 @@ Repository = "https://github.com/nonebot/noneflow.git"
Issues = "https://github.com/nonebot/noneflow/issues"
Changelog = "https://github.com/nonebot/noneflow/blob/main/CHANGELOG.md"

[project.optional-dependencies]
plugin = ["click>=8.1.7", "tzdata>=2024.2"]

[tool.uv]
dev-dependencies = [
"bump-my-version>=0.28.1",
Expand Down
10 changes: 3 additions & 7 deletions uv.lock

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

0 comments on commit a56ccfd

Please sign in to comment.