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:           Mon Jan 31 09:55:42 UTC 2022

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

Log Message:
py310-black: update to 22.1.0.

## 22.1.0

At long last, _Black_ is no longer a beta product! This is the first non-beta release
and the first release covered by our new stability policy.

### Highlights

- **Remove Python 2 support** (#2740)
- Introduce the `--preview` flag (#2752)

### Style

- Deprecate `--experimental-string-processing` and move the functionality under
  `--preview` (#2789)
- For stubs, one blank line between class attributes and methods is now kept if there's
  at least one pre-existing blank line (#2736)
- Black now normalizes string prefix order (#2297)
- Remove spaces around power operators if both operands are simple (#2726)
- Work around bug that causes unstable formatting in some cases in the presence of the
  magic trailing comma (#2807)
- Use parentheses for attribute access on decimal float and int literals (#2799)
- Don't add whitespace for attribute access on hexadecimal, binary, octal, and complex
  literals (#2799)
- Treat blank lines in stubs the same inside top-level `if` statements (#2820)
- Fix unstable formatting with semicolons and arithmetic expressions (#2817)
- Fix unstable formatting around magic trailing comma (#2572)

### Parser

- Fix mapping cases that contain as-expressions, like `case {"key": 1 | 2 as password}`
  (#2686)
- Fix cases that contain multiple top-level as-expressions, like `case 1 as a, 2 as b`
  (#2716)
- Fix call patterns that contain as-expressions with keyword arguments, like
  `case Foo(bar=baz as quux)` (#2749)
- Tuple unpacking on `return` and `yield` constructs now implies 3.8+ (#2700)
- Unparenthesized tuples on annotated assignments (e.g
  `values: Tuple[int, ...] = 1, 2, 3`) now implies 3.8+ (#2708)
- Fix handling of standalone `match()` or `case()` when there is a trailing newline or a
  comment inside of the parentheses. (#2760)
- `from __future__ import annotations` statement now implies Python 3.7+ (#2690)

### Performance

- Speed-up the new backtracking parser about 4X in general (enabled when
  `--target-version` is set to 3.10 and higher). (#2728)
- _Black_ is now compiled with [mypyc](https://github.com/mypyc/mypyc) for an overall 2x
  speed-up. 64-bit Windows, MacOS, and Linux (not including musl) are supported. (#1009,
  #2431)

### Configuration

- Do not accept bare carriage return line endings in pyproject.toml (#2408)
- Add configuration option (`python-cell-magics`) to format cells with custom magics in
  Jupyter Notebooks (#2744)
- Allow setting custom cache directory on all platforms with environment variable
  `BLACK_CACHE_DIR` (#2739).
- Enable Python 3.10+ by default, without any extra need to specify
  `--target-version=py310`. (#2758)
- Make passing `SRC` or `--code` mandatory and mutually exclusive (#2804)

### Output

- Improve error message for invalid regular expression (#2678)
- Improve error message when parsing fails during AST safety check by embedding the
  underlying SyntaxError (#2693)
- No longer color diff headers white as it's unreadable in light themed terminals
  (#2691)
- Text coloring added in the final statistics (#2712)
- Verbose mode also now describes how a project root was discovered and which paths will
  be formatted. (#2526)

### Packaging

- All upper version bounds on dependencies have been removed (#2718)
- `typing-extensions` is no longer a required dependency in Python 3.10+ (#2772)
- Set `click` lower bound to `8.0.0` (#2791)

### Integrations

- Update GitHub action to support containerized runs (#2748)

### Documentation

- Change protocol in pip installation instructions to `https://` (#2761)
- Change HTML theme to Furo primarily for its responsive design and mobile support
  (#2793)
- Deprecate the `black-primer` tool (#2809)
- Document Python support policy (#2819)


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/textproc/py-black/Makefile \
    pkgsrc/textproc/py-black/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/textproc/py-black/PLIST

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.5 pkgsrc/textproc/py-black/Makefile:1.6
--- pkgsrc/textproc/py-black/Makefile:1.5       Thu Jan 13 19:31:25 2022
+++ pkgsrc/textproc/py-black/Makefile   Mon Jan 31 09:55:42 2022
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2022/01/13 19:31:25 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2022/01/31 09:55:42 wiz Exp $
 
-DISTNAME=      black-21.12b0
+DISTNAME=      black-22.1.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=b/black/}
@@ -12,21 +12,26 @@ LICENSE=    mit
 
 USE_LANGUAGES= # none
 
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
-DEPENDS+=      ${PYPKGPREFIX}-click>=7.1.2:../../devel/py-click
+DEPENDS+=      ${PYPKGPREFIX}-click>=8.0.0:../../devel/py-click
 DEPENDS+=      ${PYPKGPREFIX}-mypy_extensions>=0.4.3:../../lang/py-mypy_extensions
 DEPENDS+=      ${PYPKGPREFIX}-pathspec>=0.9.0:../../devel/py-pathspec
 DEPENDS+=      ${PYPKGPREFIX}-platformdirs>=2:../../misc/py-platformdirs
-DEPENDS+=      ${PYPKGPREFIX}-tomli>=0.2.6:../../textproc/py-tomli
-DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=3.10.0.2:../../devel/py-typing-extensions
-# only for blackd:
+DEPENDS+=      ${PYPKGPREFIX}-tomli>=1.1.0:../../textproc/py-tomli
+# only needed for blackd:
 DEPENDS+=      ${PYPKGPREFIX}-aiohttp>=3.7.4:../../www/py-aiohttp
+
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 .include "../../lang/python/pyversion.mk"
+
 .if ${_PYTHON_VERSION} < 38
-DEPENDS+=      ${PYPKGPREFIX}-typed-ast>=1.4.0:../../devel/py-typed-ast
+DEPENDS+=      ${PYPKGPREFIX}-typed-ast>=1.4.2:../../devel/py-typed-ast
+.endif
+.if ${_PYTHON_VERSION} < 310
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=3.10.0.0:../../devel/py-typing-extensions
 .endif
 
 USE_PKG_RESOURCES=     yes
Index: pkgsrc/textproc/py-black/distinfo
diff -u pkgsrc/textproc/py-black/distinfo:1.5 pkgsrc/textproc/py-black/distinfo:1.6
--- pkgsrc/textproc/py-black/distinfo:1.5       Thu Jan 13 19:40:07 2022
+++ pkgsrc/textproc/py-black/distinfo   Mon Jan 31 09:55:42 2022
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.5 2022/01/13 19:40:07 wiz Exp $
+$NetBSD: distinfo,v 1.6 2022/01/31 09:55:42 wiz Exp $
 
-BLAKE2s (black-21.12b0.tar.gz) = d2b2d65a85f1104ef0ecfb259cbfe8e85f6552b1915a2b1f10476f3c5d194c70
-SHA512 (black-21.12b0.tar.gz) = 1063644b17e56650b03fa515b3f6bd05762d66a43359dbe587279bf9818e73c1ce48421984389fcd1764432dbb36f90fc1cb6bcd528f81289afd0ddf330b7aac
-Size (black-21.12b0.tar.gz) = 594232 bytes
-SHA1 (patch-setup.py) = 0d3166bd1d02b2a0af4c7f7465b2c086a47eb490
+BLAKE2s (black-22.1.0.tar.gz) = 77159f2ac0156819770ff7b85029d92fe14a08e089f571846936cd49e1f0b927
+SHA512 (black-22.1.0.tar.gz) = 296eb0f0f1bda03a6db54720c168648e2cd7f937319682b6605a61755b7455667b311314246d69b0292d6443b36190e0a4cb86c55ab12631ec079e0910ed48dc
+Size (black-22.1.0.tar.gz) = 559521 bytes

Index: pkgsrc/textproc/py-black/PLIST
diff -u pkgsrc/textproc/py-black/PLIST:1.2 pkgsrc/textproc/py-black/PLIST:1.3
--- pkgsrc/textproc/py-black/PLIST:1.2  Tue Jan 11 09:13:29 2022
+++ pkgsrc/textproc/py-black/PLIST      Mon Jan 31 09:55:42 2022
@@ -1,7 +1,10 @@
-@comment $NetBSD: PLIST,v 1.2 2022/01/11 09:13:29 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2022/01/31 09:55:42 wiz Exp $
 bin/black-${PYVERSSUFFIX}
 bin/black-primer-${PYVERSSUFFIX}
 bin/blackd-${PYVERSSUFFIX}
+${PYSITELIB}/_black_version.py
+${PYSITELIB}/_black_version.pyc
+${PYSITELIB}/_black_version.pyo
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -9,9 +12,6 @@ ${PYSITELIB}/${EGG_INFODIR}/entry_points
 ${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
 ${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
-${PYSITELIB}/_black_version.py
-${PYSITELIB}/_black_version.pyc
-${PYSITELIB}/_black_version.pyo
 ${PYSITELIB}/black/__init__.py
 ${PYSITELIB}/black/__init__.pyc
 ${PYSITELIB}/black/__init__.pyo
@@ -89,6 +89,9 @@ ${PYSITELIB}/black_primer/primer.json
 ${PYSITELIB}/blackd/__init__.py
 ${PYSITELIB}/blackd/__init__.pyc
 ${PYSITELIB}/blackd/__init__.pyo
+${PYSITELIB}/blackd/__main__.py
+${PYSITELIB}/blackd/__main__.pyc
+${PYSITELIB}/blackd/__main__.pyo
 ${PYSITELIB}/blackd/middlewares.py
 ${PYSITELIB}/blackd/middlewares.pyc
 ${PYSITELIB}/blackd/middlewares.pyo



Home | Main Index | Thread Index | Old Index