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

github.setup        PyCQA pydocstyle 2.1.1
name                py-docstyle
categories-append   devel
license             MIT
maintainers         {sean @seanfarley} openmaintainer
description         Python docstring style checker
long_description \
    pydocstyle is a static analysis tool for checking compliance with Python \
    docstring conventions.

platforms           darwin
supported_archs     noarch

checksums           rmd160  c00ec73c5b83c9c7879df2c13208ab0a6a9fc409 \
                    sha256  b1e02323f8c73923d7738179c1d2fe3497693a3daa71fae8b5aed7fc80d3f9fa

python.versions     27 35 36

if {$subport ne $name} {
    depends_run     port:pydocstyle_select

    select.group    pydocstyle
    select.file     ${filespath}/py${python.version}-pydocstyle

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

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

    livecheck.type  none
}