[arch-commits] Commit in python-black/trunk (PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Tue Sep 6 06:26:35 UTC 2022
Date: Tuesday, September 6, 2022 @ 06:26:34
Author: polyzen
Revision: 1294182
upgpkg: python-black 22.8.0-2: Install blackd completions
Fixes FS#75820
Modified:
python-black/trunk/PKGBUILD
----------+
PKGBUILD | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-06 05:38:23 UTC (rev 1294181)
+++ PKGBUILD 2022-09-06 06:26:34 UTC (rev 1294182)
@@ -4,7 +4,7 @@
pkgname=python-black
pkgver=22.8.0
-pkgrel=1
+pkgrel=2
pkgdesc='Uncompromising Python code formatter'
arch=('any')
url=https://github.com/psf/black
@@ -32,6 +32,8 @@
cd "black-$pkgver"
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
+ # https://github.com/psf/black/issues/3251#issuecomment-1236413890
+ ulimit -n 2048
PATH="$PWD/test-env/bin:$PATH" test-env/bin/python -m pytest
}
@@ -54,6 +56,12 @@
"$pkgdir/usr/share/fish/vendor_completions.d/black.fish"
_BLACK_COMPLETE=zsh_source test-env/bin/black > \
"$pkgdir/usr/share/zsh/site-functions/_black"
+ _BLACKD_COMPLETE=bash_source test-env/bin/blackd > \
+ "$pkgdir/usr/share/bash-completion/completions/black"
+ _BLACKD_COMPLETE=fish_source test-env/bin/blackd > \
+ "$pkgdir/usr/share/fish/vendor_completions.d/black.fish"
+ _BLACKD_COMPLETE=zsh_source test-env/bin/blackd > \
+ "$pkgdir/usr/share/zsh/site-functions/_black"
# Vim plugin
install -Dm644 -t "$pkgdir/usr/share/vim/vimfiles/plugin" plugin/black.vim
More information about the arch-commits
mailing list