abuild/tests/testrepo/py3 foo and bar/APKBUILD
Marian Buschsieweke 6806a0d39b abuild: scan for python3 version requirements
Packages installing python3 site packages for python3 in version 3.x.y
depend on python3~3.x. This automatically adds the required
dependencies.

Unit test cases have been added by reusing the `py3-foo-and-bar` test
package. However, the path of that has been renamed to contain spaces
to be extra sure the logic is safe in regrade to spaces in path
names.
2023-04-18 09:26:12 +00:00

16 lines
352 B
Plaintext

# Maintainer: Test user <user@example.com>
pkgname=py3-foo-and-bar
pkgver=1.0.0
pkgrel=0
pkgdesc="dummy package for test"
url="https://alpinelinux.org"
license="MIT"
builddir="$srcdir"
_sitedir=usr/lib/python3.9/site-packages
package() {
mkdir -p "$pkgdir"/$_sitedir/foo
touch "$pkgdir"/$_sitedir/foo/__init__.py
touch "$pkgdir"/$_sitedir/bar.py
}