Skip to content

Commit

Permalink
maturin: migrate to python@3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Moisan committed Nov 21, 2021
1 parent 155659b commit 0f9718b
Showing 1 changed file with 4 additions and 3 deletions.
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
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["python@3.10"].opt_bin/"python3", "-m", "pip", "install", "hello_world", "--no-index",
"--find-links", testpath/"dist"
system Formula["python@3.10"].opt_bin/"python3", "-m", "pip", "uninstall", "-y", "hello_world"
end
end

0 comments on commit 0f9718b

Please sign in to comment.