[arch-commits] Commit in (4 files)
Felix Yan
fyan at archlinux.org
Mon Sep 21 04:11:17 UTC 2015
Date: Monday, September 21, 2015 @ 06:11:17
Author: fyan
Revision: 141337
addpkg: python-wrapt 1.10.5-2
Added:
python-wrapt/
python-wrapt/repos/
python-wrapt/trunk/
python-wrapt/trunk/PKGBUILD
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Added: python-wrapt/trunk/PKGBUILD
===================================================================
--- python-wrapt/trunk/PKGBUILD (rev 0)
+++ python-wrapt/trunk/PKGBUILD 2015-09-21 04:11:17 UTC (rev 141337)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Troy C < rstrox -ta yahoo -tod com >
+
+pkgbase=python-wrapt
+pkgname=(python-wrapt python2-wrapt)
+pkgver=1.10.5
+pkgrel=2
+pkgdesc="A Python module for decorators, wrappers and monkey patching"
+arch=("i686" "x86_64")
+url="https://pypi.python.org/pypi/wrapt"
+license=("BSD")
+makedepends=('python' 'python2' 'git')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("git+https://github.com/GrahamDumpleton/wrapt.git#tag=$pkgver")
+sha256sums=('SKIP')
+
+prepare() {
+ cp -a wrapt{,-py2}
+}
+
+build() {
+ cd "$srcdir/wrapt"
+ python3 setup.py build
+
+ cd "$srcdir/wrapt-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/wrapt"
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH" py.test
+
+ cd "$srcdir/wrapt-py2"
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" py.test2
+}
+
+package_python-wrapt() {
+ depends=('python')
+
+ cd wrapt
+ python3 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-wrapt() {
+ depends=('python2')
+
+ cd wrapt
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
Property changes on: python-wrapt/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list