From ad386c884d267b44785e256c181cf45dc74ac05d Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Sat, 26 Apr 2025 05:39:59 -0500 Subject: [PATCH] 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 --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 4969715..fe649f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,6 +36,9 @@ Documentation = "https://openslide.org/api/python/" "Release notes" = "https://github.com/openslide/openslide-python/blob/main/CHANGELOG.md" Repository = "https://github.com/openslide/openslide-python" +[dependency-groups] +test = ["pytest >= 7"] + [tool.setuptools] include-package-data = false packages = ["openslide"]