upgpkg: python-croniter 1.3.4-1
* New upstream release. * Switch source to git commit from pypi tarball.
This commit is contained in:
parent
e9d6d1bbaa
commit
4f94cfa18c
1 changed files with 18 additions and 10 deletions
|
@ -3,32 +3,40 @@
|
|||
# Contributor: Thomas Andrejak <thomas.andrejak@gmail.com>
|
||||
|
||||
pkgname=python-croniter
|
||||
_pkgname="${pkgname#python-}"
|
||||
pkgver=1.3.1
|
||||
pkgver=1.3.4
|
||||
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-dateutil' 'python-natsort')
|
||||
makedepends=('python-setuptools')
|
||||
depends=('python' 'python-dateutil' 'python-natsort')
|
||||
makedepends=('git' 'python-setuptools')
|
||||
checkdepends=('python-pytest' 'python-pytz')
|
||||
source=("$pkgname-$pkgver.tar.gz::https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
|
||||
sha512sums=('40b211fedddcaa5cdc1de4e34cb1343063c684b70ef404aa5f92ebdbbf6afcc1f511af9a52fc4eda42c3f27556a35059681ddad2cda6f6b3e1f334bea7c1e3ce')
|
||||
b2sums=('b6542e25878ea15c0fd1c48f8af485fa0f03809473a09fb95367134edd91a5d3b9053673589902e8c70faa372d096e2fbbbaf02d9ebd08982f2dd382ecebd8c5')
|
||||
_commit='6642a9bdbd335ef9fc52a92d99a7ba0d97db8ceb'
|
||||
source=("$pkgname::git+$url.git#commit=$_commit")
|
||||
b2sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$pkgname"
|
||||
|
||||
git describe --tags | sed 's/^v//'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$_pkgname-$pkgver"
|
||||
cd "$pkgname"
|
||||
|
||||
python setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$_pkgname-$pkgver"
|
||||
cd "$pkgname"
|
||||
|
||||
pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_pkgname-$pkgver"
|
||||
cd "$pkgname"
|
||||
|
||||
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
|
||||
|
||||
# license
|
||||
|
|
Loading…
Reference in a new issue