From cfc93097313ebfe75eb373e81dc251a4b3c45f71 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 12 Nov 2025 16:47:46 -0500 Subject: [PATCH] chore: dependency-groups Signed-off-by: Henry Schreiner --- .github/workflows/ci.yml | 4 ++-- pyproject.toml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da78a72..9d16d74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: - uses: astral-sh/setup-uv@v7 - name: Test package - run: uv run --with "clang<19" --extra test pytest --forked + run: uv run --with "clang<19" --group test pytest --forked # Commented for now -- msys2 Clang (v15) and the clang Python package (v14) are incompatible # @@ -60,7 +60,7 @@ jobs: # python-version: ${{ matrix.python-version }} # # - name: Install package -# run: python -m pip install .[test] +# run: python -m pip install -e. --group test # # - name: Install clang # run: C:\msys64\usr\bin\pacman.exe -S clang64/mingw-w64-clang-x86_64-clang --noconfirm diff --git a/pyproject.toml b/pyproject.toml index 513178b..06f89af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,12 +27,13 @@ classifiers = [ ] dynamic = ["version"] -[project.optional-dependencies] +[dependency-groups] test = [ "pytest", "pybind11", "pytest-forked", ] +dev = [{ include-group = "test" }] [project.scripts] pybind11-mkdoc = "pybind11_mkdoc:main"