Skip to content

Commit

Permalink
Merge pull request Homebrew#203006 from Homebrew/python-completion-g-l
Browse files Browse the repository at this point in the history
g-l*: add argcomplete/click shell completions
  • Loading branch information
BrewTestBot authored Jan 2, 2025
2 parents 4c360a5 + 127c2fd commit 557ec95
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 45 deletions.
16 changes: 10 additions & 6 deletions Formula/g/gcalcli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ class Gcalcli < Formula
head "https://github.com/insanum/gcalcli.git", branch: "master"

bottle do
sha256 cellar: :any, arm64_sequoia: "b88ebf316f7c79122279d0e4f5ed4e214cf897bffaa5f70ca2c8b4eaf6dfd108"
sha256 cellar: :any, arm64_sonoma: "ba53a6cd5cf39350106a040504297a70dec19cc0f51591ff42ae8ed3f632c631"
sha256 cellar: :any, arm64_ventura: "bc62b29e2fec7d938f2eeaa2b5ad8de8ab61281a9f701d9e76c22b884c7b4819"
sha256 cellar: :any, sonoma: "1b3a9d49b178ca05d2074675e1bd117303f335a4f4a3bb2930968d4c097e6e6b"
sha256 cellar: :any, ventura: "f529b962c1c3223c7c4cd6448c421bce583c25be12cc4fa18020abe708f2ee3e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "01badc69e858e8e1735f328b356ea6d019833d704c19a4ec1192e9c157c70ed7"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "a9b4aaae553f5be5ec0cc5af3c7519f3b7d298913c6f0649c48fbd92fcc16654"
sha256 cellar: :any, arm64_sonoma: "423c0a19d39ee2c150ff4ca06b23d0235b533c65f4e9e492d1b0f52d7724a64e"
sha256 cellar: :any, arm64_ventura: "019ebf9752730a4818cc47a072bf9eb197303e94f34408d484ba67771eafff52"
sha256 cellar: :any, sonoma: "88a5b3bc24b3e109adc5c590dd929dc73e37467137d284184e8bdce96f3d2cbf"
sha256 cellar: :any, ventura: "3fd0acd74f7571dba6252bc14cf9ab6bf13d35173f283921bbb0b87c12e97beb"
sha256 cellar: :any_skip_relocation, x86_64_linux: "67493eea6e03a91fa02e1284995f03ae5b0d48ef1ae2bdc8fb30148ee34190b0"
end

depends_on "cmake" => :build # for google_api_python_client_stubs
Expand Down Expand Up @@ -186,6 +187,9 @@ class Gcalcli < Formula

def install
virtualenv_install_with_resources

generate_completions_from_executable(libexec/"bin/register-python-argcomplete", "gcalcli",
shell_parameter_format: :arg)
end

test do
Expand Down
15 changes: 9 additions & 6 deletions Formula/g/ggshield.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ class Ggshield < Formula
head "https://github.com/GitGuardian/ggshield.git", branch: "main"

bottle do
sha256 cellar: :any, arm64_sequoia: "e76b868016412465537ac75d354638b8583ba92eaadb4b0f0793a528e19e3969"
sha256 cellar: :any, arm64_sonoma: "9c57eb6558ec7de92f2bf2688fdb6d93c344ab011bc6fa11566235b5a5fb4ad6"
sha256 cellar: :any, arm64_ventura: "8f5a63ab0eddb050e8718b4fc1744f8f8e00a23ab4edd1761031f9b635304607"
sha256 cellar: :any, sonoma: "04906a80ca579b599304099f1b7cde5c166a699c8f99a6dbebd07487b342ddb3"
sha256 cellar: :any, ventura: "171eb0034fef381ba06135f9c1a581e364d011226134a3ddb1aa128e4348c9e5"
sha256 cellar: :any_skip_relocation, x86_64_linux: "3cff73b2ae9e888fc79d24db0d4bf47dca0696e153a55c04d89685ccd5688681"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "96988b5482d5820cb359e2c3d087364c10fd8f2443350068c5bdcd6354f82d7a"
sha256 cellar: :any, arm64_sonoma: "8fc13465103de21c0734d3dbd92329b3d645a182776d62770bc02c3e37ad0fb0"
sha256 cellar: :any, arm64_ventura: "945f94a75349bc0ed5bc4438559a5d9f39c7cdca78f24e303243de65ecd2b70a"
sha256 cellar: :any, sonoma: "f40a51cc163fef446f42e519d31637c236ecc7c8d2e24de9287bc996a37891ea"
sha256 cellar: :any, ventura: "08c8892b3d195579196f2c9382f532057d1fba15a51547c29e33b8cf0a7f0bae"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c964b6045a016cb1b180a32134f95499ce82d6dbc3995b6626dbc57b1672d907"
end

