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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Dec 25 17:13:59 UTC 2016


    Date: Sunday, December 25, 2016 @ 17:13:58
  Author: bpiotrowski
Revision: 202051

archrelease: copy trunk to community-staging-any

Added:
  python-cached-property/repos/community-staging-any/
  python-cached-property/repos/community-staging-any/PKGBUILD
    (from rev 202050, python-cached-property/trunk/PKGBUILD)

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

Copied: python-cached-property/repos/community-staging-any/PKGBUILD (from rev 202050, python-cached-property/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 17:13:58 UTC (rev 202051)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-cached-property
+pkgname=('python-cached-property' 'python2-cached-property')
+pkgver=1.3.0
+pkgrel=2
+pkgdesc="A decorator for caching properties in classes"
+arch=('any')
+license=('BSD')
+url="https://github.com/pydanny/cached-property"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pytest' 'python2-pytest' 'python-freezegun' 'python2-freezegun')
+source=("git+https://github.com/pydanny/cached-property.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a cached-property{,-py2}
+}
+
+build() {
+  cd "$srcdir/cached-property"
+  python setup.py build
+
+  cd "$srcdir/cached-property-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/cached-property"
+  py.test
+
+  cd "$srcdir/cached-property-py2"
+  py.test2
+}
+
+package_python-cached-property() {
+  depends=('python')
+
+  cd cached-property
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-cached-property() {
+  depends=('python2')
+
+  cd cached-property-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list