[arch-commits] Commit in python-coverage/repos (4 files)

Felix Yan fyan at archlinux.org
Sat Sep 19 12:41:54 UTC 2015


    Date: Saturday, September 19, 2015 @ 14:41:53
  Author: fyan
Revision: 140776

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  python-coverage/repos/community-staging-i686/
  python-coverage/repos/community-staging-i686/PKGBUILD
    (from rev 140775, python-coverage/trunk/PKGBUILD)
  python-coverage/repos/community-staging-x86_64/
  python-coverage/repos/community-staging-x86_64/PKGBUILD
    (from rev 140775, python-coverage/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   52 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)

Copied: python-coverage/repos/community-staging-i686/PKGBUILD (from rev 140775, python-coverage/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-19 12:41:53 UTC (rev 140776)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# 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=5
+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"
+}

Copied: python-coverage/repos/community-staging-x86_64/PKGBUILD (from rev 140775, python-coverage/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-19 12:41:53 UTC (rev 140776)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# 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=5
+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"
+}



More information about the arch-commits mailing list