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 Apr 17 19:27:28 UTC 2023

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

Log Message:
py-black: updated to 23.3.0

23.3.0

Highlights

This release fixes a longstanding confusing behavior in Black's GitHub action, where the
version of the action did not determine the version of Black being run. In
addition, there is a small bug fix around imports and a number of improvements to the
preview style.

Please try out the
[preview style](https://black.readthedocs.io/en/stable/the_black_code_style/future_style.html#preview-style)
with `black --preview` and tell us your feedback. All changes in the preview style are
expected to become part of Black's stable style in January 2024.

Stable style

- Import lines with `# fmt: skip` and `# fmt: off` no longer have an extra blank line
 added when they are right after another import line

Preview style

- Add trailing commas to collection literals even if there's a comment after the last
 entry
- `async def`, `async for`, and `async with` statements are now formatted consistently
 compared to their non-async version.
- `with` statements that contain two context managers will be consistently wrapped in
 parentheses
- Let string splitters respect [East Asian Width](https://www.unicode.org/reports/tr11/)

- Now long string literals can be split after East Asian commas and periods (`、` U+3001
 IDEOGRAPHIC COMMA, `。` U+3002 IDEOGRAPHIC FULL STOP, & `,` U+FF0C FULLWIDTH COMMA)
 besides before spaces
- For stubs, enforce one blank line after a nested class with a body other than just
 `...`
- Improve handling of multiline strings by changing line split behavior

Parser

- Added support for formatting files with invalid type comments

Integrations

- Update GitHub Action to use the version of Black equivalent to action's version if
 version input is not specified
- Fix missing Python binary path in autoload script for vim

Documentation

- Document that only the most recent release is supported for security issues;
 vulnerabilities should be reported through Tidelift


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/textproc/py-black/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/textproc/py-black/PLIST
cvs rdiff -u -r1.12 -r1.13 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.14 pkgsrc/textproc/py-black/Makefile:1.15
--- pkgsrc/textproc/py-black/Makefile:1.14      Wed Mar 29 09:34:13 2023
+++ pkgsrc/textproc/py-black/Makefile   Mon Apr 17 19:27:28 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.14 2023/03/29 09:34:13 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2023/04/17 19:27:28 adam Exp $
 
-DISTNAME=      black-23.1.0
+DISTNAME=      black-23.3.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 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.5 pkgsrc/textproc/py-black/PLIST:1.6
--- pkgsrc/textproc/py-black/PLIST:1.5  Tue Oct 11 13:15:30 2022
+++ pkgsrc/textproc/py-black/PLIST      Mon Apr 17 19:27:28 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2022/10/11 13:15:30 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2023/04/17 19:27:28 adam Exp $
 bin/black-${PYVERSSUFFIX}
 bin/blackd-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
@@ -16,6 +16,8 @@ ${PYSITELIB}/black/__init__.py
 ${PYSITELIB}/black/__init__.pyc
 ${PYSITELIB}/black/__main__.py
 ${PYSITELIB}/black/__main__.pyc
+${PYSITELIB}/black/_width_table.py
+${PYSITELIB}/black/_width_table.pyc
 ${PYSITELIB}/black/brackets.py
 ${PYSITELIB}/black/brackets.pyc
 ${PYSITELIB}/black/cache.py

Index: pkgsrc/textproc/py-black/distinfo
diff -u pkgsrc/textproc/py-black/distinfo:1.12 pkgsrc/textproc/py-black/distinfo:1.13
--- pkgsrc/textproc/py-black/distinfo:1.12      Mon Feb 20 17:59:00 2023
+++ pkgsrc/textproc/py-black/distinfo   Mon Apr 17 19:27:28 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.12 2023/02/20 17:59:00 adam Exp $
+$NetBSD: distinfo,v 1.13 2023/04/17 19:27:28 adam Exp $
 
-BLAKE2s (black-23.1.0.tar.gz) = bc59511a5a2caa2c85b63a4e740a1d0cafb7f4544fcc1265ec68856a63f85f92
-SHA512 (black-23.1.0.tar.gz) = 8a8cc6c083108fa5ced41e24569c05bea781ae970ef0384a6c5f69d465a75ff9afb5ee6249faa16e6adb4b50f821da70f8cd7d3c265b453ca1dd54a31dea1ee9
-Size (black-23.1.0.tar.gz) = 568619 bytes
+BLAKE2s (black-23.3.0.tar.gz) = 04a13ab16fe9fddbde345a8feedca64ca8ea58fb65955499a238a059aae13e2f
+SHA512 (black-23.3.0.tar.gz) = 1ea8749ee25aae34a40c5d1b779c6076971488dea1a85ebfcbe4c2a8bb5abb5e3918a735a4e3f9b4ae2690eda0f48fac014ade055721b54d879fdd2d3450b72b
+Size (black-23.3.0.tar.gz) = 582156 bytes



Home | Main Index | Thread Index | Old Index