Verified Commit 27f57918 authored by TBK's avatar TBK

testing/gitlint: new aport

parent 50f3ec29
Pipeline #67488 failed with stages
in 11 minutes and 20 seconds
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=gitlint
pkgver=0.15.0
pkgrel=0
pkgdesc="Git commit message linter"
url="https://jorisroovers.com/gitlint"
arch="noarch"
license="MIT"
depends="py3-arrow py3-click py3-sh"
makedepends="py3-setuptools"
checkdepends="git gnupg py3-virtualenv"
source="$pkgname-$pkgver.tar.gz::https://github.com/jorisroovers/gitlint/archive/v$pkgver.tar.gz"
prepare() {
default_prepare
# Unpin dependencies - https://github.com/jorisroovers/gitlint/issues/162
sed -i -e 's/\(sh\|Click\|arrow\)==/\1>=/' requirements.txt setup.py
}
build() {
python3 setup.py build
}
check() {
# TODO fix gpgsign so related tests are executed correctly
(
virtualenv "$srcdir/pyvenv" --system-site-packages
. "$srcdir/pyvenv/bin/activate"
export PYTHONPATH="$PYTHONPATH:/usr/lib/python3.8/site-packages"
python3 setup.py install
# git config --global user.signingkey ALPINE_GITLINT_TESTS
git config --global gpg.program $(which gpg)
git config --global commit.gpgsign false
mkdir -p ~/.gnupg
echo "no-tty" >> ~/.gnupg/gpg.conf
PYTHONPATH="$(echo "$builddir"/build/lib.linux-*)" python3 setup.py test
) || exit 1
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
}
sha512sums="4e9f5dd1212b7049dc1a84819d2e2a6b5a45e5cb1d39359ed99329feb350a33ec83ec0fd7b6889227fb68aed50b82d2978f8e70923a6024ceb28537df20b27ee gitlint-0.15.0.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