[arch-commits] Commit in python-klein/repos/community-any (PKGBUILD PKGBUILD)

Chih-Hsuan Yen yan12125 at archlinux.org
Sat Jun 8 06:50:57 UTC 2019


    Date: Saturday, June 8, 2019 @ 06:50:56
  Author: yan12125
Revision: 478220

archrelease: copy trunk to community-any

Added:
  python-klein/repos/community-any/PKGBUILD
    (from rev 478219, python-klein/trunk/PKGBUILD)
Deleted:
  python-klein/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   71 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 39 insertions(+), 32 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-08 06:50:44 UTC (rev 478219)
+++ PKGBUILD	2019-06-08 06:50:56 UTC (rev 478220)
@@ -1,32 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-# Contributor: xRemaLx <anton.komolov at gmail.com>
-
-pkgname=python-klein
-pkgver=17.10.0
-pkgrel=3
-arch=(any)
-pkgdesc='A web micro-framework built on werkzeug and twisted.web'
-url='https://github.com/twisted/klein'
-license=(MIT)
-# 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')
-
-build() {
-  cd "$srcdir"/klein-release-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd "$srcdir"/klein-release-$pkgver
-  pytest -v
-}
-
-package() {
-  cd klein-release-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
-}

Copied: python-klein/repos/community-any/PKGBUILD (from rev 478219, python-klein/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-06-08 06:50:56 UTC (rev 478220)
@@ -0,0 +1,39 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+# Contributor: xRemaLx <anton.komolov at gmail.com>
+
+pkgname=python-klein
+pkgver=19.6.0
+pkgrel=1
+arch=(any)
+pkgdesc='A web micro-framework built on werkzeug and twisted.web'
+url='https://github.com/twisted/klein'
+license=(MIT)
+# incremental is listed in both setup_requires and install_requires
+depends=(python python-attrs python-hyperlink python-incremental python-six
+         python-tubes python-twisted python-werkzeug python-zope-interface)
+makedepends=(python-setuptools python-incremental)
+checkdepends=(python-hypothesis python-mock python-treq)
+source=("https://github.com/twisted/klein/archive/$pkgver/klein-$pkgver.tar.gz")
+sha512sums=('849631f121449556c33a45dcc5b909339730b50f224cd52aadd1e88b1cfe11ef67c03387ef2fc66517d56251001af161b72b518981d36246c741cc381750858f')
+
+prepare() {
+  cd klein-$pkgver
+  # https://github.com/twisted/klein/pull/286
+  sed -i '/"typing"/d' setup.py
+}
+
+build() {
+  cd klein-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd klein-$pkgver
+  PYTHONPATH=src trial3 klein
+}
+
+package() {
+  cd klein-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list