# -*- 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                twine
version             6.2.0
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             Apache-2
maintainers         {gmail.com:jjstickel @jjstickel} \
                    {reneeotten @reneeotten} openmaintainer

description         Collection of utilities for publishing packages on PyPI
long_description    {*}${description}

homepage            https://twine.readthedocs.io/

checksums           rmd160  0974f8e44bc4ec218d848d50d02f772dbe02e8f5 \
                    sha256  e5ed0d2fd70c9959770dce51c8f39c8945c574e18173a7b81802dab51b4b75cf \
                    size    172262

python.default_version  313

depends_build-append \
                    port:py${python.version}-setuptools_scm

depends_lib-append  port:py${python.version}-id \
                    port:py${python.version}-keyring \
                    port:py${python.version}-packaging \
                    port:py${python.version}-readme_renderer \
                    port:py${python.version}-requests \
                    port:py${python.version}-requests-toolbelt \
                    port:py${python.version}-rfc3986 \
                    port:py${python.version}-rich \
                    port:py${python.version}-urllib3

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS README.rst \
        LICENSE ${destroot}${docdir}
}
