[arch-commits] Commit in python-black/trunk (PKGBUILD)

Daniel M. Capella polyzen at gemini.archlinux.org
Thu Jan 13 03:33:55 UTC 2022


    Date: Thursday, January 13, 2022 @ 03:33:55
  Author: polyzen
Revision: 1101783

upgpkg: python-black 21.12b0-4: Support tomli up to 3.0.0

Fixes use with python-tomli 2.0.0 in community-testing.

Currently next release is slated to remove upper bounds limits for
dependencies.

Modified:
  python-black/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-13 00:37:01 UTC (rev 1101782)
+++ PKGBUILD	2022-01-13 03:33:55 UTC (rev 1101783)
@@ -4,7 +4,7 @@
 
 pkgname=python-black
 pkgver=21.12b0
-pkgrel=3
+pkgrel=4
 pkgdesc='Uncompromising Python code formatter'
 arch=('any')
 url=https://github.com/psf/black
@@ -20,10 +20,18 @@
             'python-aiohttp: for the blackd HTTP server'
             'python-colorama: for colored diffs'
             'python-typed-ast: to format Python 2 code')
-source=("https://files.pythonhosted.org/packages/source/b/black/black-$pkgver.tar.gz")
-sha256sums=('77b80f693a569e2e527958459634f18df9b0ba2625ba4e0c2d5da5be42e6f2b3')
-b2sums=('95a00f89ba76a49050a5699531dac54fb08023337b69ee6c65eadf36e29e8389a7546dadb0e8a9e64e31ee551b22822ecc2507f3f57a816589784689114c567e')
+source=("https://files.pythonhosted.org/packages/source/b/black/black-$pkgver.tar.gz"
+        'black-tomli2-compat.patch::https://github.com/psf/black/commit/389e9c23a9e622ee6090d902cc5f56c5f76cdee9.patch')
+sha256sums=('77b80f693a569e2e527958459634f18df9b0ba2625ba4e0c2d5da5be42e6f2b3'
+            '72c9e6bd7576d1dbe38e2344f02efc28a0232c17b28634065adcf5b0df0d36fb')
+b2sums=('95a00f89ba76a49050a5699531dac54fb08023337b69ee6c65eadf36e29e8389a7546dadb0e8a9e64e31ee551b22822ecc2507f3f57a816589784689114c567e'
+        '8ed3f7fbeee76ed60b78d7502e89c6067448842dd733a02775dd6e1c06989300760766a12019d041d3bf4419135c8d85027d86e60647d9529e1590bf2fd5a6b9')
 
+prepare() {
+  cd "black-$pkgver"
+  patch --forward --strip=1 --input=../black-tomli2-compat.patch || true
+}
+
 build() {
   cd "black-$pkgver"
   python -m build --wheel --skip-dependency-check --no-isolation



More information about the arch-commits mailing list