mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 04:35:39 +03:00
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
# Maintainer:
|
|
pkgname=py3-codecov
|
|
pkgver=2.0.22
|
|
pkgrel=0
|
|
pkgdesc="Report uploader for Codecov"
|
|
options="!check" # Requires unpackaged 'ddt'
|
|
url="https://github.com/codecov/codecov-python"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="python3 py3-coverage py3-requests py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/codecov/codecov-python/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir"/codecov-python-$pkgver
|
|
|
|
replaces="py-codecov" # Backwards compatibility
|
|
provides="py-codecov=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
py.test-3 tests/test.py
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
|
|
local file; for file in "$pkgdir"/usr/bin/*; do
|
|
mv $file $file-3
|
|
ln -s "${file##*/}"-3 $file
|
|
done
|
|
}
|
|
|
|
sha512sums="85450944e99dbcf22eb340842690b67bdd68ca6cb59dfb639f8b08aad728cf045c07a124ab16ec6bf38d6d0a30c28c75bdfa8194b57eb330a2d581f3e71b7b8a py3-codecov-2.0.22.tar.gz"
|