2021-07-24 10:00:43 +00:00
|
|
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=commitizen
|
2021-09-27 06:52:06 +00:00
|
|
|
pkgver=2.18.2
|
2021-07-24 10:00:43 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A tool for enforcing descriptive commit messages and version/changelog management"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/commitizen-tools/commitizen"
|
|
|
|
license=('MIT')
|
|
|
|
depends=(
|
|
|
|
'python'
|
2021-08-14 02:09:50 +00:00
|
|
|
'python-questionary'
|
|
|
|
'python-decli'
|
2021-07-24 10:00:43 +00:00
|
|
|
'python-colorama'
|
|
|
|
'python-termcolor'
|
|
|
|
'python-packaging'
|
|
|
|
'python-tomlkit'
|
|
|
|
'python-jinja'
|
|
|
|
'python-pyaml'
|
|
|
|
'python-argcomplete'
|
|
|
|
'python-prompt_toolkit'
|
|
|
|
)
|
|
|
|
makedepends=('python-pip' 'python-poetry')
|
|
|
|
#checkdepends=('python-pytest' 'python-pytest-mock' 'python-pytest-freezegun' 'python-pytest-regressions' 'git')
|
|
|
|
optdepends=()
|
|
|
|
#checkdepends=(
|
|
|
|
# 'python-pytest'
|
|
|
|
# 'python-pytest-mock'
|
|
|
|
#)
|
|
|
|
source=("$pkgname-$pkgver.tar.gz::$url/archive//v$pkgver.tar.gz")
|
2021-09-27 06:52:06 +00:00
|
|
|
b2sums=('7cb9bf8ee0d3770cbe92b6ae6f1b96247b9240472022a917416d777dbb7e10d7548d387b9590c8160f0e765cec5210a3e6a2546d8403c1041921bc1fce1cb5ad')
|
2021-07-24 10:00:43 +00:00
|
|
|
|
|
|
|
#prepare() {
|
|
|
|
#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() {
|
|
|
|
# cd "$pkgname-$pkgver"
|
|
|
|
# pytest tests/
|
|
|
|
#}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
poetry build --format wheel
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
|
|
|
PIP_CONFIG_FILE=/dev/null pip \
|
|
|
|
install \
|
|
|
|
--isolated \
|
|
|
|
--root="$pkgdir" \
|
|
|
|
--ignore-installed \
|
|
|
|
--no-deps \
|
|
|
|
dist/*.whl
|
2021-08-14 02:09:50 +00:00
|
|
|
|
2021-07-24 10:00:43 +00:00
|
|
|
# license
|
|
|
|
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
|
|
|
}
|