You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-07-10 12:19:27 -07:00
76 lines
2.6 KiB
Tcl
76 lines
2.6 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-black
|
||
version 20.8b1
|
||
revision 0
|
||
|
||
platforms darwin
|
||
supported_archs noarch
|
||
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 \
|
||
you’re reading. Formatting becomes transparent after a while and \
|
||
you can focus on the content instead.
|
||
|
||
homepage https://${python.rootname}.readthedocs.io/
|
||
|
||
checksums rmd160 63de27671405a15165325731e0b74e4bfe1be80d \
|
||
sha256 1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea \
|
||
size 1096433
|
||
|
||
python.versions 36 37 38 39
|
||
|
||
if {${subport} ne ${name}} {
|
||
patchfiles patch-tests.diff
|
||
|
||
depends_build-append \
|
||
port:py${python.version}-setuptools \
|
||
port:py${python.version}-setuptools_scm
|
||
|
||
depends_lib-append \
|
||
port:py${python.version}-appdirs \
|
||
port:py${python.version}-click \
|
||
port:py${python.version}-mypy_extensions \
|
||
port:py${python.version}-pathspec \
|
||
port:py${python.version}-regex \
|
||
port:py${python.version}-toml \
|
||
port:py${python.version}-typed-ast \
|
||
port:py${python.version}-typing_extensions
|
||
|
||
if {${python.version} == 36} {
|
||
depends_lib-append \
|
||
port:py${python.version}-dataclasses
|
||
}
|
||
|
||
depends_run-append \
|
||
port:black_select
|
||
|
||
test.run yes
|
||
|
||
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}]
|
||
"
|
||
|
||
livecheck.type none
|
||
}
|