Date: Thursday, April 13, 2023 @ 07:16:24
Author: polyzen
Revision: 1445513
upgpkg: gunicorn 20.1.0-6: Apply patch switching to importlib from setuptools
Works around this error from the aiohttp test suite:
E DeprecationWarning: pkg_resources is deprecated as an API
Modified:
gunicorn/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-13 06:55:01 UTC (rev 1445512)
+++ PKGBUILD 2023-04-13 07:16:24 UTC (rev 1445513)
@@ -10,7 +10,7 @@
arch=('any')
url='https://gunicorn.org/'
license=('MIT')
-depends=('python-setuptools')
+depends=('python')
optdepends=('python-eventlet: For asynchronous request handling with eventlet.'
'python-gevent: For asynchronous request handling with gevent.'
'python-tornado: For asynchronous request handling with tornado.'
@@ -18,9 +18,11 @@
checkdepends=('python-aiohttp' 'python-coverage' 'python-pytest'
'python-pytest-cov'
'python-eventlet' 'python-gevent' 'python-six')
source=("$pkgname-$pkgver.tar.gz::https://github.com/benoitc/$pkgname/archive/$pkgver.tar.gz"
-
"$pkgname-eventlet-0.30.3.patch::https://github.com/benoitc/gunicorn/commit/6a8ebb4844b2.patch")
+
"$pkgname-eventlet-0.30.3.patch::https://github.com/benoitc/$pkgname/commit/6a8ebb4844b2.patch"
+
"$pkgname-use-importlib.patch::https://github.com/benoitc/$pkgname/pull/2963/commits/3dc8ee5822191030feddf0ca925129a71bfb3166.patch")
sha512sums=('4fd905f62adc30e044cf2a56a1a77e14bc633258267d6bfbd4f6a68494f93f377e9fb9ed94fab7f11f9d7813857a680974a88c4b6bf97d4f1b74792a81810111'
-
'b9c11eab4725a05fffc21b74636518674139d458eb7267729cfbad5f96470600396f71faa1027160dd51e610d74ff785fc03e2d661837808062328a66d6a0442')
+
'b9c11eab4725a05fffc21b74636518674139d458eb7267729cfbad5f96470600396f71faa1027160dd51e610d74ff785fc03e2d661837808062328a66d6a0442'
+
'c617be6ba45b5c0731089c4204176c4677536ddd054303774353f3a6d43e7ec032e1afdad3465167b508cdf49590d11e065295417ac86c1177fc6c40e8997a26')
prepare() {
cd gunicorn-$pkgver
@@ -28,6 +30,7 @@
# https://github.com/benoitc/gunicorn/pull/2581
patch -Np1 -i ../$pkgname-eventlet-0.30.3.patch
+ patch -Np1 -i ../$pkgname-use-importlib.patch
}
build() {