[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Sat Jul 22 05:59:23 UTC 2017


    Date: Saturday, July 22, 2017 @ 05:59:22
  Author: felixonmars
Revision: 245958

addpkg: python-pytest-twisted 1.5-1

Added:
  python-pytest-twisted/
  python-pytest-twisted/repos/
  python-pytest-twisted/trunk/
  python-pytest-twisted/trunk/PKGBUILD

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

Added: python-pytest-twisted/trunk/PKGBUILD
===================================================================
--- python-pytest-twisted/trunk/PKGBUILD	                        (rev 0)
+++ python-pytest-twisted/trunk/PKGBUILD	2017-07-22 05:59:22 UTC (rev 245958)
@@ -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:


Property changes on: python-pytest-twisted/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list