[arch-commits] Commit in python-astroid/trunk (PKGBUILD)
Felix Yan
fyan at nymeria.archlinux.org
Fri May 16 17:14:25 UTC 2014
Date: Friday, May 16, 2014 @ 19:14:25
Author: fyan
Revision: 212889
upgpkg: python-astroid 1.1.1-1
Modified:
python-astroid/trunk/PKGBUILD
----------+
PKGBUILD | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-05-16 17:12:25 UTC (rev 212888)
+++ PKGBUILD 2014-05-16 17:14:25 UTC (rev 212889)
@@ -3,15 +3,16 @@
pkgbase=python-astroid
pkgname=('python2-astroid' 'python-astroid')
-pkgver=1.1.0
+pkgver=1.1.1
pkgrel=1
pkgdesc="Useful miscellaneous modules used by Logilab projects"
arch=('any')
url="https://bitbucket.org/logilab/astroid"
license=('LGPL')
-makedepends=('python2' 'python')
+makedepends=('python' 'python2')
+checkdepends=('python-logilab-common' 'python2-logilab-common')
source=(https://pypi.python.org/packages/source/a/astroid/astroid-${pkgver}.tar.gz)
-sha1sums=('5565888ff76ddd1a14b952a5e3b651ebe08edd56')
+sha1sums=('ff7b70669933702c7196f08e694afd552032c454')
prepare() {
cp -a astroid-${pkgver}{,-py3}
@@ -25,6 +26,16 @@
python3 setup.py build
}
+check() {
+ # must be ran in target system, how?
+
+ cd astroid-${pkgver}/test
+ #python2 -m unittest discover -p "unittest*.py"
+
+ cd ../../astroid-${pkgver}-py3/test
+ #python -m unittest discover -p "unittest*.py"
+}
+
package_python2-astroid() {
depends=('python2' 'python2-logilab-common')
replaces=('python2-logilab-astng')
@@ -33,9 +44,6 @@
cd astroid-${pkgver}
python2 setup.py install --optimize=1 --skip-build --prefix=/usr --root="${pkgdir}"
-
- # fix permissions ...
- #find "${pkgdir}" -type f -exec chmod +r {} \;
}
package_python-astroid() {
@@ -46,7 +54,4 @@
cd astroid-${pkgver}-py3
python3 setup.py install --optimize=1 --skip-build --prefix=/usr --root="${pkgdir}"
-
- # fix permissions ...
- #find "${pkgdir}" -type f -exec chmod +r {} \;
}
More information about the arch-commits
mailing list