[arch-commits] Commit in python-lazy-object-proxy/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 16:10:47 UTC 2019
Date: Friday, October 25, 2019 @ 16:10:47
Author: foutrelis
Revision: 365671
archrelease: copy trunk to staging-x86_64
Added:
python-lazy-object-proxy/repos/staging-x86_64/
python-lazy-object-proxy/repos/staging-x86_64/PKGBUILD
(from rev 365670, python-lazy-object-proxy/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-lazy-object-proxy/repos/staging-x86_64/PKGBUILD (from rev 365670, python-lazy-object-proxy/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-10-25 16:10:47 UTC (rev 365671)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-lazy-object-proxy
+pkgname=(python-lazy-object-proxy python2-lazy-object-proxy)
+pkgver=1.4.2
+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=('b66238baf856b0d73c28404e6061612c5a28539c0b94b151776538ade66948e3')
+
+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.8:$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