upgpkg: python-crontab 2.7.1-1

This commit is contained in:
George Rawlinson 2022-12-27 12:31:34 +13:00
parent a8c61fc1fb
commit c73f1df4f0
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -1,30 +1,44 @@
# Maintainer: George Rawlinson <grawlinson@archlinux.org> # Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=python-crontab pkgname=python-crontab
pkgver=2.6.0 pkgver=2.7.1
pkgrel=2 pkgrel=1
pkgdesc="A module for reading/writing crontab files & accessing the system cron" pkgdesc='A module for reading/writing crontab files & accessing the system cron'
arch=('any') arch=('any')
url="https://gitlab.com/doctormo/python-crontab" url='https://gitlab.com/doctormo/python-crontab'
license=('GPL3') license=('GPL3')
depends=('python' 'python-croniter' 'python-cron-descriptor') depends=('python' 'python-croniter' 'python-cron-descriptor')
makedepends=('python-setuptools') makedepends=(
source=("$pkgname-$pkgver.tar.gz::https://gitlab.com/doctormo/python-crontab/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz") 'git'
sha512sums=('24bccdc79d246f71e646b4f6c82bc66b73fbc38f2079176a2c8f0fdc5605196387ab5b542edd15acb34f9bae3c7c28b2eae05c9bff4ce01bd7ae30036caa5344') 'python-build'
b2sums=('f1595ad9ff0de971533e2d544acd1054dfbbcc90337c773777db562312eb8e5a904cbe09438c7b10453f47f3efdae834d4609e1810fefc98ee05e6c09baf8650') 'python-installer'
'python-wheel'
'python-setuptools'
)
_commit='ded8f0825922b524a5c63bdf5964f6be1760b766'
source=("$pkgname::git+$url#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
build() { build() {
cd "$pkgname-v$pkgver" cd "$pkgname"
python setup.py build
python -m build --wheel --no-isolation
} }
# requires usage of a deprecated lib (test.support) # requires usage of a deprecated lib (test.support)
#check() { check() {
# cd "$pkgname-v$pkgver" cd "$pkgname"
# PYTHONPATH="$(pwd):$PYTHONPATH" python -m unittest PYTHONPATH="$(pwd):$PYTHONPATH" python -m unittest
#} }
package() { package() {
cd "$pkgname-v$pkgver" cd "$pkgname"
python setup.py install --root="$pkgdir" --optimize=1
python -m installer --destdir="$pkgdir" dist/*.whl
} }