-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #90088. Signed-off-by: Carlo Cabrera <[email protected]> Signed-off-by: BrewTestBot <[email protected]>
- Loading branch information
1 parent
763ca9d
commit 8e8fa71
Showing
1 changed file
with
0 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ class Poetry < Formula | |
sha256 cellar: :any_skip_relocation, x86_64_linux: "e33f71e0e2507519a6f11ecf51fc9657f932d01676ddf98186c55931441d4116" | ||
end | ||
|
||
depends_on "[email protected]" => :test | ||
depends_on "[email protected]" | ||
depends_on "six" | ||
|
||
|
@@ -201,16 +200,5 @@ def install | |
assert_predicate testpath/"homebrew/poetry.lock", :exist? | ||
assert_match "requests", (testpath/"homebrew/pyproject.toml").read | ||
assert_match "boto3", (testpath/"homebrew/pyproject.toml").read | ||
|
||
# Check using different python versions | ||
# See https://github.com/Homebrew/homebrew-core/issues/62910 | ||
pythons = deps.map(&:to_formula).select { |f| f.name.match?(/^python@3\.\d+$/) } | ||
cd testpath/"homebrew" do | ||
inreplace "pyproject.toml", /^python = "\^3.*"/, 'python = "^3"' | ||
pythons.each do |python| | ||
system bin/"poetry", "env", "use", python.opt_bin/"python3" | ||
assert_match python.version.to_s, shell_output("#{bin}/poetry run python --version") | ||
end | ||
end | ||
end | ||
end |