create: call update-python-resources for --python
This commit is contained in:
parent
2d086013f9
commit
c1ba64677f
@ -4,6 +4,7 @@ require "formula"
|
|||||||
require "formula_creator"
|
require "formula_creator"
|
||||||
require "missing_formula"
|
require "missing_formula"
|
||||||
require "cli/parser"
|
require "cli/parser"
|
||||||
|
require "utils/pypi"
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
module_function
|
module_function
|
||||||
@ -137,6 +138,8 @@ module Homebrew
|
|||||||
|
|
||||||
fc.generate!
|
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."
|
puts "Please run `brew audit --new-formula #{fc.name}` before submitting, thanks."
|
||||||
exec_editor fc.path
|
exec_editor fc.path
|
||||||
end
|
end
|
||||||
|
|||||||
@ -134,7 +134,7 @@ module Homebrew
|
|||||||
# depends_on "cmake" => :build
|
# depends_on "cmake" => :build
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if mode == :perl || mode == :python %>
|
<% if mode == :perl %>
|
||||||
# Additional dependency
|
# Additional dependency
|
||||||
# resource "" do
|
# resource "" do
|
||||||
# url ""
|
# url ""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user