From 77a00e2bf300a1070a728b4d73c36666fb6d6865 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 30 Aug 2023 13:54:32 -0400 Subject: [PATCH] testing/py3-dacite: move from user --- testing/py3-dacite/APKBUILD | 45 +++++++++++++++++++++++++++++++++++++ user/py3-dacite/APKBUILD | 32 -------------------------- 2 files changed, 45 insertions(+), 32 deletions(-) create mode 100644 testing/py3-dacite/APKBUILD delete mode 100644 user/py3-dacite/APKBUILD diff --git a/testing/py3-dacite/APKBUILD b/testing/py3-dacite/APKBUILD new file mode 100644 index 0000000..c7d951a --- /dev/null +++ b/testing/py3-dacite/APKBUILD @@ -0,0 +1,45 @@ +# Maintainer: Antoine Martin (ayakael) +# Contributor: Antoine Martin (ayakael) + +_pyname=dacite +pkgname="py3-$_pyname" +pkgver=1.8.1 +pkgrel=0 +arch="noarch" +pkgdesc="This module simplifies creation of data classes (PEP 557) from dictionaries." +url="https://pypi.python.org/project/$_pyname" +license="MIT" +makedepends=" + py3-setuptools + py3-gpep517 + py3-installer + py3-wheel + " +checkdepends=" + py3-pytest + py3-pytest-benchmark + py3-pytest-cov + py3-coveralls + " +source="$pkgname-$pkgver.tar.gz::https://github.com/konradhalas/dacite/archive/refs/tags/v$pkgver.tar.gz" +builddir="$srcdir"/$_pyname-$pkgver +subpackages="$pkgname-pyc" + +build() { + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 3 3>&1 >&2 +} + +check() { + pytest -v +} + +package() { + python3 -m installer -d "$pkgdir" \ + dist/*.whl +} + +sha512sums=" +4b40c0bdcf5490bcc77de9e7f04b7267642bcfd41e4168607a5457f38abe3ad4b3041d8a23cb43af76de14eabee45f900ad5ddf7af8f70a2be4850bccc2d3af1 py3-dacite-1.8.1.tar.gz +" diff --git a/user/py3-dacite/APKBUILD b/user/py3-dacite/APKBUILD deleted file mode 100644 index 46df3c0..0000000 --- a/user/py3-dacite/APKBUILD +++ /dev/null @@ -1,32 +0,0 @@ -# Maintainer: Antoine Martin (ayakael) -# Contributor: Antoine Martin (ayakael) - -_pyname=dacite -pkgname="py3-$_pyname" -pkgver=1.8.0 -pkgrel=0 -arch="noarch" -pkgdesc="This module simplifies creation of data classes (PEP 557) from dictionaries." -url="https://pypi.python.org/project/$_pyname" -license="MIT" -depends="python3" -makedepends="py3-setuptools" -checkdepends="py3-pytest" -source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz" -builddir="$srcdir"/$_pyname-$pkgver - -build() { - python3 setup.py build -} - -check() { - PYTHONPATH="$PWD/src" pytest || true -} - -package() { - python3 setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 "./LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} -sha512sums=" -7e9ebf7da56aa8e65d5a5f0576a0e268344ee40459bdcde2560d17e90d4b73f660ce9dbec3ab5377100f42a21ad8698019b5b6f4fa03ddcd959af5ebb261b465 py3-dacite-1.8.0.tar.gz -"