# -*- 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-modulegraph
version             0.19.7
categories-append   devel
license             MIT
maintainers         {jmr @jmroot} openmaintainer
description         Python module dependency analysis tool
long_description \
    modulegraph determines a dependency graph between Python modules \
    primarily by bytecode analysis for import statements. \
    modulegraph uses similar methods to modulefinder from the standard \
    library, but uses a more flexible internal representation, has more \
    extensive knowledge of special cases, and is extensible.

platforms           {darwin any}
supported_archs     noarch

homepage            http://undefined.org/python/#modulegraph

checksums           md5 87234ee031830f93aaf175ea21e35013 \
                    rmd160 d0cc393f8c6a437a84c4b69550ebc7a3553c2b80 \
                    sha256 9ad8a81148ba1d90ade66617a153786f7d7cf6a88de83ee28e251183122c2a57

python.versions     27 37 38 39 310 311 312 313 314

if {$subport ne $name} {
    depends_lib-append  port:py${python.version}-altgraph
    if {${python.version} < 38} {
        # Needs pkg_resources at runtime when importlib.metadata is not available
        depends_lib-append  port:py${python.version}-setuptools
    }
    test.run        yes
    python.test_framework   unittest
    livecheck.type  none
}
