Skip to content

Commit ad386c8

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 allows installing these dependencies with `pip install --group test`. Signed-off-by: Benjamin Gilbert <[email protected]>
1 parent 4632262 commit ad386c8

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
@@ -36,6 +36,9 @@ Documentation = "https://openslide.org/api/python/"
3636
"Release notes" = "https://github.com/openslide/openslide-python/blob/main/CHANGELOG.md"
3737
Repository = "https://github.com/openslide/openslide-python"
3838

39+
[dependency-groups]
40+
test = ["pytest >= 7"]
41+
3942
[tool.setuptools]
4043
include-package-data = false
4144
packages = ["openslide"]

0 commit comments

Comments
 (0)