[arch-commits] Commit in python-black/trunk (PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Sat Jan 29 23:30:49 UTC 2022
Date: Saturday, January 29, 2022 @ 23:30:48
Author: polyzen
Revision: 1120004
upgpkg: python-black 22.1.0-1
Modified:
python-black/trunk/PKGBUILD
----------+
PKGBUILD | 23 +++++++----------------
1 file changed, 7 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-29 23:11:11 UTC (rev 1120003)
+++ PKGBUILD 2022-01-29 23:30:48 UTC (rev 1120004)
@@ -3,8 +3,8 @@
# Contributor: James Zhu <jameszhu at berkeley.edu>
pkgname=python-black
-pkgver=21.12b0
-pkgrel=4
+pkgver=22.1.0
+pkgrel=1
pkgdesc='Uncompromising Python code formatter'
arch=('any')
url=https://github.com/psf/black
@@ -18,20 +18,11 @@
optdepends=('ipython: for Jupyter notebook support'
'python-tokenize-rt: for Jupyter notebook support'
'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"
- 'black-tomli2-compat.patch::https://github.com/psf/black/commit/389e9c23a9e622ee6090d902cc5f56c5f76cdee9.patch')
-sha256sums=('77b80f693a569e2e527958459634f18df9b0ba2625ba4e0c2d5da5be42e6f2b3'
- '72c9e6bd7576d1dbe38e2344f02efc28a0232c17b28634065adcf5b0df0d36fb')
-b2sums=('95a00f89ba76a49050a5699531dac54fb08023337b69ee6c65eadf36e29e8389a7546dadb0e8a9e64e31ee551b22822ecc2507f3f57a816589784689114c567e'
- '8ed3f7fbeee76ed60b78d7502e89c6067448842dd733a02775dd6e1c06989300760766a12019d041d3bf4419135c8d85027d86e60647d9529e1590bf2fd5a6b9')
+ 'python-colorama: for colored diffs')
+source=("https://files.pythonhosted.org/packages/source/b/black/black-$pkgver.tar.gz")
+sha256sums=('a7c0192d35635f6fc1174be575cb7915e92e5dd629ee79fdaf0dcfa41a80afb5')
+b2sums=('010f04e01f920f79b27d2dfcf3cda3185f6a4ef24f710af41629856dc0baff011393733c90585dc4b12494b983cf628e480adaee05d2d44736dbce26732388e3')
-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
@@ -42,7 +33,7 @@
python -m venv --system-site-packages test-env
test-env/bin/python -m install --optimize=1 dist/*.whl
chmod +x test-env/bin/black # https://github.com/FFY00/python-install/pull/6
- PATH="$PWD/test-env/bin:$PATH" test-env/bin/python -m pytest --run-optional no_python2
+ PATH="$PWD/test-env/bin:$PATH" test-env/bin/python -m pytest
}
package() {
More information about the arch-commits
mailing list