# Contributor: Leonardo Arena # Maintainer: pkgname=py3-codecov pkgver=2.0.15 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 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="53cf2dc9926e2009a3918dfc7317d1e93f6ba9e25c6bb5bcc42c81fb15c07593f4fabd24883f081719432a029ab4f399126dea4cd8ff92d5e0f53b7155b1e522 py3-codecov-2.0.15.tar.gz"