upgpkg: python-croniter 1.3.8-1

This commit is contained in:
George Rawlinson 2022-11-23 20:47:27 +13:00
parent ddf394118f
commit 5b44523949
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -3,16 +3,22 @@
# Contributor: Thomas Andrejak <thomas.andrejak@gmail.com> # Contributor: Thomas Andrejak <thomas.andrejak@gmail.com>
pkgname=python-croniter pkgname=python-croniter
pkgver=1.3.7 pkgver=1.3.8
pkgrel=1 pkgrel=1
pkgdesc='Provides iteration for the datetime object with a cron like format' pkgdesc='Provides iteration for the datetime object with a cron like format'
arch=('any') arch=('any')
url='https://github.com/kiorky/croniter' url='https://github.com/kiorky/croniter'
license=('MIT') license=('MIT')
depends=('python' 'python-dateutil' 'python-natsort') depends=('python' 'python-dateutil' 'python-natsort')
makedepends=('git' 'python-setuptools') makedepends=(
'git'
'python-build'
'python-installer'
'python-wheel'
'python-setuptools'
)
checkdepends=('python-pytest' 'python-pytz') checkdepends=('python-pytest' 'python-pytz')
_commit='0e9c36de574b19ee87cc4aa18dc91828e947f0ba' _commit='ddbee2c6cbb2bd6ccbf73a9ef1e2e223fa0d6c73'
source=("$pkgname::git+$url.git#commit=$_commit") source=("$pkgname::git+$url.git#commit=$_commit")
b2sums=('SKIP') b2sums=('SKIP')
@ -25,23 +31,23 @@ pkgver() {
build() { build() {
cd "$pkgname" cd "$pkgname"
python setup.py build python -m build --wheel --no-isolation
} }
check() { check() {
cd "$pkgname" cd "$pkgname"
pytest pytest -v
} }
package() { package() {
cd "$pkgname" cd "$pkgname"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build python -m installer --destdir="$pkgdir" dist/*.whl
# license # license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" docs/LICENSE install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
# documentation # documentation
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.rst docs/CHANGES.rst install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" {README,CHANGELOG}.rst
} }