Skip to content

Commit d8320be

Browse files
committed
pyproject: add dependency group for test deps
Add a PEP 735 dependency group that installs a supported version of pytest. This allows downstream build systems (e.g. Fedora) to autodetect test dependencies. pip 25.1 (unreleased) will allow installing these dependencies with `python -m pip install --group test`. Signed-off-by: Benjamin Gilbert <[email protected]>
1 parent 8fabf27 commit d8320be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ requires-python = ">= 3.8"
3131
dependencies = ["Pillow"]
3232
dynamic = ["version"]
3333

34+
[dependency-groups]
35+
test = ["pytest >= 7"]
36+
3437
[project.urls]
3538
Homepage = "https://openslide.org/"
3639
Documentation = "https://openslide.org/api/python/"

0 commit comments

Comments
 (0)