# -*- 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           github 1.0

github.setup        rocky pycolumnize 0.3.10
name                py-columnize

platforms           darwin
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Format a simple list into aligned columns
long_description    A Python module to format a simple (i.e. not \
                    nested) list into aligned columns. A string with \
                    embedded newline characters is returned.

checksums           rmd160  27b2b1f2c5e7bd574829f9f148876313334636f2 \
                    sha256  a332cece8dea33d1474d465ac02fee358febf765bfca1acda4a17771bbf42f73 \
                    size    19692

python.versions     27 35 36 37 38 39

if {${subport} ne ${name}} {
    depends_build-append \
                    port:py${python.version}-nose \
                    port:py${python.version}-setuptools

    if {${python.version} == 27} {
        depends_lib-append \
                    port:py${python.version}-backports-shutil_get_terminal_size
    }

    depends_test-append \
                    port:py${python.version}-mock \
                    port:py${python.version}-pytest

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
