[arch-commits] Commit in python-coverage/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Jun 6 10:41:10 UTC 2017
Date: Tuesday, June 6, 2017 @ 10:41:09
Author: felixonmars
Revision: 234909
upgpkg: python-coverage 4.4.1-1
Modified:
python-coverage/trunk/PKGBUILD
----------+
PKGBUILD | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-06-06 10:38:16 UTC (rev 234908)
+++ PKGBUILD 2017-06-06 10:41:09 UTC (rev 234909)
@@ -3,23 +3,26 @@
# Contributor: Clément Démoulins <clement at archivel.fr>
# Contributor: Fazlul Shahriar <fshahriar at gmail.com>
+pkgbase=python-coverage
pkgname=(python-coverage python2-coverage)
-pkgver=4.3.4
+pkgver=4.4.1
pkgrel=1
pkgdesc="A tool for measuring code coverage of Python programs"
arch=('i686' 'x86_64')
url="http://nedbatchelder.com/code/coverage/"
license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'mercurial')
+makedepends=('python-setuptools' 'python2-setuptools')
checkdepends=('python-mock' 'python2-mock' 'python-pytest-xdist' 'python2-pytest-xdist'
'python-pycontracts' 'python2-pycontracts' 'python-greenlet' 'python2-greenlet'
'python-virtualenv' 'python2-virtualenv' 'python-pyenchant' 'python2-pyenchant'
- 'python-pylint' 'python2-pylint' 'python-unittest-mixins' 'python2-unittest-mixins')
-source=("hg+https://bitbucket.org/ned/coveragepy#tag=coverage-$pkgver")
-md5sums=('SKIP')
+ 'python-pylint' 'python2-pylint' 'python-unittest-mixins' 'python2-unittest-mixins'
+ 'python-flaky' 'python2-flaky')
+source=("$pkgbase-$pkgver.tar.gz::https://bitbucket.org/ned/coveragepy/get/coverage-$pkgver.tar.gz")
+sha512sums=('c2729123f4aa8af0b1cb1f123fc5359075c66a7a6a26c32d883adbc24c81a39cd81b281db3a92019f4189f098eb12ab0f07b25dd3a120f4b0f5d5e899d8a78ee')
prepare() {
- cp -a coveragepy{,-py2}
+ mv ned-coveragepy-* coveragepy-$pkgver
+ cp -a coveragepy-$pkgver{,-py2}
}
check() {
@@ -28,7 +31,7 @@
export LC_CTYPE=en_US.UTF-8
(
- cd "$srcdir/coveragepy"
+ cd "$srcdir/coveragepy-$pkgver"
virtualenv "$srcdir/pyvenv" --system-site-packages
. "$srcdir/pyvenv/bin/activate"
export PYTHONPATH="$PYTHONPATH:/usr/lib/python3.6/site-packages"
@@ -40,7 +43,7 @@
)
(
- cd "$srcdir/coveragepy-py2"
+ cd "$srcdir/coveragepy-$pkgver-py2"
virtualenv2 "$srcdir/pyvenv-py2" --system-site-packages
. "$srcdir/pyvenv-py2/bin/activate"
export PYTHONPATH="$PYTHONPATH:/usr/lib/python2.7/site-packages"
@@ -55,7 +58,7 @@
package_python-coverage() {
depends=('python')
- cd coveragepy
+ cd coveragepy-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1
}
@@ -62,7 +65,7 @@
package_python2-coverage() {
depends=('python2')
- cd coveragepy
+ cd coveragepy-$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