Files
macports-ports/python/py-flake8/Portfile
T
2025-04-05 15:07:35 -04:00

55 lines
2.0 KiB
Tcl

# -*- 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 7.2.0
revision 0
categories-append devel
supported_archs noarch
platforms {darwin any}
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/
checksums rmd160 e5af992897a9768525d719e2d5d476c5f8c67f55 \
sha256 fa558ae3f6f7dbf2b4f22663e5343b6b6023620461f8d4ff2019ef4b5ee70426 \
size 48177
python.versions 39 310 311 312 313
if {${name} ne ${subport}} {
depends_lib-append port:py${python.version}-codestyle \
port:py${python.version}-flake8-mccabe \
port:py${python.version}-pyflakes
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}]
"
post-destroot {
set dest_doc ${destroot}${prefix}/share/doc/${subport}
xinstall -d ${dest_doc}
xinstall -m 0644 -W ${worksrcpath} LICENSE README.rst ${dest_doc}
}
}