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

name                py-cliff
version             4.9.1
maintainers         nomaintainer
license             Apache-2
supported_archs     noarch
platforms           {darwin any}

description         Command Line Interface Formulation Framework
long_description    cliff is a framework for building command line \
                    programs. It uses setuptools entry points to \
                    provide subcommands, output formatters, and other \
                    extensions.
homepage            https://docs.openstack.org/cliff/latest/
checksums           rmd160  33964049398bddf401aff938257c58648ba5e580 \
                    sha256  5b392198293c0b9225d459be8ba710cf8248f1ee33006bdeb3d92fb0012592b4 \
                    size    86597

python.versions     39 310 311 312 313

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

    if {${python.version} < 310} {
        depends_lib-append  port:py${python.version}-importlib-metadata
    }

    depends_run-append \
                    port:py${python.version}-autopage \
                    port:py${python.version}-cmd2 \
                    port:py${python.version}-prettytable \
                    port:py${python.version}-stevedore \
                    port:py${python.version}-yaml
}
