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

Felix Yan felixonmars at archlinux.org
Wed May 20 18:08:50 UTC 2020


    Date: Wednesday, May 20, 2020 @ 18:08:50
  Author: felixonmars
Revision: 630921

upgpkg: python-aspectlib 1.5.0-1

Modified:
  python-aspectlib/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-20 18:03:29 UTC (rev 630920)
+++ PKGBUILD	2020-05-20 18:08:50 UTC (rev 630921)
@@ -1,8 +1,8 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-aspectlib
-pkgver=1.4.2
-pkgrel=6
+pkgver=1.5.0
+pkgrel=1
 pkgdesc="Development library for quickly writing configurable applications and daemons"
 arch=('any')
 license=('BSD')
@@ -10,18 +10,24 @@
 depends=('python-fields')
 makedepends=('python-setuptools')
 checkdepends=('python-mock' 'python-tornado' 'python-process-tests'
-              'python-profilestats' 'python-pytest') # 'mysql-python')
+              'python-profilestats' 'python-pytest-runner') # 'mysql-python')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/ionelmc/python-aspectlib/archive/v$pkgver.tar.gz")
-sha512sums=('fadb90b625ce2faac8f6d29ee28efaee09b4338c3c516c79d9e8753b7fb2ff45e0033174c5c5302f47f1f9e332824f37d56667fb05e66f85b808e8aa3a086f57')
+sha512sums=('313e383d44b8ebbfcb3e657512280ce8a0919dd4736dd058282788ea1c0711c6a33cb9ceecbc711368abda438be515a5579bbd4d31a629208e320be3e7e39381')
 
+prepare() {
+  cd python-aspectlib-$pkgver
+  sed -i 's/gen.Task/gen.coroutine/' tests/test_integrations_py3.py
+}
+
 build() {
-  cd "$srcdir"/python-aspectlib-$pkgver
+  cd python-aspectlib-$pkgver
   python setup.py build
 }
 
 check() {
-  cd "$srcdir"/python-aspectlib-$pkgver
-  LC_CTYPE=en_US.UTF-8 py.test || warning "https://github.com/ionelmc/python-aspectlib/issues/11"
+  cd python-aspectlib-$pkgver
+  # https://github.com/ionelmc/python-aspectlib/issues/15
+  python setup.py pytest --addopts '--deselect tests/test_integrations_py3.py::test_decorate_tornado_coroutine'
 }
 
 package() {



More information about the arch-commits mailing list