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

Felix Yan felixonmars at archlinux.org
Fri Nov 13 22:02:42 UTC 2020


    Date: Friday, November 13, 2020 @ 22:02:42
  Author: felixonmars
Revision: 754030

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-tornado/repos/community-staging-any/
  python-pytest-tornado/repos/community-staging-any/PKGBUILD
    (from rev 754029, python-pytest-tornado/trunk/PKGBUILD)

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

Copied: python-pytest-tornado/repos/community-staging-any/PKGBUILD (from rev 754029, python-pytest-tornado/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-13 22:02:42 UTC (rev 754030)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-tornado
+pkgver=0.8.1
+pkgrel=2
+pkgdesc='A py.test plugin providing fixtures and markers to simplify testing of asynchronous tornado applications.'
+arch=('any')
+license=('Apache')
+url='https://github.com/eugeniy/pytest-tornado'
+depends=('python-pytest' 'python-tornado')
+makedepends=('python-setuptools')
+source=("https://github.com/eugeniy/pytest-tornado/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('e655ee9e28461c68b6cc642dbbb203a31154305a603951641e795c605f55970243bb9f7a8858a44bf70faba3d647bea6cf1525f2f9655a968cabbea43beec3d6')
+
+build() {
+  cd pytest-tornado-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd pytest-tornado-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" py.test
+}
+
+package() {
+  cd pytest-tornado-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list