[arch-commits] Commit in gunicorn/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Fri Nov 1 23:55:57 UTC 2019
Date: Friday, November 1, 2019 @ 23:55:57
Author: arojas
Revision: 522112
Drop python2
Modified:
gunicorn/trunk/PKGBUILD
----------+
PKGBUILD | 41 +++++++----------------------------------
1 file changed, 7 insertions(+), 34 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-01 23:51:08 UTC (rev 522111)
+++ PKGBUILD 2019-11-01 23:55:57 UTC (rev 522112)
@@ -3,8 +3,7 @@
# Contributor: pumpkin <pumpkin at mailoo dot org>
# Contributor: Vsevolod Balashov <vsevolod at balashov dot name>
-pkgbase=gunicorn
-pkgname=(gunicorn python2-gunicorn)
+pkgname=gunicorn
pkgver=19.9.0
pkgrel=3
pkgdesc='WSGI HTTP Server for UNIX'
@@ -11,11 +10,11 @@
arch=('any')
url='https://gunicorn.org/'
license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
-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"
+depends=('python-setuptools')
+optdepends=('python-eventlet: For asynchronous request handling with eventlet.'
+ 'python-gevent: For asynchronous request handling with gevent.')
+checkdepends=('python-coverage' 'python-pytest' 'python-pytest-cov' 'python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/benoitc/$pkgbase/archive/$pkgver.tar.gz"
gunicorn-pytest5.patch)
sha512sums=('8d1ff775dd5c1abb8bb4c80aecacb544382e38d101f105fd0fd7eb6bf98ecb663dd533d16e7b1741d6e5ef0eb12a707ab90e0a7751356e625725f076b4dc1a30'
'c14fe17b247567ae096ffb1522b9dd424a2e29f3cabf2b4d8ae3b84bf17d9b1ad4abf25df2f2eed884fc931087879c6ce68c160f4f7f7074afb913cbe56546dc')
@@ -25,30 +24,19 @@
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}
}
build() {
cd "$srcdir"/gunicorn-$pkgver
python setup.py build
-
- cd "$srcdir"/gunicorn-$pkgver-py2
- python2 setup.py build
}
check() {
cd "$srcdir"/gunicorn-$pkgver
python setup.py pytest
-
- cd "$srcdir"/gunicorn-$pkgver-py2
- python2 setup.py pytest
}
-package_gunicorn() {
- depends=('python-setuptools')
- optdepends=('python-eventlet: For asynchronous request handling with eventlet.'
- 'python-gevent: For asynchronous request handling with gevent.')
-
+package() {
cd $pkgbase-$pkgver
python setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
rm -r "$pkgdir"/usr/bin/gunicorn_paster
@@ -55,19 +43,4 @@
install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-package_python2-gunicorn() {
- depends=('python2-setuptools')
- provides=('gunicorn-python2')
- conflicts=('gunicorn-python2')
- replaces=('gunicorn-python2')
- optdepends=('python2-eventlet: For asynchronous request handling with eventlet.'
- 'python2-gevent: For asynchronous request handling with gevent.')
-
- cd $pkgbase-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
- rm -r "$pkgdir"/usr/bin/gunicorn_paster
- mv "$pkgdir"/usr/bin/gunicorn "$pkgdir"/usr/bin/gunicorn-python2
- install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list