Skip to content

Commit

Permalink
Merge pull request #155446 from chenrui333/aiven-client-std_pip_args
Browse files Browse the repository at this point in the history
aiven-client: use `std_pip_args`
  • Loading branch information
BrewTestBot authored Nov 25, 2023
2 parents a7e0ef5 + 9b58ce2 commit 0c15b3e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 30 deletions.
45 changes: 16 additions & 29 deletions Formula/a/aiven-client.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class AivenClient < Formula
include Language::Python::Virtualenv

desc "Official command-line client for Aiven"
homepage "https://docs.aiven.io/docs/tools/cli"
url "https://files.pythonhosted.org/packages/b3/dc/869bcceb3e6f33ebd8e7518fb70e522af975e7f3d78eda23642f640c393c/aiven_client-4.0.0.tar.gz"
Expand All @@ -9,40 +7,29 @@ class AivenClient < Formula
head "https://github.com/aiven/aiven-client.git", branch: "main"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "b305efc5db3035efad11cc911c90a1938b2c411403d6ab670c55af43189b5b9d"
sha256 cellar: :any_skip_relocation, arm64_ventura: "718117c6146a956d59a381792ad472e8dac03a9e38cfcf3f85bf3b9dd6795519"
sha256 cellar: :any_skip_relocation, arm64_monterey: "4c6ed0f635a3c8099ed1c98a853b7fdf2573f6ee68715074347d5cbee023f2e7"
sha256 cellar: :any_skip_relocation, sonoma: "3e30101059457e6767cee65852c4dedf67fdb29b3f7f91e337e24ceb413fb43b"
sha256 cellar: :any_skip_relocation, ventura: "057bf8cbd25c47248e7b668e7ccc74576e1211cde3af3da54f9e4d1ef8698f4b"
sha256 cellar: :any_skip_relocation, monterey: "ff290091fb814250cdbf21a1fedfb5e50936ce075f2630d54046addaf468e69e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d57dcba0965c44a2bb7687c686234ff1d91c10d2817e8d5e7fe747fcd4d438c2"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "8aa6347005c918084ec5f483b599cc8dfab2a73cdf1cf281b6f59caecf6537de"
sha256 cellar: :any_skip_relocation, arm64_ventura: "58429a6c9d968418986836548f98611f744bed68b1f733f37380d7f5833c0eda"
sha256 cellar: :any_skip_relocation, arm64_monterey: "79bd9db375396df85f3623745a311faf0c7ebe2d1af975a473281d7192066311"
sha256 cellar: :any_skip_relocation, sonoma: "e20aaeb061f534a7786cb310a56a732b8b7286ee0a7a369f64ba746f20117438"
sha256 cellar: :any_skip_relocation, ventura: "7c82ef8afaf7bcd0920ae77ec8b758fdf479af52cbd97759ff887b972719b462"
sha256 cellar: :any_skip_relocation, monterey: "8950368eaee73ee77b5b20700279057c914fb4b49c1cefc0662518f2d32542d8"
sha256 cellar: :any_skip_relocation, x86_64_linux: "047597c18b186cee563ae6f484c1af088134a39c552dfea1b1b5cfbbba75e46d"
end

depends_on "python-certifi"
depends_on "python-hatch-vcs" => :build
depends_on "python-hatchling" => :build
depends_on "python-setuptools" => :build
depends_on "python-setuptools-scm" => :build
depends_on "python-requests"
depends_on "[email protected]"

resource "charset-normalizer" do
url "https://files.pythonhosted.org/packages/63/09/c1bc53dab74b1816a00d8d030de5bf98f724c52c1635e07681d312f20be8/charset-normalizer-3.3.2.tar.gz"
sha256 "f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5"
end

resource "idna" do
url "https://files.pythonhosted.org/packages/8b/e1/43beb3d38dba6cb420cefa297822eac205a277ab43e5ba5d5c46faf96438/idna-3.4.tar.gz"
sha256 "814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4"
end

resource "requests" do
url "https://files.pythonhosted.org/packages/9d/be/10918a2eac4ae9f02f6cfe6414b7a155ccd8f7f9d4380d62fd5b955065c3/requests-2.31.0.tar.gz"
sha256 "942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1"
end

resource "urllib3" do
url "https://files.pythonhosted.org/packages/af/47/b215df9f71b4fdba1025fc05a77db2ad243fa0926755a52c5e71659f4e3c/urllib3-2.0.7.tar.gz"
sha256 "c97dfde1f7bd43a71c8d2a58e369e9b2bf692d1334ea9f9cae55add7d0dd0f84"
def python3
"python3.12"
end

def install
virtualenv_install_with_resources
system python3, "-m", "pip", "install", *std_pip_args, "."
end

test do
Expand Down
2 changes: 1 addition & 1 deletion pypi_formula_mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"exclude_packages": ["certifi", "click"]
},
"aiven-client": {
"exclude_packages": ["certifi"]
"exclude_packages": ["requests"]
},
"adb-enhanced": {
"exclude_packages": ["docopt", "psutil"]
Expand Down

0 comments on commit 0c15b3e

Please sign in to comment.