Skip to content

Commit

Permalink
Merge pull request #19250 from Homebrew/ww/warn-pypi-info-no-dist
Browse files Browse the repository at this point in the history
utils/pypi: warn when `pypi_info` fails due to missing sources
  • Loading branch information
MikeMcQuaid authored Feb 6, 2025
2 parents a600438 + 46d67ba commit fd92510
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Library/Homebrew/utils/pypi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ def pypi_info(new_version: nil)
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"],
Expand Down

0 comments on commit fd92510

Please sign in to comment.