1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/community/py3-argcomplete/APKBUILD
psykose a435ef42d2 */*: remove pointless python optimise
this doesn't really "optimise" the python or do much to improve
performance.

it's identical to running python with -O or setting PYTHONOPTIMISE= in
the environment.

doing it here just doubles the disk space for the pre-cached files
generated by python on startup with optimisations
2023-01-10 04:18:42 +01:00

36 lines
1 KiB
Text

# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-argcomplete
_pyname=argcomplete
pkgver=2.0.0
pkgrel=2
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/$_pyname/archive/v$pkgver.tar.gz
"
builddir="$srcdir/$_pyname-$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 --skip-build --root="$pkgdir"
}
sha512sums="
3253b8d08875959b4d55ef20d9b31fd598ce54ad583b91758d662d883818348ebb1d3185c4c2364c453e3c6a79c202e087adde1c75d1c15f1c50b47723a3d226 py3-argcomplete-2.0.0.tar.gz
"