[arch-commits] Commit in (4 files)

Felix Yan fyan at nymeria.archlinux.org
Tue May 6 01:05:05 UTC 2014


    Date: Tuesday, May 6, 2014 @ 03:05:04
  Author: fyan
Revision: 110740

addpkg: python-coverage 3.7.1-3

Added:
  python-coverage/
  python-coverage/repos/
  python-coverage/trunk/
  python-coverage/trunk/PKGBUILD

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

Added: python-coverage/trunk/PKGBUILD
===================================================================
--- python-coverage/trunk/PKGBUILD	                        (rev 0)
+++ python-coverage/trunk/PKGBUILD	2014-05-06 01:05:04 UTC (rev 110740)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Clément Démoulins <clement at archivel.fr>
+# Contributor: Fazlul Shahriar <fshahriar at gmail.com>
+
+pkgname=(python-coverage python2-coverage)
+pkgver=3.7.1
+pkgrel=3
+pkgdesc="A tool for measuring code coverage of Python programs"
+arch=('i686' 'x86_64')
+url="http://nedbatchelder.com/code/coverage/"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-mock' 'python2-mock' 'python-nose' 'python2-nose')
+source=("http://pypi.python.org/packages/source/c/coverage/coverage-$pkgver.tar.gz")
+md5sums=('c47b36ceb17eaff3ecfab3bcd347d0df')
+
+prepare() {
+  cp -a coverage-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/coverage-$pkgver"
+  python3 setup.py build
+
+  cd "$srcdir/coverage-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/coverage-$pkgver"
+  #python3 igor.py zip_mods install_egg remove_extension
+  #python3 igor.py test_with_tracer py
+  #python3 setup.py --quiet build_ext --inplace
+  #python3 igor.py test_with_tracer c
+}
+
+package_python-coverage() {
+  depends=('python')
+
+  cd coverage-$pkgver
+  python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-coverage() {
+  depends=('python2')
+
+  cd coverage-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  mv "$pkgdir/usr/bin/coverage" "$pkgdir/usr/bin/coverage2"
+}


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



More information about the arch-commits mailing list