summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel M. Capella2019-06-13 09:52:31 -0400
committerDaniel M. Capella2019-06-13 09:52:31 -0400
commit9e00402851e8bfb2542f91a169db5ff929ca2e4b (patch)
treeae0a2e420bbc5d77d5f718edeb86f53c50a1b2ca
parent8dfda63e4df1063305ec2070af976e0f822c3e83 (diff)
downloadaur-9e00402851e8bfb2542f91a169db5ff929ca2e4b.tar.gz
Add python-typed-ast dep and python-aiohttp optdep
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD11
2 files changed, 10 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index de92ffef09e..54dcdf488bd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = python-black-git
- pkgdesc = Uncompromising code formatter
- pkgver = 18.9b0.r13.ge4e59f8
+ pkgdesc = Uncompromising Python code formatter
+ pkgver = 19.3b0.r51.g1bbb01b
pkgrel = 1
url = https://github.com/ambv/black
arch = any
@@ -12,6 +12,8 @@ pkgbase = python-black-git
depends = python-click
depends = python-setuptools
depends = python-toml
+ depends = python-typed-ast
+ optdepends = python-aiohttp: for the blackd HTTP server
provides = python-black
conflicts = python-black
source = python-black-git::git+https://github.com/ambv/black.git
diff --git a/PKGBUILD b/PKGBUILD
index 017f94247b5..b9c4795b25c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,16 +2,17 @@
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
pkgname='python-black-git'
-pkgver=18.9b0.r13.ge4e59f8
+pkgver=19.3b0.r51.g1bbb01b
pkgrel=1
-pkgdesc='Uncompromising code formatter'
+pkgdesc='Uncompromising Python code formatter'
arch=('any')
url='https://github.com/ambv/black'
license=('MIT')
depends=('python-appdirs' 'python-attrs' 'python-click' 'python-setuptools'
- 'python-toml')
-checkdepends=('python-aiohttp')
+ 'python-toml' 'python-typed-ast')
makedepends=('git')
+checkdepends=('python-aiohttp')
+optdepends=('python-aiohttp: for the blackd HTTP server')
provides=("${pkgname/-git}")
conflicts=("${pkgname/-git}")
source=("${pkgname}::git+$url.git")
@@ -40,7 +41,7 @@ package() {
cd "${pkgname}"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
# vim:set ts=2 sw=2 et: