Skip to content

Commit

Permalink
micromamba: bump to 2.0.1
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: Carlo Cabrera <github@carlo.cab>
  • Loading branch information
henryiii and carlocab committed Nov 6, 2024
1 parent 3f4970e commit 50eccb3
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions Formula/m/micromamba.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Micromamba < Formula

Check warning on line 1 in Formula/m/micromamba.rb

View workflow job for this annotation

GitHub Actions / Linux

micromamba: Formula version newer than livecheck

The formula version (2.0.3) is newer than the version from `brew livecheck` (2.0.1).

Check warning on line 1 in Formula/m/micromamba.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

micromamba: Formula version newer than livecheck

The formula version (2.0.3) is newer than the version from `brew livecheck` (2.0.1).

Check warning on line 1 in Formula/m/micromamba.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

micromamba: Formula version newer than livecheck

The formula version (2.0.3) is newer than the version from `brew livecheck` (2.0.1).

Check warning on line 1 in Formula/m/micromamba.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

micromamba: Formula version newer than livecheck

The formula version (2.0.3) is newer than the version from `brew livecheck` (2.0.1).

Check warning on line 1 in Formula/m/micromamba.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

micromamba: Formula version newer than livecheck

The formula version (2.0.3) is newer than the version from `brew livecheck` (2.0.1).

Check warning on line 1 in Formula/m/micromamba.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

micromamba: Formula version newer than livecheck

The formula version (2.0.3) is newer than the version from `brew livecheck` (2.0.1).
desc "Fast Cross-Platform Package Manager"
homepage "https://github.com/mamba-org/mamba"
url "https://github.com/mamba-org/mamba/archive/refs/tags/micromamba-1.5.10.tar.gz"
sha256 "38ee4658f66c5e4bf2c33cd3c9c0ebd01fe2e3a6da6ac619cc4702a9072dcc3c"
url "https://github.com/mamba-org/mamba/archive/refs/tags/micromamba-2.0.3.tar.gz"
sha256 "564e9ffc91015e8b1699f2de1baa59449ab037f27e4c19355680a0f145fd2b9d"
license "BSD-3-Clause"
head "https://github.com/mamba-org/mamba.git", branch: "main"

Expand Down Expand Up @@ -34,6 +34,7 @@ class Micromamba < Formula
depends_on "lz4"
depends_on "openssl@3"
depends_on "reproc"
depends_on "simdjson"
depends_on "xz"
depends_on "yaml-cpp"
depends_on "zstd"
Expand All @@ -48,29 +49,34 @@ def install
args = %W[
-DBUILD_LIBMAMBA=ON
-DBUILD_SHARED=ON
-DBUILD_MICROMAMBA=ON
-DMICROMAMBA_LINKAGE=DYNAMIC
-DBUILD_STATIC=OFF
-DBUILD_MAMBA=ON
-DCMAKE_INSTALL_RPATH=#{rpath}
]

system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
# Upstream chooses names based on static or dynamic linking,
# but as of 2.0 they provide identical interfaces.
bin.install_symlink "mamba" => "micromamba"
end

def caveats
<<~EOS
Please run the following to setup your shell:
#{opt_bin}/micromamba shell init -s <your-shell> -p ~/micromamba
#{opt_bin}/mamba shell init -s <your-shell> -p ~/mamba
and restart your terminal.
EOS
end

test do
ENV["MAMBA_ROOT_PREFIX"] = testpath.to_s
assert_match version.to_s, shell_output("#{bin}/mamba --version").strip
assert_match version.to_s, shell_output("#{bin}/micromamba --version").strip

python_version = "3.9.13"
system bin/"micromamba", "create", "-n", "test", "python=#{python_version}", "-y", "-c", "conda-forge"
assert_match "Python #{python_version}", shell_output("#{bin}/micromamba run -n test python --version").strip
system bin/"mamba", "create", "-n", "test", "python=#{python_version}", "-y", "-c", "conda-forge"
assert_match "Python #{python_version}", shell_output("#{bin}/mamba run -n test python --version").strip
end
end

0 comments on commit 50eccb3

Please sign in to comment.