flake8 3.0.4
Closes #3969. Signed-off-by: Tim D. Smith <git@tim-smith.us>
This commit is contained in:
parent
4588a12b85
commit
791250e74e
1 changed files with 15 additions and 15 deletions
|
@ -1,8 +1,10 @@
|
|||
class Flake8 < Formula
|
||||
include Language::Python::Virtualenv
|
||||
|
||||
desc "Lint your Python code for style and logical errors"
|
||||
homepage "http://flake8.pycqa.org/"
|
||||
url "https://files.pythonhosted.org/packages/53/0a/b2c28a77dfc508ed9f7334252311e1aaf8f0ceaaeb1a8f15fa4ba3e2d847/flake8-2.6.2.tar.gz"
|
||||
sha256 "231cd86194aaec4bdfaa553ae1a1cd9b7b4558332fbc10136c044940d587a778"
|
||||
url "https://files.pythonhosted.org/packages/b0/56/48727b2a6c92b7e632180cf2c1411a0de7cf4f636b4f844c6c46f7edc86b/flake8-3.0.4.tar.gz"
|
||||
sha256 "b4c210c998f07d6ff24325dd91fbc011f2c37bcd6bf576b188de01d8656e970d"
|
||||
|
||||
head "https://gitlab.com/PyCQA/flake8.git", :shallow => false
|
||||
|
||||
|
@ -30,20 +32,18 @@ class Flake8 < Formula
|
|||
sha256 "379358498f58f69157b53f59f46aefda0e9a3eb81365238f69fbedf7014e21ab"
|
||||
end
|
||||
|
||||
resource "configparser" do
|
||||
url "https://files.pythonhosted.org/packages/7c/69/c2ce7e91c89dc073eb1aa74c0621c3eefbffe8216b3f9af9d3885265c01c/configparser-3.5.0.tar.gz"
|
||||
sha256 "5308b47021bc2340965c371f0f058cc6971a04502638d4244225c49d80db273a"
|
||||
end
|
||||
|
||||
resource "enum34" do
|
||||
url "https://files.pythonhosted.org/packages/bf/3e/31d502c25302814a7c2f1d3959d2a3b3f78e509002ba91aea64993936876/enum34-1.1.6.tar.gz"
|
||||
sha256 "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1"
|
||||
end
|
||||
|
||||
def install
|
||||
ENV.prepend_create_path "PYTHONPATH", "#{libexec}/vendor/lib/python2.7/site-packages"
|
||||
|
||||
%w[pycodestyle pyflakes mccabe].each do |dependency|
|
||||
resource(dependency).stage do
|
||||
system "python", *Language::Python.setup_install_args(libexec/"vendor")
|
||||
end
|
||||
end
|
||||
|
||||
ENV.prepend_create_path "PYTHONPATH", "#{libexec}/lib/python2.7/site-packages"
|
||||
system "python", *Language::Python.setup_install_args(libexec)
|
||||
|
||||
bin.install Dir[libexec/"bin/*"]
|
||||
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
||||
virtualenv_install_with_resources
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue