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 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
3 changes: 2 additions & 1 deletion 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 @@ -30,6 +30,7 @@ def install
end

test do
Moisan marked this conversation as resolved.
Show resolved Hide resolved
ENV.prepend_path "PATH", Formula["[email protected]"].opt_bin
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"
Expand Down