aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-codecov/APKBUILD
blob: e0ed67e18e4bb40b178e2d5b9dfae8e66e330477 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=py3-codecov
pkgver=2.1.11
pkgrel=1
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"
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="f7fdc4085b8f8ac3e5a2821906f46e08b21fd0b5315f0fd1f3f0ad77418c043de54bf7c7f4e77a09398db454ca8341fef482e319313fb7bd202cb0dba22a452d  py3-codecov-2.1.11.tar.gz"