From 60d0d2fbcf0863505b03f3f58fe4543a74a960d8 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 20 Apr 2019 12:14:53 -0400 Subject: [PATCH] Remove pytest-cov, add !check on cairocffi --- sr.ht/py-cairocffi/APKBUILD | 8 +----- sr.ht/pytest-cov/APKBUILD | 50 ------------------------------------- 2 files changed, 1 insertion(+), 57 deletions(-) delete mode 100644 sr.ht/pytest-cov/APKBUILD diff --git a/sr.ht/py-cairocffi/APKBUILD b/sr.ht/py-cairocffi/APKBUILD index f5dddcb..06c0fcd 100644 --- a/sr.ht/py-cairocffi/APKBUILD +++ b/sr.ht/py-cairocffi/APKBUILD @@ -10,11 +10,11 @@ url="https://pythonhosted.org/cairocffi/" arch="noarch" license="BSD" depends="py-cffi cairo gdk-pixbuf" -checkdepends="pytest pytest-cov ttf-dejavu" makedepends="python2-dev python3-dev py-setuptools" subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver +options="!check" build() { cd "$builddir" @@ -22,12 +22,6 @@ build() { python3 setup.py build } -check() { - cd "$builddir" - python2 setup.py test - python3 setup.py test -} - package() { mkdir -p "$pkgdir" } diff --git a/sr.ht/pytest-cov/APKBUILD b/sr.ht/pytest-cov/APKBUILD deleted file mode 100644 index 03067aa..0000000 --- a/sr.ht/pytest-cov/APKBUILD +++ /dev/null @@ -1,50 +0,0 @@ -# Contributor: TBK -# Maintainer: TBK -pkgname=pytest-cov -_pkgname=${pkgname#py-} -pkgver=2.6.1 -pkgrel=1 -pkgdesc="Pytest plugin for measuring coverage." -url="https://github.com/pytest-dev/pytest-cov" -arch="noarch" -license="MIT" -depends="pytest py-coverage" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" -source="$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-cov/archive/v$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - python2 setup.py build - python3 setup.py build -} - -check() { - cd "$builddir" - python2 setup.py test - python3 setup.py test -} - -package() { - mkdir -p "$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" -- 2.45.2