pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/py-black py-black: updated to 22.3.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9026afe35769
branches:  trunk
changeset: 376689:9026afe35769
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Apr 12 10:11:38 2022 +0000

description:
py-black: updated to 22.3.0

22.3.0

Preview style

- Code cell separators `#%%` are now standardised to `# %%`
- Remove unnecessary parentheses from `except` statements
- Remove unnecessary parentheses from tuple unpacking in `for` loops
- Avoid magic-trailing-comma in single-element subscripts

Configuration

- Do not format `__pypackages__` directories by default
- Add support for specifying stable version with `--required-version`
- Avoid crashing when the user has no homedir
- Avoid crashing when md5 is not available
- Fix handling of directory junctions on Windows

Documentation

- Update pylint config documentation

Integrations

- Move test to disable plugin in Vim/Neovim, which speeds up loading

Output

- In verbose, mode, log when _Black_ is using user-level config

Packaging

- Fix Black to work with Click 8.1.0
- On Python 3.11 and newer, use the standard library's `tomllib` instead of `tomli`

- `black-primer`, the deprecated internal devtool, has been removed and copied to a
  [separate repository](https://github.com/cooperlees/black-primer)

Parser

- Black can now parse starred expressions in the target of `for` and `async for`
  statements, e.g `for item in *items_1, *items_2: pass`

diffstat:

 textproc/py-black/ALTERNATIVES |   1 -
 textproc/py-black/Makefile     |   6 +++---
 textproc/py-black/PLIST        |  19 ++++---------------
 textproc/py-black/distinfo     |   8 ++++----
 4 files changed, 11 insertions(+), 23 deletions(-)

diffs (83 lines):

diff -r 7cb25ed4774e -r 9026afe35769 textproc/py-black/ALTERNATIVES
--- a/textproc/py-black/ALTERNATIVES    Tue Apr 12 07:39:15 2022 +0000
+++ b/textproc/py-black/ALTERNATIVES    Tue Apr 12 10:11:38 2022 +0000
@@ -1,3 +1,2 @@
 bin/black @PREFIX@/bin/black-@PYVERSSUFFIX@
-bin/black-primer @PREFIX@/bin/black-primer-@PYVERSSUFFIX@
 bin/blackd @PREFIX@/bin/blackd-@PYVERSSUFFIX@
diff -r 7cb25ed4774e -r 9026afe35769 textproc/py-black/Makefile
--- a/textproc/py-black/Makefile        Tue Apr 12 07:39:15 2022 +0000
+++ b/textproc/py-black/Makefile        Tue Apr 12 10:11:38 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2022/01/31 09:55:42 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2022/04/12 10:11:38 adam Exp $
 
-DISTNAME=      black-22.1.0
+DISTNAME=      black-22.3.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=b/black/}
@@ -37,7 +37,7 @@
 USE_PKG_RESOURCES=     yes
 
 post-install:
-.for bin in black black-primer blackd
+.for bin in black blackd
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
 .endfor
diff -r 7cb25ed4774e -r 9026afe35769 textproc/py-black/PLIST
--- a/textproc/py-black/PLIST   Tue Apr 12 07:39:15 2022 +0000
+++ b/textproc/py-black/PLIST   Tue Apr 12 10:11:38 2022 +0000
@@ -1,10 +1,6 @@
-@comment $NetBSD: PLIST,v 1.3 2022/01/31 09:55:42 wiz Exp $
+@comment $NetBSD: PLIST,v 1.4 2022/04/12 10:11:38 adam Exp $
 bin/black-${PYVERSSUFFIX}
-bin/black-primer-${PYVERSSUFFIX}
 bin/blackd-${PYVERSSUFFIX}
-${PYSITELIB}/_black_version.py
-${PYSITELIB}/_black_version.pyc
-${PYSITELIB}/_black_version.pyo
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -12,6 +8,9 @@
 ${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
 ${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/_black_version.py
+${PYSITELIB}/_black_version.pyc
+${PYSITELIB}/_black_version.pyo
 ${PYSITELIB}/black/__init__.py
 ${PYSITELIB}/black/__init__.pyc
 ${PYSITELIB}/black/__init__.pyo
@@ -76,16 +75,6 @@
 ${PYSITELIB}/black/trans.py
 ${PYSITELIB}/black/trans.pyc
 ${PYSITELIB}/black/trans.pyo
-${PYSITELIB}/black_primer/__init__.py
-${PYSITELIB}/black_primer/__init__.pyc
-${PYSITELIB}/black_primer/__init__.pyo
-${PYSITELIB}/black_primer/cli.py
-${PYSITELIB}/black_primer/cli.pyc
-${PYSITELIB}/black_primer/cli.pyo
-${PYSITELIB}/black_primer/lib.py
-${PYSITELIB}/black_primer/lib.pyc
-${PYSITELIB}/black_primer/lib.pyo
-${PYSITELIB}/black_primer/primer.json
 ${PYSITELIB}/blackd/__init__.py
 ${PYSITELIB}/blackd/__init__.pyc
 ${PYSITELIB}/blackd/__init__.pyo
diff -r 7cb25ed4774e -r 9026afe35769 textproc/py-black/distinfo
--- a/textproc/py-black/distinfo        Tue Apr 12 07:39:15 2022 +0000
+++ b/textproc/py-black/distinfo        Tue Apr 12 10:11:38 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.6 2022/01/31 09:55:42 wiz Exp $
+$NetBSD: distinfo,v 1.7 2022/04/12 10:11:38 adam Exp $
 
-BLAKE2s (black-22.1.0.tar.gz) = 77159f2ac0156819770ff7b85029d92fe14a08e089f571846936cd49e1f0b927
-SHA512 (black-22.1.0.tar.gz) = 296eb0f0f1bda03a6db54720c168648e2cd7f937319682b6605a61755b7455667b311314246d69b0292d6443b36190e0a4cb86c55ab12631ec079e0910ed48dc
-Size (black-22.1.0.tar.gz) = 559521 bytes
+BLAKE2s (black-22.3.0.tar.gz) = 268c8ae6c1082482d43c82279b5d804d0c54487b6a80c8a29e6047cfaa876ccd
+SHA512 (black-22.3.0.tar.gz) = ad20fd5ccb587db449889840deb1f49061a3d382ba1a14b062a0e6795a4d4b163e8f2ed0207f38dc682cf50eae596fe0973eadb510717243d41e8930c77b7069
+Size (black-22.3.0.tar.gz) = 554277 bytes



Home | Main Index | Thread Index | Old Index