[arch-commits] Commit in python-astroid/repos (staging-any staging-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Mon Sep 21 06:01:44 UTC 2015


    Date: Monday, September 21, 2015 @ 08:01:44
  Author: fyan
Revision: 247022

archrelease: copy trunk to staging-any

Added:
  python-astroid/repos/staging-any/
  python-astroid/repos/staging-any/PKGBUILD
    (from rev 247021, python-astroid/trunk/PKGBUILD)

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

Copied: python-astroid/repos/staging-any/PKGBUILD (from rev 247021, python-astroid/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2015-09-21 06:01:44 UTC (rev 247022)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-astroid
+pkgname=('python2-astroid' 'python-astroid')
+pkgver=1.3.8.20150919
+_commit=21f676e1e04042dfebd0024161a2caaaaff72c53
+pkgrel=1
+pkgdesc="Useful miscellaneous modules used by Logilab projects"
+arch=('any')
+url="https://bitbucket.org/logilab/astroid"
+license=('LGPL')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'mercurial'
+             'python-lazy-object-proxy' 'python2-lazy-object-proxy' 'python-wrapt' 'python2-wrapt'
+             'python2-singledispatch')
+source=("hg+https://bitbucket.org/logilab/astroid#revision=$_commit")
+sha1sums=('SKIP')
+
+prepare() {
+  cp -a astroid{,-py2}
+}
+
+build() {
+  cd astroid
+  python setup.py build
+
+  cd ../astroid-py2
+  python2 setup.py build
+}
+
+check() {
+  cd astroid
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -Wi -m unittest discover -s build/lib/astroid/tests -p "unittest*.py"
+
+  cd ../astroid-py2
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -Wi -m unittest discover -s build/lib/astroid/tests -p "unittest*.py"
+}
+
+package_python-astroid() {
+  depends=('python-six' 'python-lazy-object-proxy' 'python-wrapt')
+  replaces=('python-logilab-astng')
+  conflicts=('python-logilab-astng')
+
+  cd astroid
+
+  python setup.py install --optimize=1 --skip-build --prefix=/usr --root="${pkgdir}"
+}
+
+package_python2-astroid() {
+  depends=('python2-six' 'python2-lazy-object-proxy' 'python2-wrapt' 'python2-singledispatch')
+  replaces=('python2-logilab-astng')
+  conflicts=('python2-logilab-astng')
+
+  cd astroid-py2
+
+  python2 setup.py install --optimize=1 --skip-build --prefix=/usr --root="${pkgdir}"
+}



More information about the arch-commits mailing list