diff --git a/pyproject.toml b/pyproject.toml
index b728ca6fa2c090f2a69014ea730f98e054e02e18..b3533db7ae37f79ad4862dadaf3cd5189eaefc34 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