From 4d97d38fc71a40e97cddf8bc3d768a085cd5a6c0 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Wed, 23 Apr 2025 09:57:54 -0400 Subject: [PATCH] Update wmi extra to only install on Windows (#1192) Since installing `dnspython[wmi]` is the recommended way to avoid querying dns servers on inactive interfaces (#1191), but WMI is only meaningful on Windows, perhaps the extra should only be installed on Windows. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2d491122..9cf8bbbb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ doh = ["httpcore>=1.0.0", "httpx>=0.26.0", "h2>=4.1.0"] doq = ["aioquic>=1.0.0"] idna = ["idna>=3.7"] trio = ["trio>=0.23"] -wmi = ["wmi>=1.5.1"] +wmi = ["wmi>=1.5.1; platform_system=='Windows'"] [project.urls] homepage = "https://www.dnspython.org" -- 2.47.3