From: Jakob Schlyter Date: Tue, 16 Sep 2025 19:06:30 +0000 (+0200) Subject: Include sphinx only for Python 3.11 or later (#1225) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e01a685ed093b5bacd2ef2c63d7e32696452c72;p=thirdparty%2Fdnspython.git Include sphinx only for Python 3.11 or later (#1225) * Include sphinx only for Python 3.11 or later * Use python_version --- diff --git a/pyproject.toml b/pyproject.toml index afaef597..dd8bfbbd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] +