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 Oct 7 05:35:42 UTC 2026
Modified Files:
pkgsrc/textproc/py-black: Makefile distinfo
Log Message:
py-black: updated to 26.10.0
26.10.0
Stable style
- `--line-ranges` no longer inserts an empty line after a docstring when the range
covers only the docstring itself
- Fix `# fmt: skip` on a bracketed ternary turning the surrounding tuple into a call
- Fix crash when `# fmt: skip` is placed on a one-line function or class with PEP 695
type parameters
- Fix an inline comment after the closing bracket of optional parentheses being moved
inside the parentheses when the parenthesized expression contains own-line comments
- Fix unparseable output when `# fmt: skip` is placed on a bracket of an `if`, `while`,
`for`, or `with` header
- Fix crash when formatting parenthesized expressions with multiple inline comments and
`# fmt: skip`
- Fix parsing Jupyter notebook assignment magics when non-ASCII characters appear
earlier on the line
- Preserve blank lines that come immediately before a `# fmt: on` comment
- Keep the parentheses around the target of an annotated assignment (e.g.
`(x): int = 5`), which prevent CPython from including the name in `__annotations__`
- Stop treating a t-string in docstring position as a docstring (e.g. `t" spam "` as
the first statement of a module, class or function)
- Fix unparseable output for a t-string whose replacement field contains a quote (e.g.
`t'\'{a["b"]}\''`)
- Fix unparseable output for a triple-quoted string whose body ends in an
already-escaped double quote (e.g. `'''\'''\"'''`)
- Fix `--skip-magic-trailing-comma` dropping the trailing comma from a split
single-element tuple used as a lambda parameter default
- Fix unstable formatting when an inline comment sits on optional parentheses (e.g. a
parenthesized assert message)
- Fix `--skip-magic-trailing-comma` dropping the trailing comma of a one-element
subscript (`a[x,]`) when the line is long enough to be split and contains a power
operator
- Fix crash when a standalone comment sits between tokens of a comprehension or lambda
- Fix inline comments on a bracket inside a comprehension being dropped
- Respect the magic trailing comma in a PEP 695 type parameter list containing a
`*TypeVarTuple` or `**ParamSpec`
- Fix crash when a comment-only `# fmt: off`/`# fmt: on` block is followed by a `with`
statement after another standalone comment
- Fix a crash when splitting `case case if ...` match patterns at very small line
lengths
- Fix multiline docstring indentation when leading tabs are used inside indented
docstrings
- Respect `# fmt: skip` on a line that opens a bracket (e.g.
`from x import ( # fmt: skip`) when a standalone comment is among the bracket's
contents
- Fix an AST safety error when separate `# type: ignore` comments in a parenthesized
attribute chain were merged onto one physical line
- Preserve comments and blank lines outside requested ranges when formatting with
`--line-ranges`
- Fix crash when `# fmt: skip` is used on one-line `async def`, `async with`, and
`async for` statements containing a semicolon
- Stop converting form feeds or other similar characters in docstrings into newlines
- Fix `--skip-source-first-line` turning the skipped line's CRLF ending into `\r\r\n`
when reformatting a file with CRLF line endings
To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 pkgsrc/textproc/py-black/Makefile
cvs rdiff -u -r1.38 -r1.39 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.44 pkgsrc/textproc/py-black/Makefile:1.45
--- pkgsrc/textproc/py-black/Makefile:1.44 Sun Jun 28 15:41:38 2026
+++ pkgsrc/textproc/py-black/Makefile Wed Oct 7 05:35:42 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.44 2026/06/28 15:41:38 wiz Exp $
+# $NetBSD: Makefile,v 1.45 2026/10/07 05:35:42 adam Exp $
-DISTNAME= black-26.5.1
+DISTNAME= black-26.10.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=b/black/}
@@ -10,7 +10,7 @@ HOMEPAGE= https://black.readthedocs.io/
COMMENT= Uncompromising Python code formatter
LICENSE= mit
-TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-fancy-pypi-readme-[0-9]*:../../devel/py-hatch-fancy-pypi-readme
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-fancy-pypi-readme>=0:../../devel/py-hatch-fancy-pypi-readme
TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-vcs>=0.3.0:../../devel/py-hatch-vcs
TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=1.27.0:../../devel/py-hatchling
DEPENDS+= ${PYPKGPREFIX}-click>=8.0.0:../../devel/py-click
Index: pkgsrc/textproc/py-black/distinfo
diff -u pkgsrc/textproc/py-black/distinfo:1.38 pkgsrc/textproc/py-black/distinfo:1.39
--- pkgsrc/textproc/py-black/distinfo:1.38 Tue May 19 13:13:12 2026
+++ pkgsrc/textproc/py-black/distinfo Wed Oct 7 05:35:42 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.38 2026/05/19 13:13:12 adam Exp $
+$NetBSD: distinfo,v 1.39 2026/10/07 05:35:42 adam Exp $
-BLAKE2s (black-26.5.1.tar.gz) = aec3cc8d7f395b282cca533714c053aed349886554fc51793660424751d9876e
-SHA512 (black-26.5.1.tar.gz) = 8e17234aeffb5f7a66f1d9d9e2672796ec8ef0c660a3a8c0668061632591aee626a5f8a1a5210900c154ef2ae63919a690512e2d8fe789ac6bcf5d6eaaa055f0
-Size (black-26.5.1.tar.gz) = 679439 bytes
+BLAKE2s (black-26.10.0.tar.gz) = 3b8dfcd851d36cc63ae6ffc657549643c590f592fec58f51b7d05d04582e4f3c
+SHA512 (black-26.10.0.tar.gz) = 941ed5eae286d5a43112143f8598597c9e10b1491a550dd024118bd72afeea428640610e514926c6427fd06f9a06f426f7792c26d35a8f28b5c6a489e007f75d
+Size (black-26.10.0.tar.gz) = 728037 bytes
Home |
Main Index |
Thread Index |
Old Index