<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ccf5e44be83acdde916c6947bd04a78d8f2463fb">https://github.com/macports/macports-ports/commit/ccf5e44be83acdde916c6947bd04a78d8f2463fb</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ccf5e44be83acdde916c6947bd04a78d8f2463fb
</span>Author: Renee Otten <reneeotten@macports.org>
AuthorDate: Thu Dec 10 23:11:45 2020 -0500
<span style='display:block; white-space:pre;color:#404040;'> py-black: convert black port to Python package
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - needed as a dependency for Spyder
</span><span style='display:block; white-space:pre;color:#404040;'> - add black_select group
</span><span style='display:block; white-space:pre;color:#404040;'> - set black port to replaced_by py38-black
</span>---
python/black/Portfile | 50 ++-------------
python/black_select/Portfile | 34 ++++++++++
python/black_select/files/base | 3 +
python/black_select/files/none | 3 +
python/py-black/Portfile | 75 +++++++++++++++++++++++
python/py-black/files/black36 | 3 +
python/py-black/files/black37 | 3 +
python/py-black/files/black38 | 3 +
python/{black => py-black}/files/patch-tests.diff | 0
9 files changed, 129 insertions(+), 45 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/black/Portfile b/python/black/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0d912d9ea0b..7b010e89de2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/black/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/black/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,54 +2,14 @@
</span>
PortSystem 1.0
PortGroup python 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup obsolete 1.0
</span>
name black
version 20.8b1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> platforms darwin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-supported_archs noarch
</span> license MIT
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers {danchr @danchr} openmaintainer
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-description The uncompromising code formatter for Python.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- By using Black, you agree to cede control over minutiae of \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- hand-formatting your Python source code. In return, Black gives \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- you speed, determinism, and freedom from pycodestyle nagging about \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- formatting. You will save time and mental energy for more \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- important matters. \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Black makes code review faster by producing the smallest diffs \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- possible. Blackened code looks the same regardless of the project \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- you’re reading. Formatting becomes transparent after a while and \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- you can focus on the content instead.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage https://${name}.readthedocs.io/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites pypi:[string index ${name} 0]/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-distname ${name}-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 63de27671405a15165325731e0b74e4bfe1be80d \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 1096433
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-python.versions 38
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.run yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.type pypi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-tests.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-setuptools \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-setuptools_scm
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-appdirs \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-attrs \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-click \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-mypy_extensions \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-pathspec \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-regex \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-toml \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-typed-ast \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python.version}-typing_extensions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+replaced_by py38-black
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Remove after 2021-12-10
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/black_select/Portfile b/python/black_select/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..40226cd1ab1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/black_select/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,34 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup select 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name black_select
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 0.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description common files for selecting default black version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ This port installs files that allow 'port select' to be used to \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ create links to the preferred default version of black.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.macports.org/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distfiles
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ select::install black ${filespath}/base
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ select::install black ${filespath}/none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.type none
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/black_select/files/base b/python/black_select/files/base
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..87b3845a1c7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/black_select/files/base
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,3 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/black
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/black-primer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/blackd
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/black_select/files/none b/python/black_select/files/none
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..fc9c24676eb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/black_select/files/none
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,3 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-black/Portfile b/python/py-black/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..a58238fa9a6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-black/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,75 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup python 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup select 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name py-black
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 20.8b1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {danchr @danchr} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description The uncompromising code formatter for Python.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ By using Black, you agree to cede control over minutiae of \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ hand-formatting your Python source code. In return, Black gives \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ you speed, determinism, and freedom from pycodestyle nagging about \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ formatting. You will save time and mental energy for more \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ important matters. \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Black makes code review faster by producing the smallest diffs \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ possible. Blackened code looks the same regardless of the project \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ you’re reading. Formatting becomes transparent after a while and \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ you can focus on the content instead.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://${name}.readthedocs.io/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 63de27671405a15165325731e0b74e4bfe1be80d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1096433
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.versions 36 37 38
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${subport} ne ${name}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles patch-tests.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-setuptools \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-setuptools_scm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-appdirs \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-click \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-mypy_extensions \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pathspec \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-regex \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-toml \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-typed-ast \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-typing_extensions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${python.version} == 36} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-dataclasses
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:black_select
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ select.group black
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ select.file ${filespath}/${python.rootname}${python.version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+To make the Python ${python.branch} version of black the one that is run\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+when you execute the commands without a version suffix, e.g. 'black', run:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+port select --set ${select.group} [file tail ${select.file}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-black/files/black36 b/python/py-black/files/black36
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..29f5224ebea
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-black/files/black36
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,3 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/black-3.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/black-primer-3.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/blackd-3.6
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-black/files/black37 b/python/py-black/files/black37
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..61dd9b33469
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-black/files/black37
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,3 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/black-3.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/black-primer-3.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/blackd-3.7
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-black/files/black38 b/python/py-black/files/black38
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1896c39ba0f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-black/files/black38
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,3 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/black-3.8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/black-primer-3.8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/blackd-3.8
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/black/files/patch-tests.diff b/python/py-black/files/patch-tests.diff
</span>similarity index 100%
rename from python/black/files/patch-tests.diff
rename to python/py-black/files/patch-tests.diff
</pre><pre style='margin:0'>
</pre>