Files
2021-04-10 11:27:39 +03:00

59 lines
1.9 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-pyflakes
# CAUTION: Updates tend to break port `py-flake8` due to strict version caps.
# Please DO NOT update without cross-checking version compatibility and
# perform updates in a coordinated way.
version 2.3.1
revision 0
categories-append devel
platforms darwin
license MIT
supported_archs noarch
python.versions 27 35 36 37 38 39
maintainers {stromnov @stromnov} openmaintainer
description Passive checker of Python programs.
long_description Pyflakes is program to analyze Python programs and \
detect various errors. It works by parsing the source \
file, not importing it, so it is safe to use on modules \
with side effects. It's also much faster.
homepage https://github.com/pycqa/pyflakes
checksums rmd160 5f679e5efcc429666436c88b61641891cc31cc8a \
sha256 f5bc8ecabc05bb9d291eb5203d6810b49040f6ff446a756326104746cc00c1db \
size 68567
if {${name} ne ${subport}} {
depends_lib-append port:py${python.version}-setuptools
depends_run port:pyflakes_select
select.group pyflakes
select.file ${filespath}/py${python.version}-pyflakes
notes "
To make the Python ${python.branch} version of py-pyflakes the one that is run\
when you execute the commands without a version suffix, e.g. 'pyflakes', run:
port select --set ${select.group} [file tail ${select.file}]
"
test.run yes
test.cmd ${python.bin}
test.args -m unittest discover pyflakes
test.target
test.env PYTHONPATH=${worksrcpath}/build/lib
livecheck.type none
}