[arch-commits] Commit in python-lazr.config/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Sun Nov 15 21:53:16 UTC 2020


    Date: Sunday, November 15, 2020 @ 21:53:16
  Author: dvzrv
Revision: 754799

Prepare for python 3.9.0.

Directly run nosetests in check() to circumvent bizarre test failures.
Remove unused and unneeded checkdepends.

Modified:
  python-lazr.config/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-15 21:53:15 UTC (rev 754798)
+++ PKGBUILD	2020-11-15 21:53:16 UTC (rev 754799)
@@ -10,16 +10,21 @@
 license=('LGPL3')
 depends=('python-lazr.delegates' 'python-zope-interface')
 makedepends=('python-setuptools')
-checkdepends=('python-nose' 'python-coverage' 'python-tox')
+checkdepends=('python-nose')
 provides=('python-lazr-config')
 replaces=('python-lazr-config')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc})
 sha512sums=('3427d2be4b4763238bd8378ec5936d38d0b944074d56f6ada55d0e3f232fe0846630a0ef3900c169b58092d029297d7c937ea4ad349aaa2745ed25b71df9c7a0'
             'SKIP')
+b2sums=('5bfee9ae556e6b4109fa43ca36cc2676fb805dc6b9d9f788224ccd29e7836313affa55dd031496c2a252c5e64b150fd8f21c2934da3699ba95e0968ee8022879'
+        'SKIP')
 validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B')
 
 prepare() {
   mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  # we do not care about coverage in testing
+  sed -e '/coverage/d' -i setup.cfg
 }
 
 build() {
@@ -29,10 +34,7 @@
 
 check() {
   cd "$pkgname-$pkgver"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  # TODO: this is ugly, but tests won't run either with pytest nor using nose
-  # directly for some reason, due to coverage import errors
-  tox -e py39 </dev/null
+  nosetests -P lazr
 }
 
 package() {



More information about the arch-commits mailing list