aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-vcversioner/APKBUILD
blob: f7d11aa407bf75c9f989f824723b82dd23e47e0c (plain)
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: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-vcversioner
_pkgname=vcversioner
pkgver=2.16.0.0
pkgrel=2
pkgdesc="Use version control tags to discover version numbers"
url="https://pypi.python.org/pypi/vcversioner"
arch="noarch"
license="ISC"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$_pkgname-$pkgver.tar.gz::https://github.com/habnabit/vcversioner/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces=py-vcversioner # Backwards compatibility
provides=py-vcversioner=$pkgver-r$pkgrel # Backwards compatibility

prepare() {
	default_prepare
	echo -n "${pkgver}-0-UNKNOWN" > version.txt
}

build() {
	python3 setup.py build
}

check() {
	py.test-3 -v
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="0ce7edf28d0626707f977b565f938a754d374d0cada8683f05fa6d1088930d4d858213dbcb5dba149d828e76341eec4a168ef1998ce9894b72c35c1eef59bd08  vcversioner-2.16.0.0.tar.gz"