diff --git a/testing/py3-pytest-factoryboy/APKBUILD b/testing/py3-pytest-factoryboy/APKBUILD new file mode 100644 index 00000000000..c3162112eb3 --- /dev/null +++ b/testing/py3-pytest-factoryboy/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=py3-pytest-factoryboy +#_pkgreal is used by apkbuild-pypi to find modules at PyPI +_pkgreal=pytest-factoryboy +pkgver=2.6.0 +pkgrel=0 +pkgdesc="Factory Boy support for pytest." +url="https://pypi.python.org/project/pytest-factoryboy" +arch="noarch" +license="MIT" +depends="py3-pytest py3-inflection py3-factory-boy py3-typing-extensions" +checkdepends="py3-tox py3-coverage py3-mypy" +makedepends="py3-setuptools py3-gpep517 py3-wheel py3-poetry-core" +subpackages="$pkgname-pyc" +source="$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-factoryboy/archive/refs/tags/$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" +options="!check" # py3-factory-boy has some issues that needs fixing + +build() { + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +check() { + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer "$builddir"/.dist/*.whl + .testenv/bin/python3 -m pytest -v +} + +package() { + python3 -m installer -d "$pkgdir" \ + .dist/*.whl +} + +sha512sums=" +f16fd15874b8420b5d47822cc352ce2e9a1edbab4428389e4245b75f5e9d4dae12d1049f5668db6a1f399ac9c955d7ed472f54d84228b18d39a64e727178a796 py3-pytest-factoryboy-2.6.0.tar.gz +"