From: Jason R. Coombs Date: Wed, 23 Apr 2025 13:57:54 +0000 (-0400) Subject: Update wmi extra to only install on Windows (#1192) X-Git-Tag: v2.8.0rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d97d38fc71a40e97cddf8bc3d768a085cd5a6c0;p=thirdparty%2Fdnspython.git 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. --- 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"