[arch-commits] Commit in python-astroid/repos (testing-any testing-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Dec 19 02:08:01 UTC 2016
Date: Monday, December 19, 2016 @ 02:08:01
Author: felixonmars
Revision: 284317
archrelease: copy trunk to testing-any
Added:
python-astroid/repos/testing-any/
python-astroid/repos/testing-any/PKGBUILD
(from rev 284316, python-astroid/trunk/PKGBUILD)
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Copied: python-astroid/repos/testing-any/PKGBUILD (from rev 284316, python-astroid/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2016-12-19 02:08:01 UTC (rev 284317)
@@ -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.4.9
+pkgrel=1
+pkgdesc="Useful miscellaneous modules used by Logilab projects"
+arch=('any')
+url="https://github.com/PyCQA/astroid"
+license=('LGPL')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'git'
+ 'python-lazy-object-proxy' 'python2-lazy-object-proxy' 'python-wrapt' 'python2-wrapt'
+ 'python2-singledispatch' 'python2-enum34')
+source=("git+https://github.com/PyCQA/astroid.git#tag=astroid-$pkgver")
+sha1sums=('SKIP')
+
+prepare() {
+ cp -a astroid{,-py2}
+}
+
+build() {
+ cd "$srcdir"/astroid
+ python setup.py build
+
+ cd "$srcdir"/astroid-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/astroid
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -Wi -m unittest discover -s build/lib/astroid/tests -p "unittest*.py"
+
+ cd "$srcdir"/astroid-py2
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -Wi -m unittest discover -s build/lib/astroid/tests -p "unittest*.py" || warning "Tests failed"
+}
+
+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'
+ 'python2-enum34')
+ 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