mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
|
|
pkgname=py3-codecov
|
|
pkgver=2.1.13
|
|
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"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
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 --skip-build --root="$pkgdir"
|
|
|
|
local file; for file in "$pkgdir"/usr/bin/*; do
|
|
mv $file $file-3
|
|
ln -s "${file##*/}"-3 $file
|
|
done
|
|
}
|
|
|
|
sha512sums="
|
|
beddc2d19c6d2b535340e10084fc197ba4a86878d0c1c3da50d93ee4e7ed90cfa1f5456e1e8b6d1bee781c653b296e291b2257761f9b0339408a9f3d7844646e py3-codecov-2.1.13.tar.gz
|
|
"
|