]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Include sphinx only for Python 3.11 or later (#1225)
authorJakob Schlyter <jakob@kirei.se>
Tue, 16 Sep 2025 19:06:30 +0000 (21:06 +0200)
committerGitHub <noreply@github.com>
Tue, 16 Sep 2025 19:06:30 +0000 (12:06 -0700)
* Include sphinx only for Python 3.11 or later

* Use python_version

pyproject.toml

index afaef5974b17c05a6ae6b4158e2a02a98731366a..dd8bfbbd2310d9bee5a52d22aceab5b39fb12592 100644 (file)
@@ -39,8 +39,8 @@ dev = [
     "pytest>=8.4",
     "pytest-cov>=6.2.0",
     "quart-trio>=0.12.0",
-    "sphinx>=8.2.0",
-    "sphinx-rtd-theme>=3.0.0",
+    "sphinx>=8.2.0 ; python_version >= '3.11'",
+    "sphinx-rtd-theme>=3.0.0 ; python_full_version >= '3.11'",
     "twine>=6.1.0",
     "wheel>=0.45.0",
 ]
@@ -127,3 +127,4 @@ ignore_missing_imports = true
 [tool.pyright]
 reportUnsupportedDunderAll = false
 exclude = ["dns/win32util.py", "examples/*.py", "tests/*.py"]
+