[arch-commits] Commit in python-black/repos/community-any (PKGBUILD PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Tue Sep 6 06:26:55 UTC 2022
Date: Tuesday, September 6, 2022 @ 06:26:54
Author: polyzen
Revision: 1294183
archrelease: copy trunk to community-any
Added:
python-black/repos/community-any/PKGBUILD
(from rev 1294182, python-black/trunk/PKGBUILD)
Deleted:
python-black/repos/community-any/PKGBUILD
----------+
PKGBUILD | 134 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 71 insertions(+), 63 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-06 06:26:34 UTC (rev 1294182)
+++ PKGBUILD 2022-09-06 06:26:54 UTC (rev 1294183)
@@ -1,63 +0,0 @@
-# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: James Zhu <jameszhu at berkeley.edu>
-
-pkgname=python-black
-pkgver=22.8.0
-pkgrel=1
-pkgdesc='Uncompromising Python code formatter'
-arch=('any')
-url=https://github.com/psf/black
-license=('MIT')
-depends=('python' 'python-click' 'python-mypy_extensions' 'python-pathspec'
- 'python-platformdirs' 'python-tomli' 'python-typing_extensions')
-makedepends=('python-build' 'python-installer' 'python-setuptools-scm'
- 'python-wheel')
-checkdepends=('ipython' 'python-aiohttp' 'python-parameterized' 'python-pytest'
- 'python-typed-ast' 'python-tokenize-rt')
-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')
-source=("https://files.pythonhosted.org/packages/source/b/black/black-$pkgver.tar.gz")
-sha256sums=('792f7eb540ba9a17e8656538701d3eb1afcb134e3b45b71f20b25c77a8db7e6e')
-b2sums=('47f449896b26fb7a5ae2ed7ca4d8cddc1b918078b922723a66b021aabf5496f15348a0f911ed900ddb57562986f7abe08a3f4dd5800d95820f1f1d19da2d8c6e')
-
-build() {
- cd "black-$pkgver"
- python -m build --wheel --skip-dependency-check --no-isolation
-}
-
-check() {
- cd "black-$pkgver"
- python -m venv --system-site-packages test-env
- test-env/bin/python -m installer dist/*.whl
- PATH="$PWD/test-env/bin:$PATH" test-env/bin/python -m pytest
-}
-
-package() {
- cd "black-$pkgver"
- python -m installer --destdir="$pkgdir" dist/*.whl
-
- # Symlink license file
- local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
- install -d "$pkgdir"/usr/share/licenses/$pkgname
- ln -s "$site_packages"/black-$pkgver.dist-info/LICENSE \
- "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
- # Completions
- install -vd \
- "$pkgdir/usr/share/"{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
- _BLACK_COMPLETE=bash_source test-env/bin/black > \
- "$pkgdir/usr/share/bash-completion/completions/black"
- _BLACK_COMPLETE=fish_source test-env/bin/black > \
- "$pkgdir/usr/share/fish/vendor_completions.d/black.fish"
- _BLACK_COMPLETE=zsh_source test-env/bin/black > \
- "$pkgdir/usr/share/zsh/site-functions/_black"
-
- # Vim plugin
- install -Dm644 -t "$pkgdir/usr/share/vim/vimfiles/plugin" plugin/black.vim
- install -Dm644 -t "$pkgdir/usr/share/vim/vimfiles/autoload" autoload/black.vim
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-black/repos/community-any/PKGBUILD (from rev 1294182, python-black/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-09-06 06:26:54 UTC (rev 1294183)
@@ -0,0 +1,71 @@
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: James Zhu <jameszhu at berkeley.edu>
+
+pkgname=python-black
+pkgver=22.8.0
+pkgrel=2
+pkgdesc='Uncompromising Python code formatter'
+arch=('any')
+url=https://github.com/psf/black
+license=('MIT')
+depends=('python' 'python-click' 'python-mypy_extensions' 'python-pathspec'
+ 'python-platformdirs' 'python-tomli' 'python-typing_extensions')
+makedepends=('python-build' 'python-installer' 'python-setuptools-scm'
+ 'python-wheel')
+checkdepends=('ipython' 'python-aiohttp' 'python-parameterized' 'python-pytest'
+ 'python-typed-ast' 'python-tokenize-rt')
+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')
+source=("https://files.pythonhosted.org/packages/source/b/black/black-$pkgver.tar.gz")
+sha256sums=('792f7eb540ba9a17e8656538701d3eb1afcb134e3b45b71f20b25c77a8db7e6e')
+b2sums=('47f449896b26fb7a5ae2ed7ca4d8cddc1b918078b922723a66b021aabf5496f15348a0f911ed900ddb57562986f7abe08a3f4dd5800d95820f1f1d19da2d8c6e')
+
+build() {
+ cd "black-$pkgver"
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ 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
+}
+
+package() {
+ cd "black-$pkgver"
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # Symlink license file
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s "$site_packages"/black-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ # Completions
+ install -vd \
+ "$pkgdir/usr/share/"{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
+ _BLACK_COMPLETE=bash_source test-env/bin/black > \
+ "$pkgdir/usr/share/bash-completion/completions/black"
+ _BLACK_COMPLETE=fish_source test-env/bin/black > \
+ "$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
+ install -Dm644 -t "$pkgdir/usr/share/vim/vimfiles/autoload" autoload/black.vim
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list