Tue Oct 11 13:15:30 2022 UTC ()
py-black: updated to 22.10.0

22.10.0

Highlights

- Runtime support for Python 3.6 has been removed. Formatting 3.6 code will still be
  supported until further notice.

Stable style

- Fix a crash when `# fmt: on` is used on a different block level than `# fmt: off`

Preview style

- Fix a crash when formatting some dicts with parenthesis-wrapped long string keys

Configuration

- `.ipynb_checkpoints` directories are now excluded by default
- Add `--skip-source-first-line` / `-x` option to ignore the first line of source code
  while formatting

Packaging

- Executables made with PyInstaller will no longer crash when formatting several files
  at once on macOS. Native x86-64 executables for macOS are available once again.
- Hatchling is now used as the build backend. This will not have any effect for users
  who install Black with its wheels from PyPI.
- Faster compiled wheels are now available for CPython 3.11

_Blackd_

- Windows style (CRLF) newlines will be preserved

Integrations

- Vim plugin: add flag (`g:black_preview`) to enable/disable the preview style
- Update GitHub Action to support formatting of Jupyter Notebook files via a `jupyter`
  option
- Update GitHub Action to support use of version specifiers (e.g. `<23`) for Black
  version


(adam)
diff -r1.9 -r1.10 pkgsrc/textproc/py-black/Makefile
diff -r1.9 -r1.10 pkgsrc/textproc/py-black/distinfo
diff -r1.4 -r1.5 pkgsrc/textproc/py-black/PLIST

cvs diff -r1.9 -r1.10 pkgsrc/textproc/py-black/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/py-black/Makefile 2022/09/14 10:34:27 1.9
+++ pkgsrc/textproc/py-black/Makefile 2022/10/11 13:15:30 1.10
@@ -1,50 +1,50 @@ @@ -1,50 +1,50 @@
1# $NetBSD: Makefile,v 1.9 2022/09/14 10:34:27 adam Exp $ 1# $NetBSD: Makefile,v 1.10 2022/10/11 13:15:30 adam Exp $
2 2
3DISTNAME= black-22.8.0 3DISTNAME= black-22.10.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= textproc devel python 5CATEGORIES= textproc devel python
6MASTER_SITES= ${MASTER_SITE_PYPI:=b/black/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=b/black/}
7 7
8MAINTAINER= root@zta.lk 8MAINTAINER= root@zta.lk
9HOMEPAGE= https://black.readthedocs.io/ 9HOMEPAGE= https://black.readthedocs.io/
10COMMENT= Uncompromising Python code formatter 10COMMENT= Uncompromising Python code formatter
11LICENSE= mit 11LICENSE= mit
12 12
13USE_LANGUAGES= # none 13USE_LANGUAGES= # none
14 14
 15BUILD_DEPENDS+= ${PYPKGPREFIX}-hatchling>=1.8.0:../../devel/py-hatchling
 16BUILD_DEPENDS+= ${PYPKGPREFIX}-hatch-fancy-pypi-readme-[0-9]*:../../devel/py-hatch-fancy-pypi-readme
 17BUILD_DEPENDS+= ${PYPKGPREFIX}-hatch-vcs-[0-9]*:../../devel/py-hatch-vcs
 18BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
