[arch-commits] Commit in python-astroid/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Mon Sep 21 06:01:29 UTC 2015
Date: Monday, September 21, 2015 @ 08:01:29
Author: fyan
Revision: 247021
upgpkg: python-astroid 1.3.8.20150919-1
Modified:
python-astroid/trunk/PKGBUILD
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++--------------------------
1 file changed, 28 insertions(+), 26 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-21 05:51:25 UTC (rev 247020)
+++ PKGBUILD 2015-09-21 06:01:29 UTC (rev 247021)
@@ -4,53 +4,55 @@
pkgbase=python-astroid
pkgname=('python2-astroid' 'python-astroid')
-pkgver=1.3.6
+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')
-checkdepends=('python-logilab-common' 'python2-logilab-common')
-source=("https://pypi.python.org/packages/source/a/astroid/astroid-${pkgver}.tar.gz")
-sha1sums=('bcf21cfa9891c70f63a9730b792ce9cf8ea3bb2b')
+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-${pkgver}{,-py3}
+ cp -a astroid{,-py2}
}
build() {
- cd astroid-${pkgver}
+ cd astroid
+ python setup.py build
+
+ cd ../astroid-py2
python2 setup.py build
-
- cd ../astroid-${pkgver}-py3
- python3 setup.py build
}
check() {
- cd astroid-${pkgver}
- PYTHONPATH="$PWD/../build/lib:$PYTHONPATH" python2 -Wi -m unittest discover -s build/lib/astroid/tests -p "unittest*.py"
+ cd astroid
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -Wi -m unittest discover -s build/lib/astroid/tests -p "unittest*.py"
- cd ../astroid-${pkgver}-py3
- 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-logilab-common' 'python2-six')
+ depends=('python2-six' 'python2-lazy-object-proxy' 'python2-wrapt' 'python2-singledispatch')
replaces=('python2-logilab-astng')
conflicts=('python2-logilab-astng')
- cd astroid-${pkgver}
+ cd astroid-py2
python2 setup.py install --optimize=1 --skip-build --prefix=/usr --root="${pkgdir}"
}
-
-package_python-astroid() {
- depends=('python-logilab-common' 'python-six')
- replaces=('python-logilab-astng')
- conflicts=('python-logilab-astng')
-
- cd astroid-${pkgver}-py3
-
- python3 setup.py install --optimize=1 --skip-build --prefix=/usr --root="${pkgdir}"
-}
More information about the arch-commits
mailing list