* update python-pytest-cov to 5.0.0-1

This commit is contained in:
Alexander Baldeck 2024-08-08 14:41:51 +02:00
parent fa15f55aab
commit 5e44255c41
3 changed files with 31 additions and 8 deletions

View File

@ -0,0 +1,19 @@
pkgbase = python-pytest-cov
pkgdesc = py.test plugin for coverage reporting with support for both centralised and distributed testing, including subprocesses and multiprocessing
pkgver = 5.0.0
pkgrel = 1
url = https://github.com/pytest-dev/pytest-cov
arch = any
license = MIT
checkdepends = python-virtualenv
checkdepends = python-process-tests
checkdepends = python-pytest-xdist
checkdepends = python-fields
makedepends = git
makedepends = python-setuptools
depends = python-coverage
depends = python-pytest
source = git+https://github.com/pytest-dev/pytest-cov.git#tag=v5.0.0
sha512sums = cac0a4d5dd5d070ac9feb83ab820bd8d611150b3ccf33bcbd157edcf7a2195517f51222cd7a83153b701300612d8ceac300fce9fea7423d3bd2f41a4eea4c419
pkgname = python-pytest-cov

View File

@ -0,0 +1,4 @@
[python-pytest-cov]
source = "git"
git = "https://github.com/pytest-dev/pytest-cov.git"
prefix = "v"

View File

@ -4,34 +4,34 @@
# Contributor: Andrey Mikhaylenko <neithere at gmail dot com>
pkgname=python-pytest-cov
pkgver=4.1.0
pkgrel=5
pkgver=5.0.0
pkgrel=1
pkgdesc='py.test plugin for coverage reporting with support for both centralised and distributed testing, including subprocesses and multiprocessing'
arch=(any)
license=('MIT')
url='https://github.com/pytest-dev/pytest-cov'
depends=('python-coverage' 'python-pytest')
makedepends=('python-setuptools')
makedepends=('git' 'python-setuptools')
checkdepends=('python-virtualenv' 'python-process-tests' 'python-pytest-xdist' 'python-fields')
source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-cov/archive/v$pkgver.tar.gz")
sha512sums=('d5eca8c750b6668a2b893e65d6799267d1a13eda78908880f454533a7846f1c4f94df6b5b702436e74a2ffb7912a19cae5edb6452abf3cc7c4765f187db039f1')
source=("git+https://github.com/pytest-dev/pytest-cov.git#tag=v$pkgver")
sha512sums=('cac0a4d5dd5d070ac9feb83ab820bd8d611150b3ccf33bcbd157edcf7a2195517f51222cd7a83153b701300612d8ceac300fce9fea7423d3bd2f41a4eea4c419')
build() {
cd pytest-cov-$pkgver
cd pytest-cov
python setup.py build
}
check() {
# Hack entry points by installing it
cd pytest-cov-$pkgver
cd pytest-cov
python setup.py install --root="$PWD/tmp_install" --optimize=1
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
PYTHONPATH="$PWD/tmp_install/$site_packages:$PYTHONPATH:$PWD/tests" pytest || echo "Tests failed"
}
package() {
cd pytest-cov-$pkgver
cd pytest-cov
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}