-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtccli.rb
36 lines (32 loc) · 1.48 KB
/
tccli.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Documentation: https://docs.brew.sh/Formula-Cookbook
# https://rubydoc.brew.sh/Formula
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Tccli < Formula
include Language::Python::Virtualenv
desc "Tencent Cloud API 3.0 Command Line Interface"
homepage "https://cloud.tencent.com/document/product/440/6176"
url "https://github.com/TencentCloud/tencentcloud-cli/archive/3.0.1259.1.tar.gz"
sha256 "e088ad099841dbee7c4a04c99e3c2460a7f029a9148817daa76603954f882ade"
license "Apache-2.0"
depends_on "[email protected]"
def install
venv = virtualenv_create(libexec, "python3", without_pip: false)
system libexec/"bin/pip", "install", "-v",
"--ignore-installed", buildpath
system libexec/"bin/pip", "uninstall", "-y", "tccli"
venv.pip_install_and_link buildpath
system libexec/"bin/pip", "uninstall", "-y", "pyinstaller"
end
test do
# `test do` will create, run in and delete a temporary directory.
#
# This test will fail and we won't accept that! For Homebrew/homebrew-core
# this will need to be a test that verifies the functionality of the
# software. Run the test with `brew test tencentcloud-cli`. Options passed
# to `brew install` such as `--HEAD` also need to be provided to `brew test`.
#
# The installed folder is not in the path, so use the entire path to any
# executables being tested: `system "#{bin}/program", "do", "something"`.
system "false"
end
end