Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py-spy 0.4.0 #196414

Merged
merged 2 commits into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 7 additions & 23 deletions Formula/p/py-spy.rb
Original file line number Diff line number Diff line change
@@ -1,29 +1,17 @@
class PySpy < Formula
desc "Sampling profiler for Python programs"
homepage "https://github.com/benfred/py-spy"
url "https://github.com/benfred/py-spy/archive/refs/tags/v0.4.0.tar.gz"
sha256 "13a5c4b949947425670eedac05b6dd27edbc736b75f1587899efca1a7ef79ac3"
license "MIT"
head "https://github.com/benfred/py-spy.git", branch: "master"

stable do
url "https://github.com/benfred/py-spy/archive/refs/tags/v0.3.14.tar.gz"
sha256 "c01da8b74be0daba79781cfc125ffcd3df3a0d090157fe0081c71da2f6057905"

# Use `llvm@15` to work around build failure with LLVM Clang 16 (Apple Clang 15)
# described in https://github.com/rust-lang/rust-bindgen/issues/2312.
# TODO: Remove in the next release
depends_on "llvm@15" => :build if DevelopmentTools.clang_build_version >= 1500
end

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "4e312bcb385abab9511b9e96b4575180ee43734ba88293102b7a26f5a1a102f5"
sha256 cellar: :any_skip_relocation, arm64_ventura: "6640d4124619c0e3d007cb0284f2fb33d393c279baee741432d586c28e48f612"
sha256 cellar: :any_skip_relocation, arm64_monterey: "4c9528218834611e0d11368cd892d576887fa0c614cda521203b9c665b000785"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "0cbeb6a465786ff60f02816f708b1184612fbb27a3142cdf9731cc70f6b5ec59"
sha256 cellar: :any_skip_relocation, sonoma: "c9fa48e910c4b7df321fa6096f1af1f24bd8894b54a643af861c917be940a928"
sha256 cellar: :any_skip_relocation, ventura: "633076498c9549f079573bf14bd52590fa001929e36136047f99369e2cf86f84"
sha256 cellar: :any_skip_relocation, monterey: "e4e51038926d8e3e375f02c0e1511c7eb8274a40dfb4509f8d0d36e5a4ee1ff0"
sha256 cellar: :any_skip_relocation, big_sur: "411fd9ea3515958e15d197598cfe7e39cc9087cb86c2fd13db6e5af8dbb78864"
sha256 cellar: :any_skip_relocation, catalina: "9e03831868de123c9a3b9b42c6d954cedfe1241bf8c4dc5c234adca1a9ffa871"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "fbcd2bcf46a3f65af4dbde6a6a92eb8d59a301922b23b680225d16daffb8c0be"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "d3bb71312de168ff73871311d675eaeeb3b1b6e18f16b9e293fdd2e0cf8c9790"
sha256 cellar: :any_skip_relocation, arm64_ventura: "435af0f030c2ea05c0b55327f5947b3605159116f2f78e770c690a16a39da565"
sha256 cellar: :any_skip_relocation, sonoma: "54396a0c050b5504064dca4b99be3a6fdaaaeca5c774877b4df8f442374bc62c"
sha256 cellar: :any_skip_relocation, ventura: "b9c65a548a147573ebe2659f64b0474e449ca41e6f803b9ad876bf0712316869"
end

depends_on "rust" => :build
Expand All @@ -34,11 +22,7 @@ class PySpy < Formula
end

def install
odie "Check if `llvm@15` dependency can be removed!" if build.stable? && version > "0.3.14"
ENV.remove "HOMEBREW_LIBRARY_PATHS", Formula["llvm@15"].opt_lib

system "cargo", "install", *std_cargo_args

generate_completions_from_executable(bin/"py-spy", "completions")
end

Expand Down
Loading