upgpkg: python-croniter 1.3.4-1

* New upstream release.
* Switch source to git commit from pypi tarball.
This commit is contained in:
George Rawlinson 2022-02-23 08:04:42 +00:00
parent e9d6d1bbaa
commit 4f94cfa18c
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -3,32 +3,40 @@
# Contributor: Thomas Andrejak <thomas.andrejak@gmail.com> # Contributor: Thomas Andrejak <thomas.andrejak@gmail.com>
pkgname=python-croniter pkgname=python-croniter
_pkgname="${pkgname#python-}" pkgver=1.3.4
pkgver=1.3.1
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-dateutil' 'python-natsort') depends=('python' 'python-dateutil' 'python-natsort')
makedepends=('python-setuptools') makedepends=('git' 'python-setuptools')
checkdepends=('python-pytest' 'python-pytz') checkdepends=('python-pytest' 'python-pytz')
source=("$pkgname-$pkgver.tar.gz::https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz") _commit='6642a9bdbd335ef9fc52a92d99a7ba0d97db8ceb'
sha512sums=('40b211fedddcaa5cdc1de4e34cb1343063c684b70ef404aa5f92ebdbbf6afcc1f511af9a52fc4eda42c3f27556a35059681ddad2cda6f6b3e1f334bea7c1e3ce') source=("$pkgname::git+$url.git#commit=$_commit")
b2sums=('b6542e25878ea15c0fd1c48f8af485fa0f03809473a09fb95367134edd91a5d3b9053673589902e8c70faa372d096e2fbbbaf02d9ebd08982f2dd382ecebd8c5') b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
build() { build() {
cd "$_pkgname-$pkgver" cd "$pkgname"
python setup.py build python setup.py build
} }
check() { check() {
cd "$_pkgname-$pkgver" cd "$pkgname"
pytest pytest
} }
package() { package() {
cd "$_pkgname-$pkgver" cd "$pkgname"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build python setup.py install --root="$pkgdir" --optimize=1 --skip-build
# license # license