# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup python 1.0
PortGroup select 1.0
name py-flake8
version 3.6.0
categories-append devel
platforms darwin
supported_archs noarch
license MIT
maintainers {petr @petrrr} openmaintainer
description The modular source code checker: pep8, pyflakes and Co.
long_description \
Flake8 runs all the tools by launching the single flake8 script. It is \
is a wrapper around the following tools: PyFlakes, PEP8 and the McCabe \
script by Ned Batchelder. It displays the warnings in a per-file, merged \
output, features Git and Mercurial hook and is extendable through \
flake8.extension entry points.
homepage https://flake8.readthedocs.org/
distname ${python.rootname}-${version}
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
checksums rmd160 991d42b9e138b0368bc0670cdb5cdef483bb713e \
sha256 6a35f5b8761f45c5513e3405f110a86bea57982c3b75b766ce7b65217abe1670 \
size 144684
python.versions 27 34 35 36 37
if {${name} ne ${subport}} {
depends_build-append port:py${python.version}-pytest-runner
depends_lib-append port:py${python.version}-setuptools \
port:py${python.version}-pyflakes \
port:py${python.version}-codestyle \
port:py${python.version}-flake8-mccabe
if { ${python.version} eq 27 } {
depends_lib-append port:py${python.version}-configparser \
port:py${python.version}-enum34
}
depends_run-append port:${python.rootname}_select
select.group ${python.rootname}
select.file ${filespath}/${python.rootname}-${python.version}
notes "
To make the Python ${python.branch} version of flake8 the one that is run\
when you execute the commands without a version suffix, e.g. 'flake8', run:
port select --set ${select.group} [file tail ${select.file}]
"
# Adding documentation
post-destroot {
set dest_doc ${destroot}${prefix}/share/doc/${subport}
xinstall -d ${dest_doc}
xinstall -m 755 -W ${worksrcpath} \
CONTRIBUTORS.txt \
LICENSE \
README.rst \
${dest_doc}
}
depends_test-append \
port:py${python.version}-pytest \
port:py${python.version}-mock
test.run yes
test.cmd py.test-${python.branch}
test.target
test.env PYTHONPATH=${worksrcpath}/build/lib
livecheck.type none
} else {
livecheck.name ${python.rootname}
}