aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.eu>2019-05-06 14:02:18 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-06-18 14:51:49 -0300
commit84df3aaca836a5f69e18e180570d7258bd7fc5e0 (patch)
tree4da089cc00edaa7c4faac426d245b35f4593ea66
parentce4a8258f6157ee78d81bdb9f7d22dc17dfaea7a (diff)
downloadaports-84df3aaca836a5f69e18e180570d7258bd7fc5e0.tar.gz
aports-84df3aaca836a5f69e18e180570d7258bd7fc5e0.tar.bz2
aports-84df3aaca836a5f69e18e180570d7258bd7fc5e0.tar.xz
community/pytest-cov: upgrade to 2.7.1
-rw-r--r--community/pytest-cov/APKBUILD39
1 files changed, 11 insertions, 28 deletions
diff --git a/community/pytest-cov/APKBUILD b/community/pytest-cov/APKBUILD
index 455aac36fc..524f79844c 100644
--- a/community/pytest-cov/APKBUILD
+++ b/community/pytest-cov/APKBUILD
@@ -1,46 +1,29 @@
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
-pkgname=pytest-cov
-pkgver=2.6.1
-pkgrel=2
+pkgname=py3-pytest-cov
+_pkgname=${pkgname#py3-}
+pkgver=2.7.1
+pkgrel=0
pkgdesc="Pytest plugin for measuring coverage."
url="https://github.com/pytest-dev/pytest-cov"
arch="noarch"
license="MIT"
-depends="pytest py-coverage"
-makedepends="py-setuptools py3-setuptools"
-subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
+replaces="pytest-cov" # for backwards compatibility
+provides="pytest-cov=$pkgver-r$pkgrel" # for backwards compatibility
+depends="pytest py3-pytest py3-coverage"
+makedepends="python3-dev py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-cov/archive/v$pkgver.tar.gz"
build() {
- python2 setup.py build
python3 setup.py build
}
check() {
- python2 setup.py test
- python3 setup.py test
+ PYTHONPATH=. python3 setup.py test
}
package() {
- mkdir -p "$pkgdir"
+ python3 setup.py install --prefix="/usr" --root="$pkgdir"
}
-_py() {
- local python=$1
- pkgdesc="$pkgdesc - $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
-}
-
-_py2() {
- _py python2
-}
-
-_py3() {
- _py python3
-}
-
-sha512sums="d277ca7cb183b0c18e126b8a6a36793fb449cb77f3058cfbcd0cea39b2bd9855e53a1a13839b7767b3d3583c1a83199a501c3c1924598946ead32981eff1c56f pytest-cov-2.6.1.tar.gz"
+sha512sums="bb2bc5be49b3c2f56a36b6396d6b1a6734e86fb0bf1c2ef29bf8dbc95dcb9364c6deb1525529d46f4ec0ffa6899ef0e94b5f76e5ed892b0a092e69ad6c6e080e py3-pytest-cov-2.7.1.tar.gz"