# -*- 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-xdist
version             2.2.1
revision            0

categories-append   devel
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         The ${python.rootname} plugin extends py.test with some unique test execution modes
long_description    ${description}

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

checksums           rmd160  b720976b2924ac7e660cb342e4b59545f6d44bb3 \
                    sha256  718887296892f92683f6a51f25a3ae584993b06f7076ce1e1fd482e59a8220a2 \
                    size    64956

python.versions     27 35 36 37 38 39

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools_scm

    depends_lib-append \
                    port:py${python.version}-execnet \
                    port:py${python.version}-pytest \
                    port:py${python.version}-pytest-forked \
                    port:py${python.version}-setuptools \
                    port:py${python.version}-six

    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} CHANGELOG.rst README.rst LICENSE \
            OVERVIEW.md ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type  none
}
