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:   wiz
Date:           Sun Jan 25 23:09:55 UTC 2026

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

Log Message:
py-black: update to 26.1.0.

## 26.1.0

### Highlights

Introduces the 2026 stable style (#4892), stabilizing the following changes:

- `always_one_newline_after_import`: Always force one blank line after import
  statements, except when the line after the import is a comment or an import statement
  (#4489)
- `fix_fmt_skip_in_one_liners`: Fix `# fmt: skip` behavior on one-liner declarations,
  such as `def foo(): return "mock" # fmt: skip`, where previously the declaration would
  have been incorrectly collapsed (#4800)
- `fix_module_docstring_detection`: Fix module docstrings being treated as normal
  strings if preceded by comments (#4764)
- `fix_type_expansion_split`: Fix type expansions split in generic functions (#4777)
- `multiline_string_handling`: Make expressions involving multiline strings more compact
  (#1879)
- `normalize_cr_newlines`: Add `\r` style newlines to the potential newlines to
  normalize file newlines both from and to (#4710)
- `remove_parens_around_except_types`: Remove parentheses around multiple exception
  types in `except` and `except*` without `as` (#4720)
- `remove_parens_from_assignment_lhs`: Remove unnecessary parentheses from the left-hand
  side of assignments while preserving magic trailing commas and intentional multiline
  formatting (#4865)
- `standardize_type_comments`: Format type comments which have zero or more spaces
  between `#` and `type:` or between `type:` and value to `# type: (value)` (#4645)

The following change was not in any previous stable release:

- Regenerated the `_width_table.py` and added tests for the Khmer language (#4253)

This release alo bumps `pathspec` to v1 and fixes inconsistencies with Git's
`.gitignore` logic (#4958). Now, files will be ignored if a pattern matches them, even
if the parent directory is directly unignored. For example, Black would previously
format `exclude/not_this/foo.py` with this `.gitignore`:

```
exclude/
!exclude/not_this/
```

Now, `exclude/not_this/foo.py` will remain ignored. To ensure `exclude/not_this/` and
all of it's children are included in formatting (and in Git), use this `.gitignore`:

```
*/exclude/*
!*/exclude/not_this/
```

This new behavior matches Git. The leading `*/` are only necessary if you wish to ignore
matching subdirectories (like the previous behavior did), and not just matching root
directories.

### Output

- Explicitly shutdown the multiprocessing manager when run in diff mode too (#4952)

### Integrations

- Upgraded PyPI upload workflow to use Trusted Publishing (#4611)


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 pkgsrc/textproc/py-black/Makefile
cvs rdiff -u -r1.33 -r1.34 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.38 pkgsrc/textproc/py-black/Makefile:1.39
--- pkgsrc/textproc/py-black/Makefile:1.38      Mon Dec  8 07:12:51 2025
+++ pkgsrc/textproc/py-black/Makefile   Sun Jan 25 23:09:55 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.38 2025/12/08 07:12:51 adam Exp $
+# $NetBSD: Makefile,v 1.39 2026/01/25 23:09:55 wiz Exp $
 
-DISTNAME=      black-25.12.0
+DISTNAME=      black-26.1.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=b/black/}

Index: pkgsrc/textproc/py-black/distinfo
diff -u pkgsrc/textproc/py-black/distinfo:1.33 pkgsrc/textproc/py-black/distinfo:1.34
--- pkgsrc/textproc/py-black/distinfo:1.33      Mon Dec  8 07:12:51 2025
+++ pkgsrc/textproc/py-black/distinfo   Sun Jan 25 23:09:55 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.33 2025/12/08 07:12:51 adam Exp $
+$NetBSD: distinfo,v 1.34 2026/01/25 23:09:55 wiz Exp $
 
-BLAKE2s (black-25.12.0.tar.gz) = 3e6b598a6b7605b8e1aa58f0d657a88660b3e3467b25da08abd22f09b0cb01dd
-SHA512 (black-25.12.0.tar.gz) = 2e67d22218eaba3e5c4f3bbcfe5ea3d305852168cfe7f75edb31ecd4db7b4a3dc349e23f8b93c0e5c5e9c4380cb3cd949733d13b9991b41496a7d17514cd2cea
-Size (black-25.12.0.tar.gz) = 659264 bytes
+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



Home | Main Index | Thread Index | Old Index