[arch-commits] Commit in python-aspectlib/repos (2 files)

Felix Yan felixonmars at archlinux.org
Wed May 20 18:09:06 UTC 2020


    Date: Wednesday, May 20, 2020 @ 18:09:05
  Author: felixonmars
Revision: 630922

archrelease: copy trunk to community-testing-any

Added:
  python-aspectlib/repos/community-testing-any/
  python-aspectlib/repos/community-testing-any/PKGBUILD
    (from rev 630921, python-aspectlib/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: python-aspectlib/repos/community-testing-any/PKGBUILD (from rev 630921, python-aspectlib/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-05-20 18:09:05 UTC (rev 630922)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-aspectlib
+pkgver=1.5.0
+pkgrel=1
+pkgdesc="Development library for quickly writing configurable applications and daemons"
+arch=('any')
+license=('BSD')
+url="https://github.com/ionelmc/python-aspectlib"
+depends=('python-fields')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-tornado' 'python-process-tests'
+              'python-profilestats' 'python-pytest-runner') # 'mysql-python')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ionelmc/python-aspectlib/archive/v$pkgver.tar.gz")
+sha512sums=('313e383d44b8ebbfcb3e657512280ce8a0919dd4736dd058282788ea1c0711c6a33cb9ceecbc711368abda438be515a5579bbd4d31a629208e320be3e7e39381')
+
+prepare() {
+  cd python-aspectlib-$pkgver
+  sed -i 's/gen.Task/gen.coroutine/' tests/test_integrations_py3.py
+}
+
+build() {
+  cd python-aspectlib-$pkgver
+  python setup.py build
+}
+
+check() {
+  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() {
+  cd python-aspectlib-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list