[arch-commits] Commit in python-warlock/repos (2 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Dec 25 05:45:24 UTC 2016


    Date: Sunday, December 25, 2016 @ 05:45:23
  Author: bpiotrowski
Revision: 201834

archrelease: copy trunk to community-staging-any

Added:
  python-warlock/repos/community-staging-any/
  python-warlock/repos/community-staging-any/PKGBUILD
    (from rev 201833, python-warlock/trunk/PKGBUILD)

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Copied: python-warlock/repos/community-staging-any/PKGBUILD (from rev 201833, python-warlock/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 05:45:23 UTC (rev 201834)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-warlock
+pkgname=('python-warlock' 'python2-warlock')
+pkgver=1.3.0
+pkgrel=2
+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')
+
+prepare() {
+  cp -a warlock{,-py2}
+}
+
+build() {
+  cd "$srcdir"/warlock
+  python setup.py build
+
+  cd "$srcdir"/warlock-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/warlock
+  python setup.py ptr
+
+  cd "$srcdir"/warlock-py2
+  python2 setup.py ptr
+}
+
+package_python-warlock() {
+  depends=('python-jsonschema' 'python-jsonpatch' 'python-six')
+
+  cd warlock
+  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
+}



More information about the arch-commits mailing list