summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2022-04-12 10:11:38 +0000
committeradam <adam@pkgsrc.org>2022-04-12 10:11:38 +0000
commit064b5284483cb698c556299a0b11f286d565c9e3 (patch)
treeedc999a011a2e909dd3a0921b8dbe3aeb4a15edc /textproc
parent43b9c3cd754362c1e36132ec8071cc83522adb12 (diff)
downloadpkgsrc-064b5284483cb698c556299a0b11f286d565c9e3.tar.gz
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 (limited to 'textproc')
-rw-r--r--textproc/py-black/ALTERNATIVES1
-rw-r--r--textproc/py-black/Makefile6
-rw-r--r--textproc/py-black/PLIST19
-rw-r--r--textproc/py-black/distinfo8
4 files changed, 11 insertions, 23 deletions
diff --git a/textproc/py-black/ALTERNATIVES b/textproc/py-black/ALTERNATIVES
index f7fa8d63fb9..c994889dc1d 100644
--- a/textproc/py-black/ALTERNATIVES
+++ b/textproc/py-black/ALTERNATIVES
@@ -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 --git a/textproc/py-black/Makefile b/textproc/py-black/Makefile
index 39cbce69c69..735ce74e0d4 100644
--- a/textproc/py-black/Makefile
+++ b/textproc/py-black/Makefile
@@ -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 @@ DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=3.10.0.0:../../devel/py-typing-exten
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 --git a/textproc/py-black/PLIST b/textproc/py-black/PLIST
index 56ffdd1c91d..42b7eb025eb 100644
--- a/textproc/py-black/PLIST
+++ b/textproc/py-black/PLIST
@@ -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}/entry_points.txt
${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/strings.pyo
${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 --git a/textproc/py-black/distinfo b/textproc/py-black/distinfo
index 2421d7db7e5..699dfa7f8d8 100644
--- a/textproc/py-black/distinfo
+++ b/textproc/py-black/distinfo
@@ -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