# -*- 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.37.0
revision            0
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  92e2be99b027f0befeb9cbc0eb2d0aafabdeed26 \
                    sha256  73edf458707c674a079baa46802e21455bda3a7f82a408e58c31b9f4fe8e933d \
                    size    68570

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
    }
}
