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

Felix Yan fyan at archlinux.org
Sat Sep 19 09:18:57 UTC 2015


    Date: Saturday, September 19, 2015 @ 11:18:57
  Author: fyan
Revision: 140703

archrelease: copy trunk to community-staging-any

Added:
  python-py/repos/community-staging-any/
  python-py/repos/community-staging-any/PKGBUILD
    (from rev 140702, python-py/trunk/PKGBUILD)

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

Copied: python-py/repos/community-staging-any/PKGBUILD (from rev 140702, python-py/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 09:18:57 UTC (rev 140703)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Sebastian Wiesner <lunaryorn googlemail com>
+# Contributor: Igor Ramos Tiburcio <irtigor at yahoo.com.br>
+# Contributor: Wieland Hoffmann <themineo+aur at gmail.com>
+# Contributor: Hervé Cauwelier <herve ¤ oursours.net>
+# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
+
+pkgbase=python-py
+pkgname=('python-py' 'python2-py')
+pkgver=1.4.30
+pkgrel=2
+pkgdesc="library with cross-python path, ini-parsing, io, code, log facilities"
+arch=('any')
+license=('MIT')
+url="http://pylib.readthedocs.org/en/latest/"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("http://pypi.python.org/packages/source/p/py/py-$pkgver.tar.gz")
+sha512sums=('dd9d92f8eaf8e5fc61bfb7feb4b07df5ae1745ebf88bcbe9d62589caa9e1f7d8beae5b2d20b407520919e47391cd50cf2d5323556fa5bd90a37e120b1d394d7a')
+
+prepare() {
+  cp -a py-${pkgver}{,-py2}
+}
+
+build() {
+  cd "$srcdir/py-${pkgver}"
+  python setup.py build
+
+  cd "$srcdir/py-${pkgver}-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/py-${pkgver}"
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" LANG=en_US.utf8 py.test
+
+  cd "$srcdir/py-${pkgver}-py2"
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" LANG=en_US.utf8 py.test2
+}
+
+package_python-py() {
+  depends=('python')
+
+  cd py-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-py() {
+  depends=('python2')
+
+  cd py-${pkgver}-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+



More information about the arch-commits mailing list