# -*- 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.67.15
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  2b2f6c01e3f7485255970bdd4a989479a77e117b \
                    sha256  70307cf6cc0a328ca766dc8c20939c697af48d4df2d4bd0c93531eb3be50295d \
                    size    469602

python.versions     310 311 312 313 314 315
python.pep517_backend hatch

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-docutils \
                    port:py${python.version}-hatch-fancy-pypi-readme \
                    port:py${python.version}-hatch-vcs \
                    port:py${python.version}-python-sbom

    depends_lib-append \
                    port:py${python.version}-cachetools \
                    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}-python-discovery \
                    port:py${python.version}-tomli-w \
                    port:py${python.version}-virtualenv \
                    port:tox_select

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

    if {${python.version} == 310} {
        version     4.64.10
        revision    0
        checksums   rmd160  9c3b9ccf0f6618187f1ae6955002b4e20c1cf339 \
                    sha256  7482b96fefe1e4b49e406a9a62b25b415690bec2cebe9cc0cd59e38af88ce671 \
                    size    332282
        depends_build-delete \
                    port:py${python.version}-hatch-fancy-pip-readme \
                    port:py${python.version}-python-sbom
        depends_lib-append \
                    port:py${python.version}-tomli
    }

    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}]
"
}
