autopep8: move to Python 3

This commit is contained in:
FX Coudert 2018-10-10 13:38:17 +02:00
parent 12f8f68060
commit c00a1772ab

View file

@ -5,6 +5,7 @@ class Autopep8 < Formula
homepage "https://github.com/hhatto/autopep8"
url "https://files.pythonhosted.org/packages/cf/30/9efc988f92f41e2ba51211e3d317ee82260d563ae84dceb53f7021a1bdfe/autopep8-1.4.tar.gz"
sha256 "655e3ee8b4545be6cfed18985f581ee9ecc74a232550ee46e9797b6fbf4f336d"
revision 1
bottle do
cellar :any_skip_relocation
@ -14,10 +15,10 @@ class Autopep8 < Formula
sha256 "b05bdbcfacaff3c7ac70958cc4056cb8504c5d7a97fb9765d6c8b234e857c6c6" => :el_capitan
end
depends_on "python@2"
depends_on "python"
def install
venv = virtualenv_create(libexec)
venv = virtualenv_create(libexec, "python3")
system libexec/"bin/pip", "install", "-v", "--no-binary", ":all:",
"--ignore-installed", buildpath
system libexec/"bin/pip", "uninstall", "-y", name