fabric: depend on pyinvoke
Closes #113953. Signed-off-by: Rui Chen <rui@chenrui.dev> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
6d6b400873
commit
eb29a9c5f3
|
@ -20,6 +20,7 @@ class Fabric < Formula
|
|||
|
||||
depends_on "rust" => :build
|
||||
depends_on "openssl@1.1"
|
||||
depends_on "pyinvoke"
|
||||
depends_on "python@3.10"
|
||||
depends_on "six"
|
||||
|
||||
|
@ -38,11 +39,6 @@ class Fabric < Formula
|
|||
sha256 "63f9c17c0e2474ccbebc9302ce2f07b55b3b3fcb211ded18a42d5764f5c10a82"
|
||||
end
|
||||
|
||||
resource "invoke" do
|
||||
url "https://files.pythonhosted.org/packages/df/59/41b614b9d415929b4d72e3ee658bd088640e9a800e55663529a8237deae3/invoke-1.7.1.tar.gz"
|
||||
sha256 "7b6deaf585eee0a848205d0b8c0014b9bf6f287a8eb798818a642dff1df14b19"
|
||||
end
|
||||
|
||||
resource "paramiko" do
|
||||
url "https://files.pythonhosted.org/packages/1d/08/3b8d8f1b4ec212c17429c2f3ff55b7f2237a1ad0c954972e39c8f0ac394c/paramiko-2.11.0.tar.gz"
|
||||
sha256 "003e6bee7c034c21fbb051bf83dc0a9ee4106204dd3c53054c71452cc4ec3938"
|
||||
|
@ -65,6 +61,11 @@ class Fabric < Formula
|
|||
|
||||
def install
|
||||
virtualenv_install_with_resources
|
||||
|
||||
# we depend on pyinvoke, but that's a separate formula, so install a `.pth` file to link them
|
||||
site_packages = Language::Python.site_packages("python3.10")
|
||||
pyinvoke = Formula["pyinvoke"].opt_libexec
|
||||
(libexec/site_packages/"homebrew-pyinvoke.pth").write pyinvoke/site_packages
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
|
@ -193,7 +193,7 @@
|
|||
"exclude_packages": ["six"]
|
||||
},
|
||||
"fabric": {
|
||||
"exclude_packages": ["six"]
|
||||
"exclude_packages": ["six", "invoke"]
|
||||
},
|
||||
"fava": {
|
||||
"exclude_packages": ["six"]
|
||||
|
|
Loading…
Reference in New Issue