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

Felix Yan felixonmars at archlinux.org
Mon Jul 23 15:44:06 UTC 2018


    Date: Monday, July 23, 2018 @ 15:44:06
  Author: felixonmars
Revision: 363061

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pytest-twisted/repos/community-staging-any/PKGBUILD (from rev 363060, python-pytest-twisted/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-23 15:44:06 UTC (rev 363061)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-twisted
+pkgname=('python-pytest-twisted' 'python2-pytest-twisted')
+pkgver=1.8
+pkgrel=2
+pkgdesc='A twisted plugin for py.test'
+arch=('any')
+license=('BSD')
+url='https://github.com/pytest-dev/pytest-twisted'
+makedepends=('python-pytest' 'python2-pytest' 'python-greenlet' 'python2-greenlet'
+             'python-decorator' 'python2-decorator' 'python-twisted' 'python2-twisted')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-twisted/archive/$pkgver.tar.gz")
+sha512sums=('7d71aa53f209f9b8e835288f88fcb754ac18a4eeaae986a1e4474035a402315791280d5f05223e49a352ac186f910f3b5e686827565d72a700fb3f317126bc5f')
+
+prepare() {
+  cp -a pytest-twisted-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/pytest-twisted-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/pytest-twisted-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd "$srcdir"/pytest-twisted-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.7/site-packages:$PYTHONPATH" py.test
+
+  cd "$srcdir"/pytest-twisted-$pkgver-py2
+  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
+}
+
+package_python-pytest-twisted() {
+  depends=('python-pytest' 'python-greenlet' 'python-decorator' 'python-twisted')
+
+  cd pytest-twisted-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-pytest-twisted() {
+  depends=('python2-pytest' 'python2-greenlet' 'python2-decorator' 'python2-twisted')
+
+  cd pytest-twisted-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list