15DEPENDS+= ${PYPKGPREFIX}-click>=8.0.0:../../devel/py-click 19DEPENDS+= ${PYPKGPREFIX}-click>=8.0.0:../../devel/py-click
16DEPENDS+= ${PYPKGPREFIX}-mypy_extensions>=0.4.3:../../lang/py-mypy_extensions 20DEPENDS+= ${PYPKGPREFIX}-mypy_extensions>=0.4.3:../../lang/py-mypy_extensions
17DEPENDS+= ${PYPKGPREFIX}-pathspec>=0.9.0:../../devel/py-pathspec 21DEPENDS+= ${PYPKGPREFIX}-pathspec>=0.9.0:../../devel/py-pathspec
18DEPENDS+= ${PYPKGPREFIX}-platformdirs>=2:../../misc/py-platformdirs 22DEPENDS+= ${PYPKGPREFIX}-platformdirs>=2:../../misc/py-platformdirs
19DEPENDS+= ${PYPKGPREFIX}-tomli>=1.1.0:../../textproc/py-tomli 23DEPENDS+= ${PYPKGPREFIX}-tomli>=1.1.0:../../textproc/py-tomli
20# only needed for blackd: 24# only needed for blackd:
21DEPENDS+= ${PYPKGPREFIX}-aiohttp>=3.7.4:../../www/py-aiohttp 25DEPENDS+= ${PYPKGPREFIX}-aiohttp>=3.7.4:../../www/py-aiohttp
22 
23BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm 
24TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test 26TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
25 27
26PYTHON_VERSIONS_INCOMPATIBLE= 27 28PYTHON_VERSIONS_INCOMPATIBLE= 27
27 29
28.include "../../lang/python/pyversion.mk" 30.include "../../lang/python/pyversion.mk"
29 31
30.if ${_PYTHON_VERSION} < 38 32.if ${_PYTHON_VERSION} < 38
31DEPENDS+= ${PYPKGPREFIX}-typed-ast>=1.4.2:../../devel/py-typed-ast 33DEPENDS+= ${PYPKGPREFIX}-typed-ast>=1.4.2:../../devel/py-typed-ast
32.endif 34.endif
33.if ${_PYTHON_VERSION} < 310 35.if ${_PYTHON_VERSION} < 310
34DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=3.10.0.0:../../devel/py-typing-extensions 36DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=3.10.0.0:../../devel/py-typing-extensions
35.endif 37.endif
36 38
37USE_PKG_RESOURCES= yes 
38 
39post-install: 39post-install:
40.for bin in black blackd 40.for bin in black blackd
41 cd ${DESTDIR}${PREFIX}/bin && \ 41 cd ${DESTDIR}${PREFIX}/bin && \
42 ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE} 42 ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
43.endfor 43.endfor
44 44
45TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib 45TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib
46do-test: 46do-test:
47 cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} 47 cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
48 48
49.include "../../lang/python/egg.mk" 49.include "../../lang/python/wheel.mk"
50.include "../../mk/bsd.pkg.mk" 50.include "../../mk/bsd.pkg.mk"

cvs diff -r1.9 -r1.10 pkgsrc/textproc/py-black/distinfo (expand / switch to unified diff)

--- pkgsrc/textproc/py-black/distinfo 2022/09/14 10:34:27 1.9
+++ pkgsrc/textproc/py-black/distinfo 2022/10/11 13:15:30 1.10
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.9 2022/09/14 10:34:27 adam Exp $ 1$NetBSD: distinfo,v 1.10 2022/10/11 13:15:30 adam Exp $
2 2
3BLAKE2s (black-22.8.0.tar.gz) = bdbe5a6cfd8b40445f6e1bb8369612961b20446228850ab44284a219454b2273 3BLAKE2s (black-22.10.0.tar.gz) = 2b83aab9922352152efb572107e17ff2b7310c620c39e4e256d9f30880699add
4SHA512 (black-22.8.0.tar.gz) = 27c742e632dadbd01dc658226d19941cf01f5f98ae013c0d6bcc7303cfe1faef13bb4e5a0eb784171d5f59c3bbcbd6dd94f7d3a59e9458eb5a67c9d8fbba8ad5 4SHA512 (black-22.10.0.tar.gz) = 3ae44f434a13c0a5cee87663d9612f0f09b18d095f97b25d0737394bce9a9403167de0076981c57659fc510536fe10574135bf3fdc7e9ad44def7b9796b904aa
5Size (black-22.8.0.tar.gz) = 577317 bytes 5Size (black-22.10.0.tar.gz) = 547735 bytes

cvs diff -r1.4 -r1.5 pkgsrc/textproc/py-black/PLIST (expand / switch to unified diff)

