Skip to content

Commit

Permalink
Merge pull request Homebrew#202973 from Homebrew/python-completion-d-f
Browse files Browse the repository at this point in the history
d-f*: add argcomplete/click shell completions
  • Loading branch information
BrewTestBot authored Jan 2, 2025
2 parents fb863e3 + 89877f2 commit cccff9f
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 43 deletions.
15 changes: 9 additions & 6 deletions Formula/d/djlint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ class Djlint < Formula
head "https://github.com/djlint/djLint.git", branch: "master"

bottle do
sha256 cellar: :any, arm64_sequoia: "8fde60794f6d2d3081b26378c7b81eab4ee1536cd4cd4096339793e03a49b13f"
sha256 cellar: :any, arm64_sonoma: "e8cfe070ce355fdcc6a856446b7f4ca8b65b3923b6b6ca2d6b0f4f953fdb0746"
sha256 cellar: :any, arm64_ventura: "290ed5ea0c78d9804d40a8faf75f9b231f0b8e26bcd51019c87bb369c871cc33"
sha256 cellar: :any, sonoma: "6d08e360c17706da616c50aecee6df832e8544653e888708c8ab4f0b5a5f9943"
sha256 cellar: :any, ventura: "a0c51c51e35eb4e669f796e214ea5aeb7be4850965d60e4bba0ca1e0891b095b"
sha256 cellar: :any_skip_relocation, x86_64_linux: "48f192851e8ca155e2553c6ec29addb7244989d9615d2a012640dabae3d3198d"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "ffffd50d9a981e616541d88a685b44ddd5fdb425873563681e3c0611775f48f7"
sha256 cellar: :any, arm64_sonoma: "15f38fb5cc8c6d57101be9f42ddef52a9e8c82b23874dff59b2051c282656e11"
sha256 cellar: :any, arm64_ventura: "25d8dd0b2238eef47a3f7d9cde2ff99c5bac124bdae44855aba1ef11fd4f977b"
sha256 cellar: :any, sonoma: "b6d24985a8a4d539ff7b2ce6f121eda24a96691ef42b5785714cd0394e9c7d9e"
sha256 cellar: :any, ventura: "2f351016b97bf06731b52dfca66ae25fd7b2d8a95442bf70e0c011789dd63105"
sha256 cellar: :any_skip_relocation, x86_64_linux: "fa3b3445307399671cdda0fb78276dc88e33823b28c4db26a27ded1f8ff9e4e9"
end

depends_on "libyaml"
Expand Down Expand Up @@ -77,6 +78,8 @@ class Djlint < Formula

def install
virtualenv_install_with_resources

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

test do
Expand Down
6 changes: 4 additions & 2 deletions Formula/d/dnsgen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class Dnsgen < Formula
head "https://github.com/AlephNullSK/dnsgen.git", branch: "master"

bottle do
rebuild 2
sha256 cellar: :any_skip_relocation, all: "edaea6fa7dc467ed682a732e401d46ce3bdee35ed877a61e7bdf131ac9914ea0"
rebuild 3
sha256 cellar: :any_skip_relocation, all: "0c01003d3350f795d946702e6853000f34c5436839ae5771deef6b84da57e2b6"
end

depends_on "certifi"
Expand Down Expand Up @@ -58,6 +58,8 @@ class Dnsgen < Formula

def install
virtualenv_install_with_resources

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

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

