Merge pull request #19250 from Homebrew/ww/warn-pypi-info-no-dist

utils/pypi: warn when `pypi_info` fails due to missing sources
This commit is contained in:
Mike McQuaid 2025-02-06 09:35:35 +00:00 committed by GitHub
commit fd92510c71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,10 @@ module PyPI
end
end
return if dist.nil?
if dist.nil?
onoe "#{name} exists on PyPI but lacks a suitable source distribution"
return
end
@pypi_info = [
PyPI.normalize_python_package(json["info"]["name"]), dist["url"],