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

github.setup        tiangolo typer 0.3.2
revision            0
name                py-${github.project}
categories-append   devel

license             MIT
maintainers         nomaintainer
platforms           darwin
supported_archs     noarch

description         Typer, build great CLIs. Easy to code. Based on Python type hints.

long_description    {*}${description}

python.versions     37 38 39

checksums           rmd160  617149bb85566eb60b8412ff7cf3978bda21ec95 \
                    sha256  8faad31bd3721d2443cca7f0dda32a27c0e51fd96a78342b23b7ada50ed7ea80 \
                    size    202253

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

    depends_run-append \
                    port:py${python.version}-click \
                    port:py${python.version}-colorama \
                    port:py${python.version}-shellingham

    depends_test-append \
                    port:py${python.version}-black \
                    port:py${python.version}-isort \
                    port:py${python.version}-mypy \
                    port:py${python.version}-pytest \
                    port:py${python.version}-pytest-sugar \
                    port:py${python.version}-pytest-xdist

    python.pep517   yes

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

    livecheck.type  none
}