bottle do
sha256 cellar: :any, arm64_sequoia: "16c33a50a9c73837fbdfa2ddb08cef046583d64a1b64ca82da0fa718a08d0de9"
sha256 cellar: :any, arm64_sonoma: "1f1e58c3522dbee6bb82938889c9f6f79fce53af208896b765a8056c6dc845bc"
sha256 cellar: :any, arm64_ventura: "42786ad6dceeba5308297e5ddc40bf34e09255823c12d0dc4d4842d29a712800"
sha256 cellar: :any, sonoma: "7d446a7d0fd3f4e1b124434d3418ed5c5cfb95e81fd593807c0757b070b05ec8"
sha256 cellar: :any, ventura: "cb4d7b0d9ec3df2e7477a1ad054377dc589bb33e18599b1db1cec35fa04ec4c0"
sha256 cellar: :any_skip_relocation, x86_64_linux: "3fa530fabf630fdfd0d98a3d1756722d9c5f7426bcc151ab4582b8410d0b6b90"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "28e26bfd0d1b64a2c5e6c8f2530f8226e5293a15831f923879d588a68b8e8e25"
sha256 cellar: :any, arm64_sonoma: "3063a42abfe79996679469529c459da907354d9450a141695a7e412bb8308e33"
sha256 cellar: :any, arm64_ventura: "0e8872e9a7b67579b3693d9a5874084801991ab019c17b1b2683315c7052bd2e"
sha256 cellar: :any, sonoma: "3417fc5d17fa21ad45adaacd71eaf9c370352d41a81f9cc2bc77023524629421"
sha256 cellar: :any, ventura: "5aab34101df08674d9b15a59fe0896f8f43d0c895ffb1a41980c62368ec57e9d"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d74e67a6601a1be24dae34f987a97d076c551d9f64827451f23beef5d42401e2"
end

depends_on "cmake" => :build
Expand Down Expand Up @@ -108,6 +109,8 @@ class Dooit < Formula

def install
virtualenv_install_with_resources

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

test do
Expand Down
6 changes: 4 additions & 2 deletions Formula/e/ecs-deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class EcsDeploy < Formula
license "BSD-3-Clause"

bottle do
rebuild 2
sha256 cellar: :any_skip_relocation, all: "ae4fcc6123a4cd0df1b259bbab8622295aaff590e0f2e4f67a3719294398eea8"
rebuild 3
sha256 cellar: :any_skip_relocation, all: "2a39ba8e746ca7f276e14126cf1c90420398305922edecbe349cd2b9599201b2"
end

depends_on "certifi"
Expand Down Expand Up @@ -87,6 +87,8 @@ class EcsDeploy < Formula

def install
virtualenv_install_with_resources

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

test do
Expand Down
17 changes: 10 additions & 7 deletions Formula/e/esphome.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ class Esphome < Formula
license "MIT"

bottle do
sha256 cellar: :any, arm64_sequoia: "5cac3b96be3be4b7cdc2bc0128df3e06ca37e876d9d9b6d0980d15c4d47eea30"
sha256 cellar: :any, arm64_sonoma: "c14d3fcae318ce7bb94fbb569221f38d218352b4bb0424f65925bc0d65007154"
sha256 cellar: :any, arm64_ventura: "558e8b8227ac075acdad3569948b676694b4f763f1c3b69feeb71a1d9b9e8bd7"
sha256 cellar: :any, sonoma: "a8b094d0e234d5da8666d9e1823f1880bb2f2c3e559ee173acd609e5afc879c3"
sha256 cellar: :any, ventura: "8a1942edcc5305c816d36996f8dc569e926b5c83660344812e5c80673388bdd3"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e4d734b6e6316550ce8698c4e3b4044b539bb99488520723b552645f3ffccda9"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "99e18704e1e829323cbab0528f787505b8d304f21fc3a5a85ea88ecbb7918ff1"
sha256 cellar: :any, arm64_sonoma: "cdcd1719a2fef454357290cc24d639357c4e0ce22fe1c33e179adaa033657348"
sha256 cellar: :any, arm64_ventura: "7bc02029fe1ca3b01b6709c0e5b8dc060951928af3e3120d8826a3b1ad30d15d"
sha256 cellar: :any, sonoma: "8ef29849a1fa8d3b4b46d1badb07156f8bec494508f6e683433b85d7cc4d8300"
sha256 cellar: :any, ventura: "07d4a2539182edec2bdbb1a035bea09a8735bbdb71bb42095ed1da691706a844"
sha256 cellar: :any_skip_relocation, x86_64_linux: "60daed2b0f4479fc7405e26185308658668514ab51820fd484bf4b18de8de19a"
end

