Commit ee1141c6 authored by Michał Polański's avatar Michał Polański

community/black: upgrade to 20.8_beta1

parent f693385d
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=black
pkgver=19.10_beta0
pkgver=20.8_beta1
_pkgver=${pkgver/_beta/b}
pkgrel=0
pkgdesc="The uncompromising Python code formatter"
url="https://github.com/psf/black"
arch="noarch !s390x !mips !mips64" # tests fail on s390x and mips
license="MIT"
depends="python3 py3-click py3-attrs py3-toml py3-appdirs py3-typed-ast py3-regex py3-pathspec"
depends="python3 py3-click py3-attrs py3-toml py3-appdirs py3-typed-ast py3-regex
py3-pathspec py3-typing-extensions py3-mypy-extensions"
makedepends="py3-setuptools"
checkdepends="py3-aiohttp py3-aiohttp-cors"
source="https://files.pythonhosted.org/packages/source/b/black/black-$_pkgver.tar.gz"
......@@ -19,11 +20,16 @@ build() {
}
check() {
python3 -m unittest tests/test_black.py
# temporary installation for testing
python3 setup.py install --root="$PWD"/test_install --skip-build
PATH="$PWD/test_install/usr/bin:$PATH" \
PYTHONPATH="$(echo $PWD/test_install/usr/lib/python3*/site-packages)" \
python3 -m unittest tests/test_black.py
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
python3 setup.py install --root="$pkgdir" --skip-build
}
sha512sums="abc6d2623ab50e59bed01fdb7a6ee7434c2d3e0f779a046d9141087aa6ef46b73b3aacc6bf84ac70b9384817bd2c707a3fa262811f11a2f61a99251d2b84dd02 black-19.10b0.tar.gz"
sha512sums="f047c2a1ce759a8e19eed2e1869752bb8a63bf17a554aff5d9e834a48cd390b23918b78e01d5c36c0fb7599439d7e422847bde504ff698d53df5c5939a8870d2 black-20.8b1.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment