# -*- 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-parver
version             0.3.1
platforms           darwin
license             MIT
maintainers         nomaintainer

description         Parse and manipulate version numbers.
long_description    Allows parsing and manipulation of PEP 440 version numbers.

homepage            https://github.com/RazerM/parver

checksums           rmd160  9de718486b7c41a2bc3c5a8b32e67a197bc33564 \
                    sha256  c902e0653bcce927cc156a7fd9b3a51924cbce3bf3d0bfd49fc282bfd0c5dfd3 \
                    size    30287

python.versions     27 36 37 38 39

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

    depends_lib-append \
                        port:py${python.version}-arpeggio \
                        port:py${python.version}-attrs \
                        port:py${python.version}-six

    depends_test-append \
                        port:py${python.version}-pytest \
                        port:py${python.version}-hypothesis \
                        port:py${python.version}-pretend

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

    livecheck.type      none
}