depends_on "pkgconf" => :build
Expand All @@ -27,7 +28,6 @@ class Esphome < Formula
depends_on "libyaml"
depends_on "little-cms2"
depends_on "pillow"
depends_on "python-setuptools"
depends_on "[email protected]"
depends_on "webp"

Expand Down Expand Up @@ -350,6 +350,9 @@ class Esphome < Formula

def install
virtualenv_install_with_resources

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

test do
Expand Down
18 changes: 12 additions & 6 deletions Formula/e/esptool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ class Esptool < Formula
revision 1

bottle do
sha256 cellar: :any, arm64_sequoia: "11062defdb3e0e64afc4d86f61474e6fa0cdf0646a4335c991a09563a90c9ff3"
sha256 cellar: :any, arm64_sonoma: "4373c938b5e538847006da6c7ed1edf93a5ff7b9dd1f5a76b1abcb68898fdec3"
sha256 cellar: :any, arm64_ventura: "495e3a8f36f37f4cd6d807d89aadb44ba8c0e5f829c7f5a7901e28876e492553"
sha256 cellar: :any, sonoma: "70a8cc11e7bd50d039f5686149c32bffb65f877115663543ccb3fecf1c1b9e9c"
sha256 cellar: :any, ventura: "df06b71d185a18aff7dc694a21287bf71699a4097e88a8a08dbc8668065f68ee"
sha256 cellar: :any_skip_relocation, x86_64_linux: "586a583e0380e748419d35f39283d6d1e2df28b4befb05275c43af51a9a643c6"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "aad39de44889bb764d3fd6cca00df3348cdb04ff7f0076e6e367e5dea8bd8fd7"
sha256 cellar: :any, arm64_sonoma: "90745c064cd63eb2a562a5f6d5059912539157c29f164495928122784e90a274"
sha256 cellar: :any, arm64_ventura: "eebafbba9715281b8d4a3bcb298f2bc38605cb8c4679ac3d4d9c5112fce82cc4"
sha256 cellar: :any, sonoma: "2924d5ea64cf8dbc011a8c1124efc2b093bc984667a5b14366c690c6d4ae637b"
sha256 cellar: :any, ventura: "acf99fe8d78ef16a6260ea395bfaa2eb67ebe2ea15e0e43a2deaa9af90cf9505"
sha256 cellar: :any_skip_relocation, x86_64_linux: "4f9a9f990ee858a111961f260c9d270e068f0b07f5dbbab15c72c12e40446564"
end

depends_on "cryptography"
Expand Down Expand Up @@ -71,6 +72,11 @@ def install
ENV["PYTHONPYCACHEPREFIX"] = buildpath/"pycache"

virtualenv_install_with_resources

bin.each_child(false) do |script|
generate_completions_from_executable(libexec/"bin/register-python-argcomplete", script.to_s,
base_name: script.to_s, shell_parameter_format: :arg)
end
end

test do
Expand Down
16 changes: 9 additions & 7 deletions Formula/f/flintrock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ class Flintrock < Formula
license "Apache-2.0"

