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

Antonio Rojas arojas at archlinux.org
Fri Nov 1 13:15:12 UTC 2019


    Date: Friday, November 1, 2019 @ 13:15:12
  Author: arojas
Revision: 521779

Fix tests with pytest 5

Modified:
  gunicorn/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-01 13:07:56 UTC (rev 521778)
+++ PKGBUILD	2019-11-01 13:15:12 UTC (rev 521779)
@@ -15,10 +15,15 @@
 checkdepends=('python2-mock' 'python-coverage' 'python2-coverage' 'python-pytest' 'python2-pytest'
               'python-pytest-cov' 'python2-pytest-cov' 'python-pytest-runner'
               'python2-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/benoitc/$pkgbase/archive/$pkgver.tar.gz")
-sha512sums=('8d1ff775dd5c1abb8bb4c80aecacb544382e38d101f105fd0fd7eb6bf98ecb663dd533d16e7b1741d6e5ef0eb12a707ab90e0a7751356e625725f076b4dc1a30')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/benoitc/$pkgbase/archive/$pkgver.tar.gz"
+         gunicorn-pytest5.patch)
+sha512sums=('8d1ff775dd5c1abb8bb4c80aecacb544382e38d101f105fd0fd7eb6bf98ecb663dd533d16e7b1741d6e5ef0eb12a707ab90e0a7751356e625725f076b4dc1a30'
+            'c14fe17b247567ae096ffb1522b9dd424a2e29f3cabf2b4d8ae3b84bf17d9b1ad4abf25df2f2eed884fc931087879c6ce68c160f4f7f7074afb913cbe56546dc')
 
 prepare() {
+  (cd gunicorn-$pkgver
+   patch -p1 -i ../gunicorn-pytest5.patch # Fix test failures with pytest 5
+  )
   sed -e 's/==/>=/' -e 's/,<.*$//' -i gunicorn-$pkgver/requirements_test.txt
   cp -a gunicorn-$pkgver{,-py2}
 }



More information about the arch-commits mailing list