# -*- 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-distlib
version             0.3.6
revision            0
epoch               1

supported_archs     noarch
platforms           {darwin any}
license             PSF
maintainers         {@rdbisme gmail.com:rubendibattista} openmaintainer

description         Low-level components of distutils2/packaging, augmented \
                    with higher-level APIs for making packaging easier.
long_description    {*}${description}

homepage            https://bitbucket.org/pypa/distlib

checksums           rmd160  6b9dca7e62a1b689c34c313787c1cc4a819210b5 \
                    sha256  14bad2d9b04d3a36127ac97f30b12a19268f211063d8f8ee4f47108896e11b46 \
                    size    607879

# keep version for PY27 and PY34, these are (indirect) dependencies of py-virtualenv
python.versions     27 34 35 36 37 38 39 310

if {${name} ne ${subport}} {
    if {${python.version} < 36} {
        # version 0.3.5 supports all Python versions, but MacPorts does not have a PEP517
        # compatible build solution for anything below Python 3.6
        version     0.3.4
        use_zip     yes

        checksums   rmd160  9f96621550871f844cfe12d11fefda24ac142a6f \
                    sha256  e4b58818180336dc9c529bfb9a0b58728ffc09ad92027a3f30b7cd91e3458579 \
                    size    631981
    } else {
        python.pep517   yes
        test.run        yes
    }
}
