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

maturin: migrate to [email protected] #88864

Merged
merged 2 commits into from
Nov 24, 2021
Merged
Changes from 1 commit
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
7 changes: 4 additions & 3 deletions Formula/maturin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Maturin < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "454f41ec800dcc2cbb8abb6db958e3e18e336b2731947979201d3937a3254a2e"
end

depends_on "python@3.9" => :test
depends_on "python@3.10" => :test
depends_on "rust"

def install
Expand All @@ -32,7 +32,8 @@ def install
test do
Moisan marked this conversation as resolved.
Show resolved Hide resolved
system "cargo", "new", "hello_world", "--bin"
system bin/"maturin", "build", "-m", "hello_world/Cargo.toml", "-b", "bin", "-o", "dist", "--compatibility", "off"
system "python3", "-m", "pip", "install", "hello_world", "--no-index", "--find-links", testpath/"dist"
system "python3", "-m", "pip", "uninstall", "-y", "hello_world"
system Formula["[email protected]"].opt_bin/"python3", "-m", "pip", "install", "hello_world", "--no-index",
"--find-links", testpath/"dist"
system Formula["[email protected]"].opt_bin/"python3", "-m", "pip", "uninstall", "-y", "hello_world"
Moisan marked this conversation as resolved.
Show resolved Hide resolved
end
end