Skip to content

Commit 700b644

Browse files
authored
chore: dependency-groups (#45)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
1 parent 90e5a3e commit 700b644

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- uses: astral-sh/setup-uv@v7
3939

4040
- name: Test package
41-
run: uv run --with "clang<19" --extra test pytest --forked
41+
run: uv run --with "clang<19" --group test pytest --forked
4242

4343
# Commented for now -- msys2 Clang (v15) and the clang Python package (v14) are incompatible
4444
#
@@ -60,7 +60,7 @@ jobs:
6060
# python-version: ${{ matrix.python-version }}
6161
#
6262
# - name: Install package
63-
# run: python -m pip install .[test]
63+
# run: python -m pip install -e. --group test
6464
#
6565
# - name: Install clang
6666
# run: C:\msys64\usr\bin\pacman.exe -S clang64/mingw-w64-clang-x86_64-clang --noconfirm

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ classifiers = [
2727
]
2828
dynamic = ["version"]
2929

30-
[project.optional-dependencies]
30+
[dependency-groups]
3131
test = [
3232
"pytest",
3333
"pybind11",
3434
"pytest-forked",
3535
]
36+
dev = [{ include-group = "test" }]
3637

3738
[project.scripts]
3839
pybind11-mkdoc = "pybind11_mkdoc:main"

0 commit comments

Comments
 (0)