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

Felix Yan fyan at archlinux.org
Wed Apr 22 07:05:26 UTC 2015


    Date: Wednesday, April 22, 2015 @ 09:05:26
  Author: fyan
Revision: 131891

archrelease: copy trunk to community-testing-any

Added:
  python-paste/repos/community-testing-any/
  python-paste/repos/community-testing-any/PKGBUILD
    (from rev 131890, python-paste/trunk/PKGBUILD)

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

Copied: python-paste/repos/community-testing-any/PKGBUILD (from rev 131890, python-paste/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2015-04-22 07:05:26 UTC (rev 131891)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: David Campbell <davekong at archlinux.us>
+# Contributor: Cilyan Olowen <gaknar at gmail.com>
+
+pkgbase=python-paste
+pkgname=(python-paste python2-paste)
+pkgver=2.0
+pkgrel=1
+pkgdesc="Tools for using a Web Server Gateway Interface stack"
+arch=('any')
+url="http://pythonpaste.org/index.html"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
+checkdepends=('python-nose' 'python2-nose')
+optdepends=('python2-flup: WSGI utilities'
+            'python-openid: Support for OpenID')
+source=("http://pypi.python.org/packages/source/P/Paste/Paste-${pkgver}.tar.gz")
+md5sums=('8c7d5909c24a78b785720af73b5211a5')
+
+prepare() {
+  cp -a Paste-${pkgver}{,-py2}
+
+  cd Paste-${pkgver}-py2
+  sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+         -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+      $(find . -name '*.py')
+}
+
+build() {
+  cd "$srcdir/Paste-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/Paste-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/Paste-${pkgver}"
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests3 || warning "Tests failed under Python 3"
+
+  cd "$srcdir/Paste-${pkgver}-py2"
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests2
+}
+
+package_python-paste() {
+  depends=('python-six')
+
+  cd Paste-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1
+
+  install -Dm644 docs/license.txt "${pkgdir}/usr/share/licenses/$pkgname/license.txt"
+  chmod 644 "${pkgdir}"/usr/lib/python*/site-packages/paste/evalexception/media/MochiKit.packed.js
+}
+
+package_python2-paste() {
+  depends=('python2-six')
+
+  cd Paste-${pkgver}-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+
+  install -Dm644 docs/license.txt "${pkgdir}/usr/share/licenses/$pkgname/license.txt"
+  chmod 644 "${pkgdir}"/usr/lib/python*/site-packages/paste/evalexception/media/MochiKit.packed.js
+}



More information about the arch-commits mailing list