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:           Tue Feb 13 05:06:49 UTC 2024

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

Log Message:
py-black: updated to 24.2.0

24.2.0

Stable style

- Fixed a bug where comments where mistakenly removed along with redundant parentheses

Preview style

- Move the `hug_parens_with_braces_and_square_brackets` feature to the unstable style
 due to an outstanding crash and proposed formatting tweaks
- Fixed a bug where base expressions caused inconsistent formatting of \*\* in tenary
 expression
- Checking for newline before adding one on docstring that is almost at the line limit

- Remove redundant parentheses in `case` statement `if` guards

Configuration

- Fix issue where _Black_ would ignore input files in the presence of symlinks
- _Black_ now ignores `pyproject.toml` that is missing a `tool.black` section when
 discovering project root and configuration. Since _Black_ continues to use version
 control as an indicator of project root, this is expected to primarily change behavior
 for users in a monorepo setup (desirably). If you wish to preserve previous behavior,
 simply add an empty `[tool.black]` to the previously discovered `pyproject.toml`

Output

- Black will swallow any `SyntaxWarning`s or `DeprecationWarning`s produced by the `ast`
 module when performing equivalence checks

Integrations

- Add a JSONSchema and provide a validate-pyproject entry-point


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 pkgsrc/textproc/py-black/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/textproc/py-black/PLIST
cvs rdiff -u -r1.22 -r1.23 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.25 pkgsrc/textproc/py-black/Makefile:1.26
--- pkgsrc/textproc/py-black/Makefile:1.25      Sun Jan 28 17:25:22 2024
+++ pkgsrc/textproc/py-black/Makefile   Tue Feb 13 05:06:48 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.25 2024/01/28 17:25:22 adam Exp $
+# $NetBSD: Makefile,v 1.26 2024/02/13 05:06:48 adam Exp $
 
-DISTNAME=      black-24.1.1
+DISTNAME=      black-24.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=b/black/}
@@ -10,9 +10,9 @@ HOMEPAGE=     https://black.readthedocs.io/
 COMMENT=       Uncompromising Python code formatter
 LICENSE=       mit
 
-TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=1.8.0:../../devel/py-hatchling
 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}-hatchling>=1.20.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

Index: pkgsrc/textproc/py-black/PLIST
diff -u pkgsrc/textproc/py-black/PLIST:1.8 pkgsrc/textproc/py-black/PLIST:1.9
--- pkgsrc/textproc/py-black/PLIST:1.8  Wed Nov  8 09:43:11 2023
+++ pkgsrc/textproc/py-black/PLIST      Tue Feb 13 05:06:48 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2023/11/08 09:43:11 adam Exp $
+@comment $NetBSD: PLIST,v 1.9 2024/02/13 05:06:48 adam Exp $
 bin/black-${PYVERSSUFFIX}
 bin/blackd-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
@@ -71,9 +71,16 @@ ${PYSITELIB}/black/ranges.pyo
 ${PYSITELIB}/black/report.py
 ${PYSITELIB}/black/report.pyc
 ${PYSITELIB}/black/report.pyo
+${PYSITELIB}/black/resources/__init__.py
+${PYSITELIB}/black/resources/__init__.pyc
+${PYSITELIB}/black/resources/__init__.pyo
+${PYSITELIB}/black/resources/black.schema.json
 ${PYSITELIB}/black/rusty.py
 ${PYSITELIB}/black/rusty.pyc
 ${PYSITELIB}/black/rusty.pyo
+${PYSITELIB}/black/schema.py
+${PYSITELIB}/black/schema.pyc
+${PYSITELIB}/black/schema.pyo
 ${PYSITELIB}/black/strings.py
 ${PYSITELIB}/black/strings.pyc
 ${PYSITELIB}/black/strings.pyo

Index: pkgsrc/textproc/py-black/distinfo
diff -u pkgsrc/textproc/py-black/distinfo:1.22 pkgsrc/textproc/py-black/distinfo:1.23
--- pkgsrc/textproc/py-black/distinfo:1.22      Sun Jan 28 17:25:22 2024
+++ pkgsrc/textproc/py-black/distinfo   Tue Feb 13 05:06:49 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.22 2024/01/28 17:25:22 adam Exp $
+$NetBSD: distinfo,v 1.23 2024/02/13 05:06:49 adam Exp $
 
-BLAKE2s (black-24.1.1.tar.gz) = 5124fb1fb7276dead6988694332b6f7f28ad0ce03116d5c3d8a3ce1638a74c4e
-SHA512 (black-24.1.1.tar.gz) = 507555c330a4ef5869b11d9b3ad19b6234c035bb2a28fa497aac911303bbc2d546601c1d587c8a824403c346eb5b940aaec2989c20dffead6fa881e496be5672
-Size (black-24.1.1.tar.gz) = 623755 bytes
+BLAKE2s (black-24.2.0.tar.gz) = c719e308ec7210afa545be305a4d47a5fd3803b21f7e61fff0dbdd24c55c6290
+SHA512 (black-24.2.0.tar.gz) = 23a40d7b2463d657c849bc54745036a253c67df6c58cef210fa4ee3c820cd83f687e3661f765939a5da23f7b75b10bb59e8b233731f37f21dd0301129e3fb5ea
+Size (black-24.2.0.tar.gz) = 631598 bytes



Home | Main Index | Thread Index | Old Index