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

Evangelos Foutras foutrelis at archlinux.org
Sun Dec 25 17:25:35 UTC 2016


    Date: Sunday, December 25, 2016 @ 17:25:34
  Author: foutrelis
Revision: 202089

archrelease: copy trunk to community-staging-any

Added:
  python-pytddmon/repos/community-staging-any/
  python-pytddmon/repos/community-staging-any/PKGBUILD
    (from rev 202088, python-pytddmon/trunk/PKGBUILD)

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

Copied: python-pytddmon/repos/community-staging-any/PKGBUILD (from rev 202088, python-pytddmon/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 17:25:34 UTC (rev 202089)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+
+pkgbase=python-pytddmon
+pkgname=('python-pytddmon' 'python2-pytddmon')
+pkgver=1.0.8
+_commit=4b2875cfda88050537af58a4103ea8809c27ee1c
+pkgrel=2
+pkgdesc='Continuous unit testing in Python'
+arch=('any')
+url='http://pytddmon.org'
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-nose' 'python2-nose')
+source=("git+https://github.com/objarni/pytddmon.git#commit=$_commit")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a pytddmon{,-py2}
+}
+
+build() {
+  cd "$srcdir"/pytddmon
+  python setup.py build
+
+  cd "$srcdir"/pytddmon-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/pytddmon
+  python setup.py nosetests
+
+  cd "$srcdir"/pytddmon-py2
+  python2 setup.py nosetests
+}
+
+package_python-pytddmon() {
+  depends=('python')
+
+  cd pytddmon
+  python setup.py install --root="$pkgdir" -O1
+}
+
+package_python2-pytddmon() {
+  depends=('python2')
+
+  cd pytddmon-py2
+  python2 setup.py install --root="$pkgdir" -O1
+
+  mv "$pkgdir"/usr/bin/pytddmon{,2}.py
+}



More information about the arch-commits mailing list