From 232b5efbeaaffaed80a5be11d28add4790eb18d3 Mon Sep 17 00:00:00 2001 From: Bart Skowron Date: Wed, 6 Mar 2024 00:07:48 +0100 Subject: [PATCH] Add `pyenv-virtualenv-migrate` formula (#1) --- Formula/pyenv-virtualenv-migrate.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Formula/pyenv-virtualenv-migrate.rb diff --git a/Formula/pyenv-virtualenv-migrate.rb b/Formula/pyenv-virtualenv-migrate.rb new file mode 100644 index 0000000..2b6b3f9 --- /dev/null +++ b/Formula/pyenv-virtualenv-migrate.rb @@ -0,0 +1,20 @@ +class PyenvVirtualenvMigrate < Formula + desc "Migrate all pyenv virtual environments from a Python compiler version to another" + homepage "https://github.com/ashwinvis/pyenv-virtualenv-migrate" + url "https://github.com/ashwinvis/pyenv-virtualenv-migrate/archive/refs/tags/0.0.2.tar.gz" + sha256 "c0166b0e6ccfa0a4d00d4fa43bfd97b99939d8cb8e708e6fccf8fa939c9c31fd" + license "MIT" + head "https://github.com/ashwinvis/pyenv-virtualenv-migrate.git", branch: "main" + + depends_on "pyenv" + depends_on "pyenv-pip-migrate" + depends_on "pyenv-virtualenv" + + def install + prefix.install Dir["*"] + end + + test do + shell_output("eval \"$(pyenv init -)\" && pyenv help virtualenv-migrate") + end +end