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

name                py-confection

# Don't upgrade past py-spaCy's highest supported version.
github.setup        explosion confection 0.1.4 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0

checksums           rmd160  72a2370d5be2524ccee9f69b44341002278f5044 \
                    sha256  f5ae032f969095b5f7cc8df64dbb4a3c48cf01bd2c65a1feb3354f230ca382d5 \
                    size    34056

supported_archs     noarch
platforms           {darwin any}

license             MIT

maintainers         {jonesc @cjones051073} openmaintainer

description         The sweetest config system for Python
long_description    {*}${description}

# Supported python versions
python.versions     39 310 311 312

if {${name} ne ${subport}} {
    depends_lib-append \
        port:py${python.version}-pydantic \
        port:py${python.version}-typing_extensions \
        port:py${python.version}-srsly

    depends_test-append \
        port:py${python.version}-pytest
}

# Exclude pre-release candidates
github.livecheck.regex {([0-9.]+)}