Skip to content

Commit 6e2e75a

Browse files
caishilongclaude
andcommitted
fix: 修复 CI/CD 配置使用 uv dependency groups
## 修复内容 - 添加 [dependency-groups.dev] 到 pyproject.toml - 更新 test.yml 使用 `uv sync --group dev` 替代已弃用的 `--dev` - 保留 [project.optional-dependencies.dev] 用于 pip 安装 ## 关于 PyPI 发布 - 使用 Trusted Publishing,无需 API token - 需要在 PyPI 配置发布器(参见 RELEASE_PLAN.md) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8b3b459 commit 6e2e75a

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: 📦 Install dependencies
3131
run: |
32-
uv sync --dev
32+
uv sync --group dev
3333
3434
- name: 🔍 Lint with ruff
3535
run: |

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,20 @@ dependencies = [
4242
"requests>=2.32.5",
4343
]
4444

45+
[project.optional-dependencies]
46+
dev = [
47+
"pytest>=8.0.0",
48+
"pytest-cov>=6.0.0",
49+
"ruff>=0.9.0",
50+
"mypy>=1.0.0",
51+
]
52+
4553
[project.urls]
4654
Homepage = "https://github.com/SolidQA/supervision"
4755
Repository = "https://github.com/SolidQA/supervision"
4856
"Bug Tracker" = "https://github.com/SolidQA/supervision/issues"
4957

50-
[project.optional-dependencies]
58+
[dependency-groups]
5159
dev = [
5260
"pytest>=8.0.0",
5361
"pytest-cov>=6.0.0",

0 commit comments

Comments
 (0)