utils/pypi: further update pure Python wheel detection

This commit is contained in:
Dustin Rodrigues 2025-06-10 00:49:11 -04:00
parent f0bfe89716
commit e8f4a8e1a7
No known key found for this signature in database
GPG Key ID: 140DABE812A1491D

View File

@ -85,7 +85,7 @@ module PyPI
# If there isn't an sdist, we use the first pure Python3 or universal wheel # If there isn't an sdist, we use the first pure Python3 or universal wheel
if dist.nil? if dist.nil?
dist = json["urls"].find do |url| dist = json["urls"].find do |url|
url["filename"].match?("py3.*-none-any.whl$") url["filename"].match?("[.-]py3[^-]*-none-any\.whl$")
end end
end end