depends_on "certifi"
Expand Down Expand Up @@ -129,6 +130,8 @@ class Ggshield < Formula

def install
virtualenv_install_with_resources

generate_completions_from_executable(bin/"ggshield", shells: [:fish, :zsh], shell_parameter_format: :click)
end

test do
Expand Down
15 changes: 9 additions & 6 deletions Formula/g/gptme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ class Gptme < Formula
head "https://github.com/ErikBjare/gptme.git", branch: "master"

bottle do
sha256 cellar: :any, arm64_sequoia: "18937bbc05b1b2fe10be9ab111a4cfbf34436db8bba089cdbf141a4cf10a5fca"
sha256 cellar: :any, arm64_sonoma: "1d58d5aa89230bccccb4b15fab1bcd739b184ecb6df6fbf8f12a191a4b196f03"
sha256 cellar: :any, arm64_ventura: "ca0e797106c1c0428d9aaf70bd0f40a4ca9e707d4caff0bfe933ca19884d6afe"
sha256 cellar: :any, sonoma: "d806aa4c8a50c28636ba90463a5df68882e39747fd23773d56c19886e4d2104b"
sha256 cellar: :any, ventura: "58426eb40cf714959d2fc5ff56b970716294e657b3b4c30c53390a99201b84c8"
sha256 cellar: :any_skip_relocation, x86_64_linux: "820a7affb13be28bb66a3cc739831913f0bd26b5b4991086c09446b613bd7228"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "165a2925c6d1183649ad4c21d7df05bb454db9a134d85ca34ce3a2d68708a38f"
sha256 cellar: :any, arm64_sonoma: "82e5b81778629824d5c039da861a7c963a664af041fd1a121cfe17266fab2699"
sha256 cellar: :any, arm64_ventura: "3083c6502e3232b2b6d78fcd35a18912c66d9e30ff00c9d1a93428c350f70d1b"
sha256 cellar: :any, sonoma: "c6c9071967c72182cc822cb9aa6d1ad6cdb99c9cc4bfdc2539a9608f5f921e34"
sha256 cellar: :any, ventura: "f142a104f6c8f38af1e6123b78b0604394b73faa2ae814e67ceef64c952f4c43"
sha256 cellar: :any_skip_relocation, x86_64_linux: "abf97069180180d2840a081d18c09be4d5186f74832a907e59863695c42aaf92"
end

depends_on "rust" => :build
Expand Down Expand Up @@ -277,6 +278,8 @@ class Gptme < Formula

def install
virtualenv_install_with_resources

generate_completions_from_executable(bin/"gptme", shells: [:fish, :zsh], shell_parameter_format: :click)
end

test do
Expand Down
16 changes: 9 additions & 7 deletions Formula/h/harlequin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ class Harlequin < Formula
revision 2

bottle do
rebuild 1
sha256 cellar: :any, arm64_sequoia: "3d9b8af9dd1e254783303d7570ce0db70e815cd17fa4f1b3a044dbdafd6632f3"
sha256 cellar: :any, arm64_sonoma: "fd5a4f24f05ee2bd86db9621788c75f7e7c41c3e533900c6bd455072bf3ca392"
sha256 cellar: :any, arm64_ventura: "f765d9404086227fafd342785b5dc090b4531258b538c74723d5aa649d50eae4"
sha256 cellar: :any, sonoma: "2dba88f8455c9e96d78dc47f5e334ae2aecea6919c94b4f38449e3dd8c4aef40"
sha256 cellar: :any, ventura: "124980a4f82b80ca729234f713e5d097d0cbd0f16d3b6e6ff616cd44166ea685"
sha256 cellar: :any_skip_relocation, x86_64_linux: "09d72bc0bd030306b29584ce9d415b08e96418883ba24fbb6f4615286dad30e6"
rebuild 2
sha256 cellar: :any, arm64_sequoia: "ff9ca22dd577969e4046a7d19e2e35d2c711aff5aaff3c9906735a05bac39e5a"
sha256 cellar: :any, arm64_sonoma: "aa028ed4062093f9bd1a36402dbee8d6738fe05ea9a0e7979f689bbf068eff14"
sha256 cellar: :any, arm64_ventura: "906028123044564ff52cce6ce375a6f16a18bf433e598b4e5f1236b5b1bc41b2"
sha256 cellar: :any, sonoma: "6badd876b8506a2faaee418e755d91083717f69b37a794f06e28e7dc07e4f654"
sha256 cellar: :any, ventura: "9b0419339b26a27b688fd5ad7b17ca4398fae7d3b9ff6a9fa58eb70c290f2c74"
sha256 cellar: :any_skip_relocation, x86_64_linux: "18df828eb40768b110b792b501074aced524fd49714c5611cca4dfff039e14ae"
end

