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:           Mon Mar  9 12:48:24 UTC 2026

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

Log Message:
py-black: updated to 26.3.0

26.3.0

Stable style

- Don't double-decode input, causing non-UTF-8 files to be corrupted
- Fix crash on standalone comment in lambda default arguments
- Preserve parentheses when `# type: ignore` comments would be merged with other
  comments on the same line, preventing AST equivalence failures

Preview style

- Fix bug where `if` guards in `case` blocks were incorrectly split when the pattern had
  a trailing comma
- Fix `string_processing` crashing on unassigned long string literals with trailing
  commas (one-item tuples)
- Simplify implementation of the power operator "hugging" logic

Packaging

- Fix shutdown errors in PyInstaller builds on macOS by disabling multiprocessing in
  frozen environments

Performance

- Introduce winloop for windows as an alternative to uvloop
- Remove deprecated function `uvloop.install()` in favor of `uvloop.new_event_loop()`

- Rename `maybe_install_uvloop` function to `maybe_use_uvloop` to simplify loop
  installation and creation of either a uvloop/winloop evenloop or default eventloop

Output

- Emit a clear warning when the target Python version is newer than the running Python
  version, since AST safety checks cannot parse newer syntax. Also replace the
  misleading "INTERNAL ERROR" message with an actionable error explaining the version
  mismatch

_Blackd_

- Introduce winloop to be used when windows in use which enables blackd to run faster on
  windows when winloop is installed.

Integrations

- Remove unused gallery script
- Harden parsing of `black` requirements in the GitHub Action when `use_pyproject` is
  enabled so that only version specifiers are accepted and direct references such as
  `black @ https://...` are rejected. Users should upgrade to the latest version of the
  action as soon as possible. This update is received automatically when using
  `psf/black@stable`, and is independent of the version of Black installed by the
  action.

Documentation

- Expand preview style documentation with detailed examples for `wrap_comprehension_in`,
  `simplify_power_operator_hugging`, and `wrap_long_dict_values_in_parens` features

- Add detailed documentation for formatting Jupyter Notebooks


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 pkgsrc/textproc/py-black/Makefile
cvs rdiff -u -r1.34 -r1.35 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.39 pkgsrc/textproc/py-black/Makefile:1.40
--- pkgsrc/textproc/py-black/Makefile:1.39      Sun Jan 25 23:09:55 2026
+++ pkgsrc/textproc/py-black/Makefile   Mon Mar  9 12:48:24 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.39 2026/01/25 23:09:55 wiz Exp $
+# $NetBSD: Makefile,v 1.40 2026/03/09 12:48:24 adam Exp $
 
-DISTNAME=      black-26.1.0
+DISTNAME=      black-26.3.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=b/black/}
@@ -11,14 +11,14 @@ COMMENT=    Uncompromising Python code form
 LICENSE=       mit
 
 TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-fancy-pypi-readme-[0-9]*:../../devel/py-hatch-fancy-pypi-readme
-TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-vcs-[0-9]*:../../devel/py-hatch-vcs
+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
 DEPENDS+=      ${PYPKGPREFIX}-mypy_extensions>=0.4.3:../../lang/py-mypy_extensions
 DEPENDS+=      ${PYPKGPREFIX}-packaging>=22.0:../../devel/py-packaging
-DEPENDS+=      ${PYPKGPREFIX}-pathspec>=0.9.0:../../devel/py-pathspec
+DEPENDS+=      ${PYPKGPREFIX}-pathspec>=1.0.0:../../devel/py-pathspec
 DEPENDS+=      ${PYPKGPREFIX}-platformdirs>=2:../../misc/py-platformdirs
-DEPENDS+=      ${PYPKGPREFIX}-pytokens>=0.3.0:../../devel/py-pytokens
+DEPENDS+=      ${PYPKGPREFIX}-pytokens>=0.4.0:../../devel/py-pytokens
 # only needed for blackd:
 DEPENDS+=      ${PYPKGPREFIX}-aiohttp>=3.10:../../www/py-aiohttp
 

Index: pkgsrc/textproc/py-black/distinfo
diff -u pkgsrc/textproc/py-black/distinfo:1.34 pkgsrc/textproc/py-black/distinfo:1.35
--- pkgsrc/textproc/py-black/distinfo:1.34      Sun Jan 25 23:09:55 2026
+++ pkgsrc/textproc/py-black/distinfo   Mon Mar  9 12:48:24 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.34 2026/01/25 23:09:55 wiz Exp $
+$NetBSD: distinfo,v 1.35 2026/03/09 12:48:24 adam Exp $
 
-BLAKE2s (black-26.1.0.tar.gz) = 1dc3d9b06d297d42dba2ac156948813d2a92502200b48fb682a128c1565d5474
-SHA512 (black-26.1.0.tar.gz) = db5b0d6e5caf7bcd1e7186c0b6efb076cd94e9194dd63bbc74ab1ca3cc826aa6265bcf0ffbcabb8bfd8ac1f3f15580ce66c295d942c5202acdf269e9898156b0
-Size (black-26.1.0.tar.gz) = 658785 bytes
+BLAKE2s (black-26.3.0.tar.gz) = 86b231ac9c7cbd495b2fee41e3696952ef3d06e581870ede7fdf656f7b16dd90
+SHA512 (black-26.3.0.tar.gz) = e9819e97542d51d5eeac28cf1a09c94042e8a0150de61fe49e325cf49fc6d511b40ab84d9cd80d33f09f5c64ca94a44d4c9d9d4f2e6206f63d842c6475a578e4
+Size (black-26.3.0.tar.gz) = 664127 bytes



Home | Main Index | Thread Index | Old Index