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

Felix Yan felixonmars at archlinux.org
Sat Dec 24 10:33:20 UTC 2016


    Date: Saturday, December 24, 2016 @ 10:33:19
  Author: felixonmars
Revision: 201332

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 201331, python-pytest-runner/trunk/PKGBUILD)

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

Copied: python-pytest-runner/repos/community-staging-any/PKGBUILD (from rev 201331, python-pytest-runner/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 10:33:19 UTC (rev 201332)
@@ -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.9
+pkgrel=2
+pkgdesc="Invoke py.test as distutils command with dependency resolution"
+arch=('any')
+license=('MIT')
+url="https://github.com/pytest-dev/pytest-runner"
+makedepends=('python-pytest' 'python2-pytest' 'python-setuptools-scm' 'python2-setuptools-scm' 'git')
+source=("git+https://github.com/pytest-dev/pytest-runner.git#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
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pytest-runner() {
+  depends=('python2-pytest')
+
+  cd pytest-runner-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list