[arch-commits] Commit in python-ldap/trunk (PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Sat May 26 11:26:02 UTC 2018
Date: Saturday, May 26, 2018 @ 11:26:01
Author: foxboron
Revision: 330061
upgpkg: python-ldap 3.1.0-1
Updated to 3.1.0
Modified:
python-ldap/trunk/PKGBUILD
----------+
PKGBUILD | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-05-26 10:57:41 UTC (rev 330060)
+++ PKGBUILD 2018-05-26 11:26:01 UTC (rev 330061)
@@ -3,7 +3,7 @@
pkgbase=python-ldap
pkgname=(python-ldap python2-ldap)
-pkgver=3.0.0
+pkgver=3.1.0
pkgrel=1
pkgdesc="LDAP client API for Python"
url="http://python-ldap.readthedocs.io/"
@@ -12,8 +12,10 @@
makedepends=('python' 'python-setuptools'
'python2' 'python2-setuptools'
'python-coverage' 'python2-coverage')
+checkdepends=('openldap' 'python-pyasn1' 'python-pyasn1-modules'
+ 'python2-pyasn1' 'python2-pyasn1-modules')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/python-ldap/python-ldap/archive/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('c5ae7cb9575b59eb45df51dc77e755f2d584ee1ee8992b5a003dbb8732a922c3')
+sha256sums=('11a20a0bdb4661d5463e7d288ef1f46a2345d1ecdfd433a21aef7ff7e8263b41')
prepare() {
cp -a ${pkgbase}-${pkgbase}-$pkgver{,-py2}
@@ -27,15 +29,14 @@
python2 setup.py build
}
-# TODO: Next release
-#check(){
-# cd "$srcdir/$pkgbase-$pkgbase-$pkgver"
-# python -m coverage run --parallel setup.py test
-#
-# cd "$srcdir/$pkgbase-$pkgbase-$pkgver-py2"
-# python2 -m coverage run --parallel setup.py test
-#}
+check(){
+ cd "$srcdir/$pkgbase-$pkgbase-$pkgver"
+ python -m coverage run --parallel setup.py test
+ cd "$srcdir/$pkgbase-$pkgbase-$pkgver-py2"
+ python2 -m coverage run --parallel setup.py test
+}
+
package_python2-ldap() {
depends=('python2' 'python2-pyasn1' 'python2-pyasn1-modules' 'libldap')
cd "$srcdir/$pkgbase-$pkgbase-$pkgver-py2"
More information about the arch-commits
mailing list