bottle do
rebuild 3
sha256 cellar: :any, arm64_sequoia: "24fa38c3037c441cea8ddda14ed7d0017c958bbe7fcd1a5eaa538a3200eb04b0"
sha256 cellar: :any, arm64_sonoma: "8da514e5c1f5ff0cc944d6d5574fafe09310c20341b90a493b9151dd5e651be9"
sha256 cellar: :any, arm64_ventura: "e1c9c2bee6e3559729afaf25b2c1e3a96ae3f2fc11897f40aec89d0006eb46bd"
sha256 cellar: :any, sonoma: "6415cd4b740d679ddcc1d7b3edbfa9bbfdc7316644473a59da0cd36515104551"
sha256 cellar: :any, ventura: "b5c89ee5307ef6c7091f8f6c527222cd0fdce2356c1297d8fa49aa7933ab40ae"
sha256 cellar: :any_skip_relocation, x86_64_linux: "4f3686b5e99c219bd9214b7fb553c0a33c73b990f492530f25bb33f821396e33"
rebuild 4
sha256 cellar: :any, arm64_sequoia: "a1211bc4ea1c062dfa95b3c14f6da61dcab02b1d6216e6687ef58b6680379089"
sha256 cellar: :any, arm64_sonoma: "199ee4726b6a069ff33ccf5fb1650b74645d89c9fb42b16d85a89df361c33afe"
sha256 cellar: :any, arm64_ventura: "8e34466bfce9510389d673167e2b86430f034ff8f51c7a830af341f76fb7d54f"
sha256 cellar: :any, sonoma: "53dd4e7e69bd54ca81bb968017244dbaa6b7179b065461c475050aeab2d8f3f9"
sha256 cellar: :any, ventura: "97151962e88f570735fd2a02769f7d3bc6c1ef13ea5bd54643fb4ddeb71b00cb"
sha256 cellar: :any_skip_relocation, x86_64_linux: "48fe7af4aefa589974da8e5eab93f9a9c159aa16d701699930ddaad0a943a20a"
end

depends_on "rust" => :build # for bcrypt
Expand Down Expand Up @@ -88,6 +88,8 @@ class Flintrock < Formula

def install
virtualenv_install_with_resources

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

test do
Expand Down
16 changes: 9 additions & 7 deletions Formula/f/fred.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ class Fred < Formula
revision 1

bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sequoia: "607fa7cf50271364c47e8f09142ebcbd42c4057439ee93fe4ec6dd6e288a3048"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "607fa7cf50271364c47e8f09142ebcbd42c4057439ee93fe4ec6dd6e288a3048"
sha256 cellar: :any_skip_relocation, arm64_ventura: "607fa7cf50271364c47e8f09142ebcbd42c4057439ee93fe4ec6dd6e288a3048"
sha256 cellar: :any_skip_relocation, sonoma: "a6c34c41fc0e74288beade477077831f9408505dc0d570dbf6fb39047d472fe5"
sha256 cellar: :any_skip_relocation, ventura: "a6c34c41fc0e74288beade477077831f9408505dc0d570dbf6fb39047d472fe5"
sha256 cellar: :any_skip_relocation, x86_64_linux: "607fa7cf50271364c47e8f09142ebcbd42c4057439ee93fe4ec6dd6e288a3048"
rebuild 2
sha256 cellar: :any_skip_relocation, arm64_sequoia: "dda7a9bb2e5061f6166ccee21467b94ded8b850aca54196ab1405c2d773042db"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "dda7a9bb2e5061f6166ccee21467b94ded8b850aca54196ab1405c2d773042db"
sha256 cellar: :any_skip_relocation, arm64_ventura: "dda7a9bb2e5061f6166ccee21467b94ded8b850aca54196ab1405c2d773042db"
sha256 cellar: :any_skip_relocation, sonoma: "eedf8e333e8eddde050d16bda766093370475729b1219e6de44fa0795ad5e182"
sha256 cellar: :any_skip_relocation, ventura: "eedf8e333e8eddde050d16bda766093370475729b1219e6de44fa0795ad5e182"
sha256 cellar: :any_skip_relocation, x86_64_linux: "dda7a9bb2e5061f6166ccee21467b94ded8b850aca54196ab1405c2d773042db"
end

depends_on "certifi"
Expand Down Expand Up @@ -53,6 +53,8 @@ class Fred < Formula

def install
virtualenv_install_with_resources

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

test do
Expand Down

0 comments on commit cccff9f

Please sign in to comment.