# -*- 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-poethepoet
version             0.40.0
revision            0

categories-append   devel
license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         A batteries included task runner that works well with poetry or uv.
long_description    {*}${description}
homepage            https://poethepoet.natn.io

checksums           rmd160  6dd29dd5b22d764f1f95bac9ea5f6f90e3dd7b11 \
                    sha256  91835f00d03d6c4f0e146f80fa510e298ad865e7edd27fe4cb9c94fdc090791b \
                    size    81114

python.versions     310 311 312 313 314

python.pep517_backend \
                    poetry

if {${name} ne ${subport}} {
    depends_lib-append  \
                    port:py${python.version}-pastel \
                    port:py${python.version}-yaml

    if {${python.version} < 311} {
        depends_lib-append \
                    port:py${python.version}-tomli
    }
}
