Files
2026-05-22 12:45:53 -04:00

73 lines
2.6 KiB
Tcl
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# -*- 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-black
version 26.5.1
revision 0
supported_archs noarch
platforms {darwin any}
license MIT
maintainers {danchr @danchr} openmaintainer
description The uncompromising code formatter for Python.
long_description \
By using Black, you agree to cede control over minutiae of \
hand-formatting your Python source code. In return, Black gives \
you speed, determinism, and freedom from pycodestyle nagging about \
formatting. You will save time and mental energy for more \
important matters. \
\
Black makes code review faster by producing the smallest diffs \
possible. Blackened code looks the same regardless of the project \
youre reading. Formatting becomes transparent after a while and \
you can focus on the content instead.
homepage https://${python.rootname}.readthedocs.io/
checksums rmd160 01d3de43ba5518214d4dd598d8f827bd4f49b018 \
sha256 dd321f668053961824bcc1be1cc1df748b2d7e4fa28086b08331e577b0100a73 \
size 679439
python.versions 310 311 312 313 314
python.pep517_backend hatch
if {${subport} ne ${name}} {
depends_build-append \
port:py${python.version}-hatch-vcs \
port:py${python.version}-hatch-fancy-pypi-readme
depends_lib-append \
port:py${python.version}-click \
port:py${python.version}-mypy_extensions \
port:py${python.version}-packaging \
port:py${python.version}-pathspec \
port:py${python.version}-platformdirs \
port:py${python.version}-pytokens
if {${python.version} < 311} {
depends_lib-append \
port:py${python.version}-tomli \
port:py${python.version}-typing_extensions
}
depends_run-append \
port:black_select
test.run yes
test.env-append PYTHONPATH=${destroot}${python.pkgd}
select.group black
select.file ${filespath}/${python.rootname}${python.version}
notes "
To make the Python ${python.branch} version of black the one that is run\
when you execute the commands without a version suffix, e.g. 'black', run:
port select --set ${select.group} [file tail ${select.file}]
"
}