From 94e533bf27314f51e86dd8c16a07b8f2089eee10 Mon Sep 17 00:00:00 2001
From: Benedikt Seeger <benedikt.seeger@ptb.de>
Date: Tue, 15 Apr 2025 12:47:16 +0200
Subject: [PATCH] try to find pytest-cov for older python versions

---
 pyproject.toml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 2818cf1..b728ca6 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -23,6 +23,9 @@ classifiers=[
 [project.optional-dependencies]
 testing = [
     "pytest>=8.0",
-    "pytest-cov>=5,<6",  # Use pytest-cov version 5.x which supports Python 3.8
-    "requests>=2.0"
+    "requests>=2.0",
+    # For Python 3.9 and up, use pytest-cov>=6.0
+    'pytest-cov>=6.0; python_version >= "3.9"',
+    # For older versions, use an older version of pytest-cov or omit it:
+    'pytest-cov>=5,<6; python_version < "3.9"'
 ]
\ No newline at end of file
-- 
GitLab