[arch-commits] Commit in python-wrapt/repos (4 files)

Felix Yan fyan at archlinux.org
Mon Apr 11 03:27:00 UTC 2016


    Date: Monday, April 11, 2016 @ 05:27:00
  Author: fyan
Revision: 264487

archrelease: copy trunk to extra-i686, extra-x86_64

Added:
  python-wrapt/repos/extra-i686/
  python-wrapt/repos/extra-i686/PKGBUILD
    (from rev 264486, python-wrapt/trunk/PKGBUILD)
  python-wrapt/repos/extra-x86_64/
  python-wrapt/repos/extra-x86_64/PKGBUILD
    (from rev 264486, python-wrapt/trunk/PKGBUILD)

-----------------------+
 extra-i686/PKGBUILD   |   52 ++++++++++++++++++++++++++++++++++++++++++++++++
 extra-x86_64/PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)

Copied: python-wrapt/repos/extra-i686/PKGBUILD (from rev 264486, python-wrapt/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2016-04-11 03:27:00 UTC (rev 264487)
@@ -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.8
+pkgrel=1
+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
+}

Copied: python-wrapt/repos/extra-x86_64/PKGBUILD (from rev 264486, python-wrapt/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2016-04-11 03:27:00 UTC (rev 264487)
@@ -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.8
+pkgrel=1
+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
+}



More information about the arch-commits mailing list