[arch-commits] Commit in (4 files)
Felix Yan
fyan at archlinux.org
Sat Aug 8 03:40:29 UTC 2015
Date: Saturday, August 8, 2015 @ 05:40:29
Author: fyan
Revision: 138108
addpkg: python-pytest-runner 2.6.1-1
Added:
python-pytest-runner/
python-pytest-runner/repos/
python-pytest-runner/trunk/
python-pytest-runner/trunk/PKGBUILD
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Added: python-pytest-runner/trunk/PKGBUILD
===================================================================
--- python-pytest-runner/trunk/PKGBUILD (rev 0)
+++ python-pytest-runner/trunk/PKGBUILD 2015-08-08 03:40:29 UTC (rev 138108)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-runner
+pkgname=('python-pytest-runner' 'python2-pytest-runner')
+pkgver=2.6.1
+pkgrel=1
+pkgdesc="Invoke py.test as distutils command with dependency resolution"
+arch=('any')
+license=('MIT')
+url="https://bitbucket.org/pytest-dev/pytest-runner"
+makedepends=('python-setuptools_scm' 'python2-setuptools_scm' 'mercurial')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("hg+https://felixonmars@bitbucket.org/pytest-dev/pytest-runner#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a pytest-runner{,-py2}
+}
+
+build() {
+ cd "$srcdir/pytest-runner"
+ python setup.py build
+
+ cd "$srcdir/pytest-runner-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/pytest-runner"
+ py.test
+
+ cd "$srcdir/pytest-runner-py2"
+ py.test2
+}
+
+package_python-pytest-runner() {
+ depends=('python-pytest')
+
+ cd pytest-runner
+ python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-pytest-runner() {
+ depends=('python2-pytest')
+
+ cd pytest-runner-py2
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+}
+
Property changes on: python-pytest-runner/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list