--- pkgsrc/textproc/py-black/PLIST 2022/04/12 10:11:38 1.4
+++ pkgsrc/textproc/py-black/PLIST 2022/10/11 13:15:30 1.5
@@ -1,124 +1,91 @@ @@ -1,124 +1,91 @@
1@comment $NetBSD: PLIST,v 1.4 2022/04/12 10:11:38 adam Exp $ 1@comment $NetBSD: PLIST,v 1.5 2022/10/11 13:15:30 adam Exp $
2bin/black-${PYVERSSUFFIX} 2bin/black-${PYVERSSUFFIX}
3bin/blackd-${PYVERSSUFFIX} 3bin/blackd-${PYVERSSUFFIX}
4${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 4${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
5${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 5${PYSITELIB}/${WHEEL_INFODIR}/METADATA
6${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 6${PYSITELIB}/${WHEEL_INFODIR}/RECORD
7${PYSITELIB}/${EGG_INFODIR}/entry_points.txt 7${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
8${PYSITELIB}/${EGG_INFODIR}/not-zip-safe 8${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
9${PYSITELIB}/${EGG_INFODIR}/requires.txt 9${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
10${PYSITELIB}/${EGG_INFODIR}/top_level.txt 10${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
 11${PYSITELIB}/${WHEEL_INFODIR}/licenses/AUTHORS.md
 12${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
11${PYSITELIB}/_black_version.py 13${PYSITELIB}/_black_version.py
12${PYSITELIB}/_black_version.pyc 14${PYSITELIB}/_black_version.pyc
13${PYSITELIB}/_black_version.pyo 
14${PYSITELIB}/black/__init__.py 15${PYSITELIB}/black/__init__.py
15${PYSITELIB}/black/__init__.pyc 16${PYSITELIB}/black/__init__.pyc
16${PYSITELIB}/black/__init__.pyo 
17${PYSITELIB}/black/__main__.py 17${PYSITELIB}/black/__main__.py
18${PYSITELIB}/black/__main__.pyc 18${PYSITELIB}/black/__main__.pyc
19${PYSITELIB}/black/__main__.pyo 
20${PYSITELIB}/black/brackets.py 19${PYSITELIB}/black/brackets.py
21${PYSITELIB}/black/brackets.pyc 20${PYSITELIB}/black/brackets.pyc
22${PYSITELIB}/black/brackets.pyo 
23${PYSITELIB}/black/cache.py 21${PYSITELIB}/black/cache.py
24${PYSITELIB}/black/cache.pyc 22${PYSITELIB}/black/cache.pyc
25${PYSITELIB}/black/cache.pyo 
26${PYSITELIB}/black/comments.py 23${PYSITELIB}/black/comments.py
27${PYSITELIB}/black/comments.pyc 24${PYSITELIB}/black/comments.pyc
28${PYSITELIB}/black/comments.pyo 
29${PYSITELIB}/black/concurrency.py 25${PYSITELIB}/black/concurrency.py
30${PYSITELIB}/black/concurrency.pyc 26${PYSITELIB}/black/concurrency.pyc
31${PYSITELIB}/black/concurrency.pyo 
32${PYSITELIB}/black/const.py 27${PYSITELIB}/black/const.py
33${PYSITELIB}/black/const.pyc 28${PYSITELIB}/black/const.pyc
34${PYSITELIB}/black/const.pyo 
35${PYSITELIB}/black/debug.py 29${PYSITELIB}/black/debug.py
36${PYSITELIB}/black/debug.pyc 30${PYSITELIB}/black/debug.pyc
37${PYSITELIB}/black/debug.pyo 
38${PYSITELIB}/black/files.py 31${PYSITELIB}/black/files.py
39${PYSITELIB}/black/files.pyc 32${PYSITELIB}/black/files.pyc
40${PYSITELIB}/black/files.pyo 
41${PYSITELIB}/black/handle_ipynb_magics.py 33${PYSITELIB}/black/handle_ipynb_magics.py
42${PYSITELIB}/black/handle_ipynb_magics.pyc 34${PYSITELIB}/black/handle_ipynb_magics.pyc
43${PYSITELIB}/black/handle_ipynb_magics.pyo 
44${PYSITELIB}/black/linegen.py 35${PYSITELIB}/black/linegen.py
45${PYSITELIB}/black/linegen.pyc 36${PYSITELIB}/black/linegen.pyc
46${PYSITELIB}/black/linegen.pyo 
47${PYSITELIB}/black/lines.py 37${PYSITELIB}/black/lines.py
48${PYSITELIB}/black/lines.pyc 38${PYSITELIB}/black/lines.pyc
49${PYSITELIB}/black/lines.pyo 
50${PYSITELIB}/black/mode.py 39${PYSITELIB}/black/mode.py
51${PYSITELIB}/black/mode.pyc 40${PYSITELIB}/black/mode.pyc
52${PYSITELIB}/black/mode.pyo 
53${PYSITELIB}/black/nodes.py 41${PYSITELIB}/black/nodes.py
54${PYSITELIB}/black/nodes.pyc 42${PYSITELIB}/black/nodes.pyc
55${PYSITELIB}/black/nodes.pyo 
56${PYSITELIB}/black/numerics.py 43${PYSITELIB}/black/numerics.py
57${PYSITELIB}/black/numerics.pyc 44${PYSITELIB}/black/numerics.pyc
58${PYSITELIB}/black/numerics.pyo 
59${PYSITELIB}/black/output.py 45${PYSITELIB}/black/output.py
60${PYSITELIB}/black/output.pyc 46${PYSITELIB}/black/output.pyc
61${PYSITELIB}/black/output.pyo 
62${PYSITELIB}/black/parsing.py 47${PYSITELIB}/black/parsing.py
63${PYSITELIB}/black/parsing.pyc 48${PYSITELIB}/black/parsing.pyc
64${PYSITELIB}/black/parsing.pyo 
65${PYSITELIB}/black/py.typed 49${PYSITELIB}/black/py.typed
66${PYSITELIB}/black/report.py 50${PYSITELIB}/black/report.py
67${PYSITELIB}/black/report.pyc 51${PYSITELIB}/black/report.pyc
68${PYSITELIB}/black/report.pyo 
69${PYSITELIB}/black/rusty.py 52${PYSITELIB}/black/rusty.py
70${PYSITELIB}/black/rusty.pyc 53${PYSITELIB}/black/rusty.pyc
71${PYSITELIB}/black/rusty.pyo 
72${PYSITELIB}/black/strings.py 54${PYSITELIB}/black/strings.py
73${PYSITELIB}/black/strings.pyc 55${PYSITELIB}/black/strings.pyc
74${PYSITELIB}/black/strings.pyo 
75${PYSITELIB}/black/trans.py 56${PYSITELIB}/black/trans.py
76${PYSITELIB}/black/trans.pyc 57${PYSITELIB}/black/trans.pyc
77${PYSITELIB}/black/trans.pyo 
78${PYSITELIB}/blackd/__init__.py 58${PYSITELIB}/blackd/__init__.py
79${PYSITELIB}/blackd/__init__.pyc 59${PYSITELIB}/blackd/__init__.pyc
80${PYSITELIB}/blackd/__init__.pyo 
81${PYSITELIB}/blackd/__main__.py 60${PYSITELIB}/blackd/__main__.py
82${PYSITELIB}/blackd/__main__.pyc 61${PYSITELIB}/blackd/__main__.pyc
83${PYSITELIB}/blackd/__main__.pyo 
84${PYSITELIB}/blackd/middlewares.py 62${PYSITELIB}/blackd/middlewares.py
85${PYSITELIB}/blackd/middlewares.pyc 63${PYSITELIB}/blackd/middlewares.pyc
86${PYSITELIB}/blackd/middlewares.pyo 
87${PYSITELIB}/blib2to3/Grammar.txt 64${PYSITELIB}/blib2to3/Grammar.txt
 65${PYSITELIB}/blib2to3/LICENSE
88${PYSITELIB}/blib2to3/PatternGrammar.txt 66${PYSITELIB}/blib2to3/PatternGrammar.txt
 67${PYSITELIB}/blib2to3/README
89${PYSITELIB}/blib2to3/__init__.py 68${PYSITELIB}/blib2to3/__init__.py
90${PYSITELIB}/blib2to3/__init__.pyc 69${PYSITELIB}/blib2to3/__init__.pyc
91${PYSITELIB}/blib2to3/__init__.pyo 
92${PYSITELIB}/blib2to3/pgen2/__init__.py 70${PYSITELIB}/blib2to3/pgen2/__init__.py
93${PYSITELIB}/blib2to3/pgen2/__init__.pyc 71${PYSITELIB}/blib2to3/pgen2/__init__.pyc
94${PYSITELIB}/blib2to3/pgen2/__init__.pyo 
95${PYSITELIB}/blib2to3/pgen2/conv.py 72${PYSITELIB}/blib2to3/pgen2/conv.py
96${PYSITELIB}/blib2to3/pgen2/conv.pyc 73${PYSITELIB}/blib2to3/pgen2/conv.pyc
97${PYSITELIB}/blib2to3/pgen2/conv.pyo 
98${PYSITELIB}/blib2to3/pgen2/driver.py 74${PYSITELIB}/blib2to3/pgen2/driver.py
99${PYSITELIB}/blib2to3/pgen2/driver.pyc 75${PYSITELIB}/blib2to3/pgen2/driver.pyc
100${PYSITELIB}/blib2to3/pgen2/driver.pyo 
101${PYSITELIB}/blib2to3/pgen2/grammar.py 76${PYSITELIB}/blib2to3/pgen2/grammar.py
102${PYSITELIB}/blib2to3/pgen2/grammar.pyc 77${PYSITELIB}/blib2to3/pgen2/grammar.pyc
103${PYSITELIB}/blib2to3/pgen2/grammar.pyo 
104${PYSITELIB}/blib2to3/pgen2/literals.py 78${PYSITELIB}/blib2to3/pgen2/literals.py
105${PYSITELIB}/blib2to3/pgen2/literals.pyc 79${PYSITELIB}/blib2to3/pgen2/literals.pyc
106${PYSITELIB}/blib2to3/pgen2/literals.pyo 
107${PYSITELIB}/blib2to3/pgen2/parse.py 80${PYSITELIB}/blib2to3/pgen2/parse.py
108${PYSITELIB}/blib2to3/pgen2/parse.pyc 81${PYSITELIB}/blib2to3/pgen2/parse.pyc
109${PYSITELIB}/blib2to3/pgen2/parse.pyo 
110${PYSITELIB}/blib2to3/pgen2/pgen.py 82${PYSITELIB}/blib2to3/pgen2/pgen.py
111${PYSITELIB}/blib2to3/pgen2/pgen.pyc 83${PYSITELIB}/blib2to3/pgen2/pgen.pyc
112${PYSITELIB}/blib2to3/pgen2/pgen.pyo 
113${PYSITELIB}/blib2to3/pgen2/token.py 84${PYSITELIB}/blib2to3/pgen2/token.py
114${PYSITELIB}/blib2to3/pgen2/token.pyc 85${PYSITELIB}/blib2to3/pgen2/token.pyc
115${PYSITELIB}/blib2to3/pgen2/token.pyo 
116${PYSITELIB}/blib2to3/pgen2/tokenize.py 86${PYSITELIB}/blib2to3/pgen2/tokenize.py
117${PYSITELIB}/blib2to3/pgen2/tokenize.pyc 87${PYSITELIB}/blib2to3/pgen2/tokenize.pyc
118${PYSITELIB}/blib2to3/pgen2/tokenize.pyo 
119${PYSITELIB}/blib2to3/pygram.py 88${PYSITELIB}/blib2to3/pygram.py
120${PYSITELIB}/blib2to3/pygram.pyc 89${PYSITELIB}/blib2to3/pygram.pyc
121${PYSITELIB}/blib2to3/pygram.pyo 
122${PYSITELIB}/blib2to3/pytree.py 90${PYSITELIB}/blib2to3/pytree.py
123${PYSITELIB}/blib2to3/pytree.pyc 91${PYSITELIB}/blib2to3/pytree.pyc
124${PYSITELIB}/blib2to3/pytree.pyo