Date: Sunday, June 23, 2019 @ 03:00:15 Author: felixonmars Revision: 482847
upgpkg: python-warlock 1.3.3-1 Modified: python-warlock/trunk/PKGBUILD ----------+ PKGBUILD | 44 ++++++++++++-------------------------------- 1 file changed, 12 insertions(+), 32 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-06-23 02:59:52 UTC (rev 482846) +++ PKGBUILD 2019-06-23 03:00:15 UTC (rev 482847) @@ -1,49 +1,29 @@ # Maintainer: Felix Yan <[email protected]> -pkgbase=python-warlock -pkgname=('python-warlock' 'python2-warlock') -pkgver=1.3.0 -pkgrel=3 +pkgname=python-warlock +pkgver=1.3.3 +pkgrel=1 pkgdesc="Python object model built on JSON schema and JSON patch." arch=('any') license=('Apache') url="https://github.com/bcwaldon/warlock" -makedepends=('python-setuptools' 'python2-setuptools' 'python-jsonschema' 'python2-jsonschema' - 'python-jsonpatch' 'python2-jsonpatch' 'python-six' 'python2-six' 'git') -checkdepends=('python-pytest-runner' 'python2-pytest-runner') -source=("git+https://github.com/bcwaldon/warlock.git#tag=v$pkgver") -sha512sums=('SKIP') +depends=('python-jsonschema' 'python-jsonpatch' 'python-six') +makedepends=('python-setuptools') +checkdepends=('python-pytest-runner' 'python-pytest-cov') +source=("$pkgname-$pkgver.tar.gz::https://github.com/bcwaldon/warlock/archive/$pkgver.tar.gz") +sha512sums=('8a9135a17ccc0d0939ad98eee16100ec68b911d672b3af549f7629edcd6e08129f9e4ab707082593274fc896bc405ab6d6ba9e4bf6fc40b8522ec99327c983ec') -prepare() { - cp -a warlock{,-py2} -} - build() { - cd "$srcdir"/warlock + cd warlock-$pkgver python setup.py build - - cd "$srcdir"/warlock-py2 - python2 setup.py build } check() { - cd "$srcdir"/warlock + cd warlock-$pkgver python setup.py pytest - - cd "$srcdir"/warlock-py2 - python2 setup.py pytest } -package_python-warlock() { - depends=('python-jsonschema' 'python-jsonpatch' 'python-six') - - cd warlock +package() { + cd warlock-$pkgver python setup.py install --root="$pkgdir" --optimize=1 } - -package_python2-warlock() { - depends=('python2-jsonschema' 'python2-jsonpatch' 'python2-six') - - cd warlock-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 -}