depends_on "cmake" => :build
Expand Down Expand Up @@ -229,6 +229,8 @@ def install
resource("mysql-connector-python").stage do
venv.pip_install Pathname.pwd/"mysql-connector-python"
end

generate_completions_from_executable(bin/"harlequin", shells: [:fish, :zsh], shell_parameter_format: :click)
end

test do
Expand Down
17 changes: 10 additions & 7 deletions Formula/h/http-prompt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ class HttpPrompt < Formula
head "https://github.com/httpie/http-prompt.git", branch: "master"

bottle do
sha256 cellar: :any, arm64_sequoia: "47a171b84d2ba1401846694ae9bc1f6f4f7a7036674c713a700211f953186a98"
sha256 cellar: :any, arm64_sonoma: "4bcfd2f7e91d7f028d59863f71612b32116db5dd340baa85dbaab9daa8570424"
sha256 cellar: :any, arm64_ventura: "edc72e99013d10fcd86324c085b40a4533889b49362e8f91e082273083110b07"
sha256 cellar: :any, sonoma: "84e1d7a7fb706c2f0b805c7c51e234d87e2409be3aa993c77d4283eae5b276d8"
sha256 cellar: :any, ventura: "0aa6fdb42e457f5a5d0f92bcfe3c507ca466a3f7258de9f9b061c8b38a5db80e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "bbf5e4e77b75701cb77039e3f283182b9a222d6e6709952f5c6677205aba8192"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "b011c69d4afbef3f74f82823d1b6e097385967a71228e18b3dc9a4e756b12079"
sha256 cellar: :any, arm64_sonoma: "53659c6f09f90fb0f3d71f22f6757f7d7bc9fc05709f7eeb6af46bdf2528829a"
sha256 cellar: :any, arm64_ventura: "e569ae1a14a4e5a911d32c8ae67811f38f1b0cdf34f745dc98e50e4ee8005a2b"
sha256 cellar: :any, sonoma: "d9c8f46296414e0d9d1b33f93bb52b82a713cf288296ff6ad9ed67c46b4248fe"
sha256 cellar: :any, ventura: "33c3a14f21a42a7ecf2baaa509b8e9138f7304843391a8a30afb6b922666fceb"
sha256 cellar: :any_skip_relocation, x86_64_linux: "797fda91cbe2f3fa31dd291dd6eb10821eabdd0f58f4dba6b8ed081009c99c11"
end

depends_on "certifi"
Expand Down Expand Up @@ -129,6 +130,8 @@ class HttpPrompt < Formula

def install
virtualenv_install_with_resources

generate_completions_from_executable(bin/"http-prompt", shells: [:fish, :zsh], shell_parameter_format: :click)
end

test do
Expand All @@ -145,6 +148,6 @@ def install
read.expect(/Goodbye!/)
end

assert File.read("test.html").start_with? "<html>"
assert_match(/^<html>/, (testpath/"test.html").read)
end
end
18 changes: 11 additions & 7 deletions Formula/k/khal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ class Khal < Formula
head "https://github.com/pimutils/khal.git", branch: "master"

bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sequoia: "fe58e910b0aa7bb89482c530030904e06e353bfcae1e66a78eb114a4c8aa3d66"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "fe58e910b0aa7bb89482c530030904e06e353bfcae1e66a78eb114a4c8aa3d66"
sha256 cellar: :any_skip_relocation, arm64_ventura: "fe58e910b0aa7bb89482c530030904e06e353bfcae1e66a78eb114a4c8aa3d66"
sha256 cellar: :any_skip_relocation, sonoma: "30af7b73726bd7c453387280c9febba446a3f73a5bb56b550a3e3becfa7670e9"
sha256 cellar: :any_skip_relocation, ventura: "30af7b73726bd7c453387280c9febba446a3f73a5bb56b550a3e3becfa7670e9"
sha256 cellar: :any_skip_relocation, x86_64_linux: "fe58e910b0aa7bb89482c530030904e06e353bfcae1e66a78eb114a4c8aa3d66"
rebuild 2
sha256 cellar: :any_skip_relocation, arm64_sequoia: "a98d5f2c406a2ad402a0c567513a61e8a2e196f2f96b8f5ec7f8d48841946b22"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "a98d5f2c406a2ad402a0c567513a61e8a2e196f2f96b8f5ec7f8d48841946b22"
sha256 cellar: :any_skip_relocation, arm64_ventura: "a98d5f2c406a2ad402a0c567513a61e8a2e196f2f96b8f5ec7f8d48841946b22"
sha256 cellar: :any_skip_relocation, sonoma: "51e8587497b7186e07812378bc728bc674cfafb63df2938e5ee3e0e8b51e96a9"
sha256 cellar: :any_skip_relocation, ventura: "51e8587497b7186e07812378bc728bc674cfafb63df2938e5ee3e0e8b51e96a9"
sha256 cellar: :any_skip_relocation, x86_64_linux: "a98d5f2c406a2ad402a0c567513a61e8a2e196f2f96b8f5ec7f8d48841946b22"
end

depends_on "[email protected]"
Expand Down Expand Up @@ -93,6 +93,10 @@ class Khal < Formula

def install
virtualenv_install_with_resources

%w[khal ikhal].each do |cmd|
generate_completions_from_executable(bin/cmd, shells: [:fish, :zsh], shell_parameter_format: :click)
end
end

test do
Expand Down
15 changes: 9 additions & 6 deletions Formula/l/localstack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ class Localstack < Formula
license "Apache-2.0"

bottle do
sha256 cellar: :any, arm64_sequoia: "2e7d4be3c40a9fc37075d0e119001a5e90ebb41f7af2894f9bd8bb727241c01b"
sha256 cellar: :any, arm64_sonoma: "358c5d09ae738305ec3a5e2472b42e384ae597994b1ad0ff2918850260f56e6c"
sha256 cellar: :any, arm64_ventura: "69d7dbf235c0beb7cdb7fee30b85954d64924fad5d12b948b1741982f4f4f266"
sha256 cellar: :any, sonoma: "1432a51e115a097b6ef3d7bdbefbe89d52d9aa794c426ea582e0210db4abd8a6"
sha256 cellar: :any, ventura: "6f601f86aa07e783fd0930eacfba45735a48d3e1978a0ea8327acfd953b19aac"
sha256 cellar: :any_skip_relocation, x86_64_linux: "53aa9b0fabf039d043145e77b40bcd7ac86decbf8986ba1e77d6e61f622a62f5"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "fcc329420a766ae73a69b3eb78c922447581e57eb664dc6d38359f9930777d0f"
sha256 cellar: :any, arm64_sonoma: "c26b1821e174ae2f55d2586d29aee71888252e93e0a1717d4e2332fb4050b360"
sha256 cellar: :any, arm64_ventura: "b072b1ea640ffa24b468d1977658a6a60da66490255d551595e99afa5dd6ca76"
sha256 cellar: :any, sonoma: "9c3cb9265cc00eb73a6b756a4c633d826a0c348da508e511e5ae3cb4c37adae6"
sha256 cellar: :any, ventura: "38659fbf7e478bbc8d1940f9a49262414289acb6e41d6e733eed8787b51b42e0"
sha256 cellar: :any_skip_relocation, x86_64_linux: "3e55422c161f1de010bc9dbf09977dee663fa9a0e3c536fb5464679519731b64"
end

depends_on "docker" => :test
Expand Down Expand Up @@ -190,6 +191,8 @@ class Localstack < Formula
def install
virtualenv_install_with_resources
bin.install_symlink libexec/"bin/localstack"

generate_completions_from_executable(bin/"localstack", shells: [:fish, :zsh], shell_parameter_format: :click)
end

test do
Expand Down

0 comments on commit 557ec95

Please sign in to comment.