upgpkg: python-commitizen 2.33.0-1

* New upstream release.
* Add tests.
This commit is contained in:
George Rawlinson 2022-09-16 00:24:28 +00:00
parent 3f1f971a39
commit de8040f027
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -3,8 +3,8 @@
pkgname=python-commitizen pkgname=python-commitizen
_pkgname="${pkgname#python-}" _pkgname="${pkgname#python-}"
pkgver=2.32.7 pkgver=2.33.0
pkgrel=2 pkgrel=1
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'
@ -29,9 +29,16 @@ makedepends=(
'python-poetry-core' 'python-poetry-core'
'python-installer' 'python-installer'
) )
checkdepends=(
'python-pytest'
'python-pytest-freezegun'
'python-pytest-mock'
'python-pytest-regressions'
'python-typing_extensions'
)
provides=('cz' 'git-cz') provides=('cz' 'git-cz')
conflicts=('nodejs-commitizen' 'commitizen-go') conflicts=('nodejs-commitizen' 'commitizen-go')
_commit='20bcbc4bce1ed4995aa83694706524cf43f50df9' _commit='0e026d4dd9b131059a8318f320fd74cfb2cdfd62'
source=("$pkgname::git+$url.git#commit=$_commit") source=("$pkgname::git+$url.git#commit=$_commit")
b2sums=('SKIP') b2sums=('SKIP')
@ -59,6 +66,19 @@ build() {
--no-isolation --no-isolation
} }
check() {
cd "$pkgname"
# setup git
git config --global user.email "builder@domain.tld"
git config --global user.name "Builder"
pytest -vvv tests \
--deselect tests/test_bump_create_commit_message.py::test_bump_pre_commit_changelog[True] \
--deselect tests/test_bump_create_commit_message.py::test_bump_pre_commit_changelog_fails_always[True] \
--deselect tests/test_bump_create_commit_message.py::test_bump_pre_commit_changelog_fails_always[False]
}
package() { package() {
cd "$pkgname" cd "$pkgname"