upgpkg: commitizen 2.19.0-2

* Remove checkdepends for now.
* Add shell completions for bash & fish.
* Use python-build to generate wheel.
This commit is contained in:
George Rawlinson 2021-09-27 23:54:24 +00:00
parent 705df84df1
commit 847f76b80a
Signed by: grawlinson
GPG Key ID: E0959FEA8B550539
1 changed files with 20 additions and 19 deletions

View File

@ -1,8 +1,9 @@
# Maintainer: George Rawlinson <grawlinson@archlinux.org> # Maintainer: George Rawlinson <grawlinson@archlinux.org>
# Contributor: Jayson Reis <santosdosreis@gmail.com>
pkgname=commitizen pkgname=commitizen
pkgver=2.19.0 pkgver=2.19.0
pkgrel=1 pkgrel=2
pkgdesc="A tool for enforcing descriptive commit messages and version/changelog management" pkgdesc="A tool for enforcing descriptive commit messages and version/changelog management"
arch=('any') arch=('any')
url="https://github.com/commitizen-tools/commitizen" url="https://github.com/commitizen-tools/commitizen"
@ -20,31 +21,27 @@ depends=(
'python-argcomplete' 'python-argcomplete'
'python-prompt_toolkit' 'python-prompt_toolkit'
) )
makedepends=('python-pip' 'python-poetry') makedepends=(
#checkdepends=('python-pytest' 'python-pytest-mock' 'python-pytest-freezegun' 'python-pytest-regressions' 'git') 'python-pip'
optdepends=() 'python-build'
#checkdepends=( 'python-poetry'
# 'python-pytest' )
# 'python-pytest-mock'
#)
source=("$pkgname-$pkgver.tar.gz::$url/archive//v$pkgver.tar.gz") source=("$pkgname-$pkgver.tar.gz::$url/archive//v$pkgver.tar.gz")
b2sums=('1e9781b9d599906d74cd171cbc80b93c63d9ffb6ace606baa07102e5e8b80b9f9db7c4dea6807cdce7535b0ea8382d3683307d252356b32578c9a6b9f07a2dd8') b2sums=('1e9781b9d599906d74cd171cbc80b93c63d9ffb6ace606baa07102e5e8b80b9f9db7c4dea6807cdce7535b0ea8382d3683307d252356b32578c9a6b9f07a2dd8')
#prepare() { prepare () {
#cd "$pkgname-$pkgver" cd "$pkgname-$pkgver"
# Skip test that checks the root folder of the repo but as we download the tar ball
# it would detect aur as its root
#sed -i'' 's/test_find_git_project_root/skip_find_git_project_root/' tests/test_conf.py
#}
#check() { # create completions
# cd "$pkgname-$pkgver" mkdir completions
# pytest tests/ register-python-argcomplete --shell bash cz > completions/bash
#} register-python-argcomplete --shell fish cz > completions/fish
}
build() { build() {
cd "$pkgname-$pkgver" cd "$pkgname-$pkgver"
poetry build --format wheel
python -m build --wheel --skip-dependency-check --no-isolation
} }
package() { package() {
@ -60,4 +57,8 @@ package() {
# license # license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
# shell completions
install -vDm644 completions/bash "$pkgdir/usr/share/bash-completion/completions/cz"
install -vDm644 completions/fish "$pkgdir/usr/share/fish/vendor_completions.d/cz.fish"
} }