[arch-commits] Commit in python-black/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 20:03:27 UTC 2019
Date: Friday, October 25, 2019 @ 20:03:24
Author: foutrelis
Revision: 519699
archrelease: copy trunk to community-staging-any
Added:
python-black/repos/community-staging-any/
python-black/repos/community-staging-any/PKGBUILD
(from rev 519696, python-black/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-black/repos/community-staging-any/PKGBUILD (from rev 519696, python-black/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 20:03:24 UTC (rev 519699)
@@ -0,0 +1,36 @@
+# 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=19.3b0
+pkgrel=3
+pkgdesc='Uncompromising Python code formatter'
+arch=('any')
+url=https://github.com/psf/black
+license=('MIT')
+depends=('python' 'python-appdirs' 'python-attrs' 'python-click' 'python-setuptools'
+ 'python-toml')
+checkdepends=('python-aiohttp')
+optdepends=('python-aiohttp: for the blackd HTTP server'
+ 'python-aiohttp-cors: for the blackd HTTP server')
+source=("https://files.pythonhosted.org/packages/source/b/black/black-$pkgver.tar.gz")
+sha256sums=('68950ffd4d9169716bcb8719a56c07a2f4485354fec061cdd5910aa07369731c')
+
+build() {
+ cd "black-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "black-$pkgver"
+ 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