# -*- 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-outcome
version             1.0.0
categories-append   devel
platforms           darwin
supported_archs     noarch
license             {Apache-2 MIT}

python.versions     27 35 36 37

maintainers         {@jandemter demter.de:jan} openmaintainer

description         Capture the outcome of Python function calls
long_description    Capture the outcome of Python function calls. Extracted \
                    from the Trio project.

homepage            https://github.com/python-trio/outcome
master_sites        pypi:o/outcome

distname            outcome-${version}

checksums           rmd160  6b31076292a1a6ef4ee93bffb0d3cc109a63d515 \
                    sha256  9d58c05db36a900ce60c6da0167d76e28869f64b338d60fa3a61841cfa54ac71 \
                    size    17307

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools
    depends_run-append      port:py${python.version}-attrs
    depends_test-append     port:py${python.version}-pytest \
                            port:py${python.version}-async_generator \
                            port:py${python.version}-pytest-asyncio

    test.run            yes
    test.cmd            py.test-${python.branch}
    test.target
    test.env            PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type      none
}