mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-14 03:39:53 +03:00
As of version 25.1.0, black identified 1 file to be reformatted. When there are files to be reformatted, the `--check` flag in the black command used in `test.sh` returns error code 1 which triggered the error message. Per discussion with package maintainer, remove the unneeded formatter check. ``` Running black formatter... Consider running `black icdiff --line-length 79` FAIL ```
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
pkgname=icdiff
|
|
pkgver=2.0.7
|
|
pkgrel=2
|
|
pkgdesc="Improved colored diff"
|
|
url="https://www.jefftk.com/icdiff"
|
|
arch="noarch"
|
|
license="Python-2.0"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel bash"
|
|
checkdepends="black py3-flake8"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/jeffkaufman/icdiff/archive/release-$pkgver.tar.gz
|
|
remove-black-formatter-check.patch
|
|
"
|
|
builddir="$srcdir/icdiff-release-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
./test.sh python3
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
0fb3a8f91120ecd5dd55254fdea0f055bc46905c3b257efcd1b8b0b47927b2b2575b7255e3e260c97b76cd2f40548c8a3653a622a7a1aaac528a4cdae64a8b16 icdiff-2.0.7.tar.gz
|
|
b1e207a3044a9c395664466e059ebff821d55668c8fd2fb21c8447049673d2bc1318fe2f304ceaab65c680b152ffbf5b4359a3ac39036a8a9ec4e80f3a71d3ae remove-black-formatter-check.patch
|
|
"
|