Files

62 lines
2.1 KiB
Tcl

# -*- 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
PortGroup select 1.0
name py-autopep8
version 2.3.2
revision 0
categories-append devel
supported_archs noarch
platforms {darwin any}
license MIT
maintainers {reneeotten @reneeotten} openmaintainer
description A tool that automatically formats Python code to \
conform to the PEP 8 style guide
long_description autopep8 automatically formats Python code to \
conform to the PEP 8 style guide. It uses the \
pycodestyle utility to determine what parts of \
the code needs to be formatted. autopep8 is \
capable of fixing most of the formatting issues \
that can be reported by pycodestyle.
homepage https://github.com/hhatto/autopep8
checksums rmd160 a4f4ef2e5a0c3feb2b360cc302b45f70278b6081 \
sha256 89440a4f969197b69a995e4ce0661b031f455a9f776d2c5ba3dbd83466931758 \
size 92210
python.versions 310 311 312 313 314
if {${name} ne ${subport}} {
depends_run-append \
port:${python.rootname}_select \
port:py${python.version}-codestyle
if {${python.version} < 311} {
depends_run-append \
port:py${python.version}-tomli
}
test.run yes
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE \
AUTHORS.rst ${destroot}${docdir}
}
select.group ${python.rootname}
select.file ${filespath}/${python.rootname}-${python.version}
notes "
To make the Python ${python.branch} version of autopep8 the one that is run\
when you execute the commands without a version suffix, e.g. 'autopep8', run:
sudo port select --set ${select.group} [file tail ${select.file}]
"
}