From 32bd99264bbe5390c56e70cbb216dde4d012d68f Mon Sep 17 00:00:00 2001
From: Benedikt Seeger <benedikt.seeger@ptb.de>
Date: Tue, 15 Apr 2025 12:50:26 +0200
Subject: [PATCH] next try for coverage

---
 pyproject.toml | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index b728ca6..b3533db 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -22,10 +22,15 @@ classifiers=[
 
 [project.optional-dependencies]
 testing = [
-    "pytest>=8.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"'
+    # For Python 3.7, use pytest version below 8 which supports Python 3.7
+    'pytest>=7,<8; python_version < "3.8"',
+    # For Python 3.8 and above, use pytest 8 or later
+    'pytest>=8; python_version >= "3.8"',
+    # If you want to include coverage, either:
+    # Option A: install coverage on Python 3.7/3.8 using an older version
+    'pytest-cov>=5,<6; python_version < "3.8"',
+    # For Python 3.8 and above, use pytest-cov 6 or later
+    'pytest-cov>=6; python_version >= "3.8"',
+    # And include requests for tests
+    'requests>=2.0'
 ]
\ No newline at end of file
-- 
GitLab