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