[arch-commits] Commit in python-lazy-object-proxy/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Jul 8 17:16:30 UTC 2018


    Date: Sunday, July 8, 2018 @ 17:16:29
  Author: felixonmars
Revision: 328101

archrelease: copy trunk to community-staging-x86_64

Added:
  python-lazy-object-proxy/repos/community-staging-x86_64/
  python-lazy-object-proxy/repos/community-staging-x86_64/PKGBUILD
    (from rev 328100, python-lazy-object-proxy/trunk/PKGBUILD)

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

Copied: python-lazy-object-proxy/repos/community-staging-x86_64/PKGBUILD (from rev 328100, python-lazy-object-proxy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-07-08 17:16:29 UTC (rev 328101)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-lazy-object-proxy
+pkgname=(python-lazy-object-proxy python2-lazy-object-proxy)
+pkgver=1.3.1
+pkgrel=2
+pkgdesc='A fast and thorough lazy object proxy'
+arch=('x86_64')
+url="https://github.com/ionelmc/python-lazy-object-proxy"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-benchmark' 'python2-pytest-benchmark')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/ionelmc/python-lazy-object-proxy/archive/v$pkgver.tar.gz")
+sha256sums=('b315bc589ac934feb81c954424b501bf56afdbf7851918be4261c2ccdbb14ea7')
+
+prepare() {
+  cp -a python-lazy-object-proxy-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/python-lazy-object-proxy-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/python-lazy-object-proxy-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/python-lazy-object-proxy-$pkgver
+  LC_CTYPE=en_US.UTF-8 PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.7:$PYTHONPATH" py.test --ignore=src
+
+  cd "$srcdir"/python-lazy-object-proxy-$pkgver-py2
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" py.test2 --ignore=src
+}
+
+package_python-lazy-object-proxy() {
+  depends=("python")
+
+  cd python-lazy-object-proxy-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-lazy-object-proxy() {
+  depends=("python2")
+
+  cd python-lazy-object-proxy-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list