create: call update-python-resources for --python

This commit is contained in:
Rylan Polster 2020-07-27 10:38:50 -04:00
parent 2d086013f9
commit c1ba64677f
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@ require "formula"
require "formula_creator"
require "missing_formula"
require "cli/parser"
require "utils/pypi"
module Homebrew
module_function
@ -137,6 +138,8 @@ module Homebrew
fc.generate!
PyPI.update_python_resources! Formula[fc.name], ignore_non_pypi_packages: true if args.python?
puts "Please run `brew audit --new-formula #{fc.name}` before submitting, thanks."
exec_editor fc.path
end

View File

@ -134,7 +134,7 @@ module Homebrew
# depends_on "cmake" => :build
<% end %>
<% if mode == :perl || mode == :python %>
<% if mode == :perl %>
# Additional dependency
# resource "" do
# url ""