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

Felix Yan fyan at archlinux.org
Sat Sep 19 09:23:16 UTC 2015


    Date: Saturday, September 19, 2015 @ 11:23:16
  Author: fyan
Revision: 140705

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pytest-runner/repos/community-staging-any/PKGBUILD (from rev 140704, python-pytest-runner/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 09:23:16 UTC (rev 140705)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-runner
+pkgname=('python-pytest-runner' 'python2-pytest-runner')
+pkgver=2.6.2
+pkgrel=2
+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
+  
+  ) || warning "Expected to fail because of https://bitbucket.org/pytest-dev/pytest-runner/issues/6"
+}
+
+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
+}
+



More information about the arch-commits mailing list