Skip to content

Commit df590db

Browse files
authored
Merge pull request #173600 from Homebrew/bump-uv-0.2.6
uv 0.2.6
2 parents 1f47060 + 3d06a4e commit df590db

File tree

1 file changed

+9
-34
lines changed

1 file changed

+9
-34
lines changed

Formula/u/uv.rb

Lines changed: 9 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
class Uv < Formula
22
desc "Extremely fast Python package installer and resolver, written in Rust"
33
homepage "https://github.com/astral-sh/uv"
4-
url "https://github.com/astral-sh/uv/archive/refs/tags/0.2.5.tar.gz"
5-
sha256 "6a46ce9fc67c088c22f52daf9709287c19e75477c1e24d60409eaa412f3cd921"
4+
url "https://github.com/astral-sh/uv/archive/refs/tags/0.2.6.tar.gz"
5+
sha256 "92320fd6dd4bc8903af4ffd5b412a61125bbd4a83838c75deeaffa48e48faf7a"
66
license any_of: ["Apache-2.0", "MIT"]
77
head "https://github.com/astral-sh/uv.git", branch: "main"
88

99
bottle do
10-
sha256 cellar: :any, arm64_sonoma: "f60bb6906f2d2d4a1dfdf1c78b6c9814d2892fe16b37facf37ecabf83fd9dd23"
11-
sha256 cellar: :any, arm64_ventura: "845e1b7a3ee0786ba02b7ee9d893aeb6f28eabe61bd8de37848008b1933f2207"
12-
sha256 cellar: :any, arm64_monterey: "42126ae3ae9df7fe8ea144a9b3b29cd7945c4bd4c6f3947c8ed51a92d441e1c6"
13-
sha256 cellar: :any, sonoma: "2755745b751a47269daa946918f1972d5dc0ad11553651527a50f0e9346fa026"
14-
sha256 cellar: :any, ventura: "3931a07ad8e83677dd4fdc4601c706b71df1125e82a020b98503507541465485"
15-
sha256 cellar: :any, monterey: "f91e47045a7a7c7e38e6239755d9665be9d4f2697d77bd628396cb1cc87c2b17"
16-
sha256 cellar: :any_skip_relocation, x86_64_linux: "970e36f568d07b825e097a02b307f4eac001f8f92b87166240be64356747d1fc"
10+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "db88f16548a401e261ad28ae2be893c1850bb50b521e62b104c4907c311bcd97"
11+
sha256 cellar: :any_skip_relocation, arm64_ventura: "2c929ece0a8968a6f61175a0a150933e34675f11b3f67be980308ef331364183"
12+
sha256 cellar: :any_skip_relocation, arm64_monterey: "a88722008dc2e870692d7b57764b7f202b16b76ca29692a190c71bbb3e23457f"
13+
sha256 cellar: :any_skip_relocation, sonoma: "c33eb9ba17aa4817e88e286fc492acb720e187bd7204e079f627f7d4e06a99ef"
14+
sha256 cellar: :any_skip_relocation, ventura: "a8ad5a6f8aaf6a7d3feeaae875493fc33577a6d937063448c979203d6172947a"
15+
sha256 cellar: :any_skip_relocation, monterey: "2fd13cd1ff74306f5aaa9149399ca585ff99ebda5add2c37269234ab51052e75"
16+
sha256 cellar: :any_skip_relocation, x86_64_linux: "4510dbe076c2e2f039011c2cb4120f47e2be93b4c889c1d207d7ace0b2ad5799"
1717
end
1818

1919
depends_on "pkg-config" => :build
2020
depends_on "rust" => :build
21-
depends_on "libgit2"
22-
depends_on "openssl@3"
2321

2422
uses_from_macos "python" => :test
2523

@@ -30,24 +28,10 @@ class Uv < Formula
3028
end
3129

3230
def install
33-
ENV["LIBGIT2_NO_VENDOR"] = "1"
34-
35-
# Ensure that the `openssl` crate picks up the intended library.
36-
ENV["OPENSSL_DIR"] = Formula["openssl@3"].opt_prefix
37-
ENV["OPENSSL_NO_VENDOR"] = "1"
38-
3931
system "cargo", "install", "--no-default-features", *std_cargo_args(path: "crates/uv")
4032
generate_completions_from_executable(bin/"uv", "generate-shell-completion")
4133
end
4234

43-
def check_binary_linkage(binary, library)
44-
binary.dynamically_linked_libraries.any? do |dll|
45-
next false unless dll.start_with?(HOMEBREW_PREFIX.to_s)
46-
47-
File.realpath(dll) == File.realpath(library)
48-
end
49-
end
50-
5135
test do
5236
(testpath/"requirements.in").write <<~EOS
5337
requests
@@ -56,14 +40,5 @@ def check_binary_linkage(binary, library)
5640
compiled = shell_output("#{bin}/uv pip compile -q requirements.in")
5741
assert_match "This file was autogenerated by uv", compiled
5842
assert_match "# via requests", compiled
59-
60-
[
61-
Formula["libgit2"].opt_lib/shared_library("libgit2"),
62-
Formula["openssl@3"].opt_lib/shared_library("libssl"),
63-
Formula["openssl@3"].opt_lib/shared_library("libcrypto"),
64-
].each do |library|
65-
assert check_binary_linkage(bin/"uv", library),
66-
"No linkage with #{library.basename}! Cargo is likely using a vendored version."
67-
end
6843
end
6944
end

0 commit comments

Comments
 (0)