ansible: migrate to python@3.11

master
David Baumgold 2022-11-23 13:24:19 -05:00 committed by BrewTestBot
parent d1f65b45c4
commit 6c4fad3d7a
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ class Ansible < Formula
depends_on "pkg-config" => :build
depends_on "rust" => :build
depends_on "openssl@1.1"
depends_on "python@3.10"
depends_on "python@3.11"
depends_on "pyyaml"
depends_on "six"
@ -564,7 +564,7 @@ class Ansible < Formula
end
def install
venv = virtualenv_create(libexec, "python3.10")
venv = virtualenv_create(libexec, "python3.11")
# Install all of the resources declared on the formula into the virtualenv.
resources.each do |r|
# ansible-core provides all ansible binaries
@ -593,7 +593,7 @@ class Ansible < Formula
EOS
(testpath/"hosts.ini").write [
"localhost ansible_connection=local",
" ansible_python_interpreter=#{Formula["python@3.10"].opt_bin}/python3.10",
" ansible_python_interpreter=#{Formula["python@3.11"].opt_bin}/python3.11",
"\n",
].join
system bin/"ansible-playbook", testpath/"playbook.yml", "-i", testpath/"hosts.ini"