# -*- 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-iniconfig
version             2.1.0
revision            0
categories-append   devel
platforms           {darwin any}
license             MIT
supported_archs     noarch

python.versions     36 37 38 39 310 311 312 313 314
python.pep517_backend   hatch

maintainers         {stromnov @stromnov} openmaintainer

description         iniconfig is a small and simple INI-file parser module.
long_description    {*}${description}

homepage            https://github.com/RonnyPfannschmidt/iniconfig

checksums           rmd160  986d4385d4351499f4fd6416225abfb37508354e \
                    sha256  3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7 \
                    size    4793

if {${name} ne ${subport}} {
    if {${python.version} eq 36} {
        version             1.1.1
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  867a32cbc565ed7a2452b3eed2330679be142ffe \
                            sha256  bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32 \
                            size    8104
        python.pep517       no
        depends_lib-append  port:py${python.version}-setuptools
    } elseif {${python.version} == 37} {
        version             2.0.0
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  c9cb191ed1d5cfcffa825f253cb7c0c1e4dad484 \
                            sha256  2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3 \
                            size    4646
    }

    if {${python.version} > 36} {
        depends_build-append \
                            port:py${python.version}-hatch-vcs
    }

    depends_build-append \
                        port:py${python.version}-setuptools_scm

    livecheck.type  none
}
