[arch-commits] Commit in python-werkzeug/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Feb 25 10:34:12 UTC 2020


    Date: Tuesday, February 25, 2020 @ 10:34:11
  Author: felixonmars
Revision: 580982

upgpkg: python-werkzeug 1.0.0-2: fix checkdepends and tests

Modified:
  python-werkzeug/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-25 10:33:19 UTC (rev 580981)
+++ PKGBUILD	2020-02-25 10:34:11 UTC (rev 580982)
@@ -6,12 +6,13 @@
 
 pkgname=('python-werkzeug' 'python2-werkzeug')
 pkgver=1.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Swiss Army knife of Python web development'
 url='http://werkzeug.pocoo.org/'
 arch=('any')
 license=('custom:BSD')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pytest' 'python2-pytest' 'python-requests' 'python2-requests' 'python-hypothesis' 'python2-hypothesis')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-timeout' 'python2-pytest-timeout' 'python-requests' 'python2-requests')
 source=("https://github.com/pallets/werkzeug/archive/${pkgver}.tar.gz")
 sha512sums=('bc6d61b078aebd92d79a68d2b040dc9cf0cb5a61fe9732861109324bd7f7be6e5fb9e2101f145429909d0e06a6435bd3b8d707022525c5236ba52776a315af2e')
 
@@ -32,10 +33,10 @@
 
 check() {
   cd "$srcdir/python-werkzeug-$pkgver"
-  python setup.py test
+  PYTHONPATH="$PWD/build/lib" pytest
 
   cd "$srcdir/python2-werkzeug-$pkgver"
-  python2 setup.py test
+  PYTHONPATH="$PWD/build/lib" pytest2
 }
 
 package_python-werkzeug() {



More information about the arch-commits mailing list