# -*- 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-pytest-runner
version             6.0.1
revision            0
categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {petr @petrrr} openmaintainer

description         pytest-runner adds test support to setup.py scripts
long_description    \
    {*}${description}. Setup scripts can use pytest-runner to invoke py.test as distutils \
    command and provices dependency resolution.

homepage            https://github.com/pytest-dev/pytest-runner

checksums           rmd160  e936f6188870c89d5fef2740888a5cc5fea2fd0c \
                    sha256  70d4739585a7008f37bf4933c013fdb327b8878a5a69fcbb3316c88882f0f49b \
                    size    16056

python.versions     27 35 36 37 38 39 310 311 312 313

if {${name} ne ${subport}} {
    if {${python.version} < 36} {
        version     5.2
        revision    0
        checksums   rmd160  57cee5045f0b8d5add73e80736b30da6ab095e20 \
                    sha256  96c7e73ead7b93e388c5d614770d2bae6526efd997757d3543fe17b557a0942b \
                    size    15534
        python.pep517   no
    } elseif {${python.version} == 36} {
        version     5.3.2
        revision    0
checksums           rmd160  38cb6a673a31fe80ed35c6077bd9306c369d6da1 \
                    sha256  48934ec94301f6727d30615af1960539ff62063f6c9b71b7227174e51ba5fb34 \
                    size    16307
        python.pep517   no
    }

    if {${python.version} eq 311} {
        # pep517 is enabled for Python 3.11 by default and tomli is currently mandatory for pep517
        depends_build-append    port:py${python.version}-tomli
    }

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

    depends_lib-append      port:py${python.version}-setuptools

    livecheck.type  none
}
