]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Update wmi extra to only install on Windows (#1192)
authorJason R. Coombs <jaraco@jaraco.com>
Wed, 23 Apr 2025 13:57:54 +0000 (09:57 -0400)
committerGitHub <noreply@github.com>
Wed, 23 Apr 2025 13:57:54 +0000 (06:57 -0700)
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

index 2d4911227e208b73ccb1da84cea87045dd3171f7..9cf8bbbbbb21fd10bcde189aab066dfaad787dc5 100644 (file)
@@ -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"