aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-argcomplete/APKBUILD
blob: 4fa96876effdda2bd7ef58fcc5cfa5e9333fb442 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=py3-argcomplete
_pkgname=${pkgname#py3-}
pkgver=1.11.1
pkgrel=0
pkgdesc="Easy, extensible command line tab completion of arguments for your Python script"
options="!check" # Tests are py2 dependent
url="https://github.com/kislyuk/argcomplete"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-coverage py3-flake8 py3-pexpect bash"
source="$pkgname-$pkgver.tar.gz::https://github.com/kislyuk/$_pkgname/archive/v$pkgver.tar.gz
	"
builddir="$srcdir/$_pkgname-$pkgver"

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

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="de1bc9450d735392d043e530d33827622bd1b5253b3cfe2df5340ec885197b0e1394bb19a3790d191c469e3279648c802d8bbcc20f87729fca0fae887866e188  py3-argcomplete-1.11.1.tar.gz"