pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/py-black



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Nov  8 09:43:11 UTC 2023

Modified Files:
        pkgsrc/textproc/py-black: Makefile PLIST distinfo

Log Message:
py-black: updated to 23.11.0

23.11.0

Highlights

- Support formatting ranges of lines with the new `--line-ranges` command-line option

Stable style

- Fix crash on formatting bytes strings that look like docstrings
- Fix crash when whitespace followed a backslash before newline in a docstring
- Fix standalone comments inside complex blocks crashing Black
- Fix crash on formatting code like `await (a ** b)`
- No longer treat leading f-strings as docstrings. This matches Python's behaviour and
 fixes a crash

Preview style

- Multiline dicts and lists that are the sole argument to a function are now indented
 less
- Multiline unpacked dicts and lists as the sole argument to a function are now also
 indented less
- In f-string debug expressions, quote types that are visible in the final string are
 now preserved
- Fix a bug where long `case` blocks were not split into multiple lines. Also enable
 general trailing comma rules on `case` blocks
- Keep requiring two empty lines between module-level docstring and first function or
 class definition
- Add support for single-line format skip with other comments on the same line

Configuration

- Consistently apply force exclusion logic before resolving symlinks
- Fix a bug in the matching of absolute path names in `--include`

Performance

- Fix mypyc builds on arm64 on macOS

Integrations

- Black's pre-commit integration will now run only on git hooks appropriate for a code
 formatter


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/textproc/py-black/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/textproc/py-black/PLIST
cvs rdiff -u -r1.17 -r1.18 pkgsrc/textproc/py-black/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/py-black/Makefile
diff -u pkgsrc/textproc/py-black/Makefile:1.20 pkgsrc/textproc/py-black/Makefile:1.21
--- pkgsrc/textproc/py-black/Makefile:1.20      Sat Oct 28 20:09:12 2023
+++ pkgsrc/textproc/py-black/Makefile   Wed Nov  8 09:43:11 2023
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.20 2023/10/28 20:09:12 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2023/11/08 09:43:11 adam Exp $
 
-DISTNAME=      black-23.10.1
+DISTNAME=      black-23.11.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    textproc devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=b/black/}
 

Index: pkgsrc/textproc/py-black/PLIST
diff -u pkgsrc/textproc/py-black/PLIST:1.7 pkgsrc/textproc/py-black/PLIST:1.8
--- pkgsrc/textproc/py-black/PLIST:1.7  Sat Oct 28 19:57:16 2023
+++ pkgsrc/textproc/py-black/PLIST      Wed Nov  8 09:43:11 2023
@@ -1,15 +1,15 @@
-@comment $NetBSD: PLIST,v 1.7 2023/10/28 19:57:16 wiz Exp $
+@comment $NetBSD: PLIST,v 1.8 2023/11/08 09:43:11 adam Exp $
 bin/black-${PYVERSSUFFIX}
 bin/blackd-${PYVERSSUFFIX}
-${PYSITELIB}/_black_version.py
-${PYSITELIB}/_black_version.pyc
-${PYSITELIB}/_black_version.pyo
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
 ${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
 ${PYSITELIB}/${WHEEL_INFODIR}/licenses/AUTHORS.md
 ${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
+${PYSITELIB}/_black_version.py
+${PYSITELIB}/_black_version.pyc
+${PYSITELIB}/_black_version.pyo
 ${PYSITELIB}/black/__init__.py
 ${PYSITELIB}/black/__init__.pyc
 ${PYSITELIB}/black/__init__.pyo
@@ -65,6 +65,9 @@ ${PYSITELIB}/black/parsing.py
 ${PYSITELIB}/black/parsing.pyc
 ${PYSITELIB}/black/parsing.pyo
 ${PYSITELIB}/black/py.typed
+${PYSITELIB}/black/ranges.py
+${PYSITELIB}/black/ranges.pyc
+${PYSITELIB}/black/ranges.pyo
 ${PYSITELIB}/black/report.py
 ${PYSITELIB}/black/report.pyc
 ${PYSITELIB}/black/report.pyo

Index: pkgsrc/textproc/py-black/distinfo
diff -u pkgsrc/textproc/py-black/distinfo:1.17 pkgsrc/textproc/py-black/distinfo:1.18
--- pkgsrc/textproc/py-black/distinfo:1.17      Tue Oct 24 04:30:46 2023
+++ pkgsrc/textproc/py-black/distinfo   Wed Nov  8 09:43:11 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.17 2023/10/24 04:30:46 adam Exp $
+$NetBSD: distinfo,v 1.18 2023/11/08 09:43:11 adam Exp $
 
-BLAKE2s (black-23.10.1.tar.gz) = 29d6735a1b37d5ad58d8ddcc59bbb9abcac2ac723ad991fa0f361715fe54a6ce
-SHA512 (black-23.10.1.tar.gz) = 493c46e01411ba6fc4ed81362dc056fb6171a9ec4d85142e5018e610b887b4ed674a09b6b0ede7cd53504904400adbf8b914b37cf0e73a0abaa2eef469a9ec02
-Size (black-23.10.1.tar.gz) = 597307 bytes
+BLAKE2s (black-23.11.0.tar.gz) = d04602a70b09d8816a5465174753555ec37066b5a5d6c4c25f3e749e5f403238
+SHA512 (black-23.11.0.tar.gz) = 50c9d04f57cae3b8338abd90c54f5025b915e8d50cc79863b3b540a434250475f13cd6c48f15e9b955981a2a6dadec9b4eed4caa277f349a8406d7f8640f2a2e
+Size (black-23.11.0.tar.gz) = 615416 bytes



Home | Main Index | Thread Index | Old Index