[arch-commits] Commit in python-coverage/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Mon Sep 21 03:51:37 UTC 2015
Date: Monday, September 21, 2015 @ 05:51:37
Author: fyan
Revision: 141335
upgpkg: python-coverage 4.0-1
Modified:
python-coverage/trunk/PKGBUILD
----------+
PKGBUILD | 40 +++++++++++++++++++++++-----------------
1 file changed, 23 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-21 03:12:24 UTC (rev 141334)
+++ PKGBUILD 2015-09-21 03:51:37 UTC (rev 141335)
@@ -4,41 +4,47 @@
# Contributor: Fazlul Shahriar <fshahriar at gmail.com>
pkgname=(python-coverage python2-coverage)
-pkgver=3.7.1
-pkgrel=5
+pkgver=4.0
+pkgrel=1
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')
+makedepends=('python-setuptools' 'python2-setuptools' 'mercurial')
+checkdepends=('python-mock' 'python2-mock' 'python-nose' 'python2-nose'
+ 'python-pycontracts' 'python2-pycontracts')
+source=("hg+https://bitbucket.org/ned/coveragepy#tag=coverage-$pkgver")
+md5sums=('SKIP')
prepare() {
- cp -a coverage-$pkgver{,-py2}
+ cp -a coveragepy{,-py2}
}
build() {
- cd "$srcdir/coverage-$pkgver"
+ cd "$srcdir/coveragepy"
python3 setup.py build
- cd "$srcdir/coverage-$pkgver-py2"
+ cd "$srcdir/coveragepy-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
+check() {(
+ # Hack entry points by installing it
+
+ cd "$srcdir/coveragepy"
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PATH="$PWD/tmp_install/usr/bin:$PATH" PYTHONPATH="$PWD/tmp_install/usr/lib/python3.5/site-packages:$PYTHONPATH" python igor.py test_with_tracer py
+
+ cd "$srcdir/coveragepy-py2"
+ python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+ PATH="$PWD/tmp_install/usr/bin:$PATH" PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" python2 igor.py test_with_tracer py
+ ) || warning "Tests failed"
}
package_python-coverage() {
depends=('python')
- cd coverage-$pkgver
+ cd coveragepy
python3 setup.py install --root="$pkgdir" --optimize=1
}
@@ -45,7 +51,7 @@
package_python2-coverage() {
depends=('python2')
- cd coverage-$pkgver
+ cd coveragepy
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