Date: Monday, February 18, 2019 @ 06:12:04 Author: yan12125 Revision: 434211
upgpkg: python-klein 17.10.0-3 * Python 2 removal https://www.archlinux.org/todo/die-python2-die/ * HTTPS in URLs https://www.archlinux.org/todo/use-https-in-the-url-field/ Modified: python-klein/trunk/PKGBUILD ----------+ PKGBUILD | 36 ++++++++---------------------------- 1 file changed, 8 insertions(+), 28 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-02-18 03:10:01 UTC (rev 434210) +++ PKGBUILD 2019-02-18 06:12:04 UTC (rev 434211) @@ -1,52 +1,32 @@ # Maintainer: Chih-Hsuan Yen <[email protected]> # Contributor: xRemaLx <[email protected]> -pkgbase=python-klein -pkgname=(python-klein python2-klein) +pkgname=python-klein pkgver=17.10.0 -pkgrel=2 +pkgrel=3 arch=(any) pkgdesc='A web micro-framework built on werkzeug and twisted.web' url='https://github.com/twisted/klein' license=(MIT) -makedepends=(python-setuptools python-incremental python-six python-twisted python-werkzeug - python2-setuptools python2-incremental python2-six python2-twisted python2-werkzeug) -checkdepends=(python-mock python-pytest python2-mock python2-pytest) -source=("$pkgbase-$pkgver.tar.gz::https://github.com/twisted/klein/archive/release-$pkgver.tar.gz") +# incremental is listed in both setup_requires and install_requires +depends=(python python-incremental python-six python-twisted python-werkzeug) +makedepends=(python-setuptools python-incremental) +checkdepends=(python-mock python-pytest) +source=("$pkgname-$pkgver.tar.gz::https://github.com/twisted/klein/archive/release-$pkgver.tar.gz") sha512sums=('611379159d8c06e2e6a63301d6745084f636669043a4acc15334e4ac4b745581a49d83383786e7ddb549b35f6941c9ccd5be35a27372998a6962cb8271eab8dc') -prepare() { - cp -a klein-release-$pkgver{,-py2} -} - build() { cd "$srcdir"/klein-release-$pkgver python setup.py build - - cd "$srcdir"/klein-release-$pkgver-py2 - python2 setup.py build } check() { cd "$srcdir"/klein-release-$pkgver pytest -v - - cd "$srcdir"/klein-release-$pkgver-py2 - pytest2 -v } -package_python-klein() { - depends=(python-incremental python-six python-twisted python-werkzeug) - +package() { cd klein-release-$pkgver python setup.py install --root="$pkgdir" --optimize=1 --skip-build install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname } - -package_python2-klein() { - depends=(python2-incremental python2-six python2-twisted python2-werkzeug) - - cd klein-release-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname -}
