[arch-commits] Commit in python-pytest-twisted/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Jul 22 05:59:39 UTC 2017
Date: Saturday, July 22, 2017 @ 05:59:38
Author: felixonmars
Revision: 245959
archrelease: copy trunk to community-any
Added:
python-pytest-twisted/repos/community-any/
python-pytest-twisted/repos/community-any/PKGBUILD
(from rev 245958, python-pytest-twisted/trunk/PKGBUILD)
----------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Copied: python-pytest-twisted/repos/community-any/PKGBUILD (from rev 245958, python-pytest-twisted/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2017-07-22 05:59:38 UTC (rev 245959)
@@ -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.5
+pkgrel=1
+pkgdesc='A twisted plugin for py.test'
+arch=('any')
+license=('BSD')
+url='http://github.com/schmir/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/schmir/pytest-twisted/archive/$pkgver.tar.gz")
+sha512sums=('f6bee0fff47c064040938aee93a8ba4f3cf88222895c58d44c304d7e93605a547bfeaed3dc8a0412d41b4e75193eb3fb9e25168b98527fcdb8cb5bf54a474225')
+
+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.6/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