# -*- 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-testpath
version             0.6.0
revision            0
categories-append   devel
platforms           darwin
license             MIT
supported_archs     noarch

python.versions     27 35 36 37 38 39 310

maintainers         {stromnov @stromnov} openmaintainer

description         Test utilities for code working with files and commands.
long_description    {*}${description}

homepage            https://github.com/jupyter/testpath

checksums           rmd160  c11c8230e8f94e2c09c65d0761a8ec2e98cd07c5 \
                    sha256  2f1b97e6442c02681ebe01bd84f531028a7caea1af3825000f52345c30285e0f \
                    size    93348

if {${name} ne ${subport}} {

    if {${python.version} <= 35 } {
        version             0.4.4
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  c769a372f5fc026d5258ff25601b953da3babdeb \
                            sha256  60e0a3261c149755f4399a1fff7d37523179a70fdc3abdf78de9fc2604aeec7e \
                            size    92928
    } else {
        python.pep517       yes
        python.pep517_backend   flit
    }

    livecheck.type      none
}
