[arch-commits] Commit in python-black/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 16:48:03 UTC 2020
Date: Monday, November 9, 2020 @ 16:48:03
Author: foutrelis
Revision: 747540
archrelease: copy trunk to community-staging-any
Added:
python-black/repos/community-staging-any/
python-black/repos/community-staging-any/PKGBUILD
(from rev 747539, python-black/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-black/repos/community-staging-any/PKGBUILD (from rev 747539, python-black/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 16:48:03 UTC (rev 747540)
@@ -0,0 +1,41 @@
+# 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=20.8b1
+pkgrel=3
+pkgdesc='Uncompromising Python code formatter'
+arch=('any')
+url=https://github.com/psf/black
+license=('MIT')
+depends=('python' 'python-appdirs' 'python-click' 'python-mypy_extensions'
+ 'python-pathspec' 'python-regex' 'python-setuptools' 'python-toml'
+ 'python-typed-ast' 'python-typing_extensions')
+checkdepends=('python-aiohttp' 'python-aiohttp-cors')
+optdepends=('python-aiohttp: for the blackd HTTP server'
+ 'python-aiohttp-cors: for the blackd HTTP server'
+ 'python-colorama: for colored diffs')
+source=("https://files.pythonhosted.org/packages/source/b/black/black-$pkgver.tar.gz")
+sha256sums=('1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea')
+
+build() {
+ cd "black-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "black-$pkgver"
+ mkdir -p temp
+ local sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
+ python setup.py install --skip-build --root=temp
+ PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$sitepackages" python -m unittest tests/test_black.py
+}
+
+package() {
+ cd "black-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list