Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
python-ldap3


Commits:
cecffdf5 by Jelle van der Waa at 2024-05-16T13:48:07+02:00
upgpkg: 2.9.1-6: Run tests with unittest runner

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,11 +1,10 @@
 pkgbase = python-ldap3
        pkgdesc = A strictly RFC 4510 conforming LDAP V3 pure Python client 
library
        pkgver = 2.9.1
-       pkgrel = 5
+       pkgrel = 6
        url = https://github.com/cannatag/ldap3
        arch = any
        license = LGPL
-       checkdepends = python-nose
        makedepends = python-setuptools
        depends = python-pyasn1
        source = 
python-ldap3-2.9.1.tar.gz::https://github.com/cannatag/ldap3/archive/v2.9.1.tar.gz


=====================================
PKGBUILD
=====================================
@@ -4,17 +4,23 @@
 
 pkgname=python-ldap3
 pkgver=2.9.1
-pkgrel=5
+pkgrel=6
 pkgdesc="A strictly RFC 4510 conforming LDAP V3 pure Python client library"
 url="https://github.com/cannatag/ldap3";
 license=('LGPL')
 arch=('any')
 depends=('python-pyasn1')
 makedepends=('python-setuptools')
-checkdepends=('python-nose')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/cannatag/ldap3/archive/v$pkgver.tar.gz";)
 
sha512sums=('bf07ebca9a53a8c225bc3106d3bd45eb26557c6e5a3d6d45a7f8c149d938ad43825eed0d406a57b93e2e675ed7aa262828f022ab82eb683f0e3029e3ad823106')
 
+prepare() {
+  cd "$srcdir"/ldap3-$pkgver
+  # Remove test should be run with a server but is not marked as such
+  # https://github.com/cannatag/ldap3/issues/1145
+  rm test/testLDIF-change.py
+}
+
 build() {
   cd "$srcdir"/ldap3-$pkgver
   python setup.py build
@@ -22,7 +28,8 @@ build() {
 
 check() {
   cd "$srcdir"/ldap3-$pkgver
-  nosetests3 -s test || echo "Tests require a running LDAP server"
+  export SERVER="NONE"
+  python -m unittest discover -vs .
 }
 
 package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-ldap3/-/commit/cecffdf54e8b4b86655085b20c765084aaf5de2a

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-ldap3/-/commit/cecffdf54e8b4b86655085b20c765084aaf5de2a
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to