# -*- 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           select 1.0

name                py-tox
version             4.28.4
revision            0


categories-append   devel
maintainers         {gmail.com:pedro.salgado @steenzout} openmaintainer
supported_archs     noarch
platforms           {darwin any}
license             MIT

description         tox: virtualenv-based automation of test activities
long_description    Tox as is a generic virtualenv management and test command line tool

homepage            https://tox.readthedocs.io/en/latest/

checksums           rmd160  2e7c141250bfd280925390cb9d53d8a1fcaeaa63 \
                    sha256  b5b14c6307bd8994ff1eba5074275826620325ee1a4f61316959d562bfd70b9d \
                    size    199692

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    python.pep517_backend \
                    hatch

    depends_build-append \
                    port:py${python.version}-hatch-vcs

    depends_lib-append \
                    port:py${python.version}-cachetools \
                    port:py${python.version}-chardet \
                    port:py${python.version}-colorama \
                    port:py${python.version}-filelock \
                    port:py${python.version}-packaging \
                    port:py${python.version}-platformdirs \
                    port:py${python.version}-pluggy \
                    port:py${python.version}-pyproject_api \
                    port:py${python.version}-setuptools \
                    port:py${python.version}-six \
                    port:py${python.version}-toml \
                    port:py${python.version}-virtualenv \
                    port:tox_select

    if {${python.version} < 311} {
        depends_lib-append \
                    port:py${python.version}-tomli \
                    port:py${python.version}-typing_extensions
    }

    select.group    tox
    select.file     ${filespath}/tox${python.version}
    notes "
To make the Python ${python.branch} version of tox the one that is run\
when you execute the commands without a version suffix, e.g. 'tox', run:

port select --set ${select.group} [file tail ${select.file}]
"
}
