From 9097c1d4da100871d3a0f31743d0b7a94a4e7fc9 Mon Sep 17 00:00:00 2001
From: Antoine Martin <dev@ayakael.net>
Date: Wed, 30 Aug 2023 13:55:43 -0400
Subject: [PATCH] testing/py3-ruamel-yaml: move from user

---
 {user => testing}/py3-ruamel-yaml/APKBUILD | 24 ++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)
 rename {user => testing}/py3-ruamel-yaml/APKBUILD (57%)

diff --git a/user/py3-ruamel-yaml/APKBUILD b/testing/py3-ruamel-yaml/APKBUILD
similarity index 57%
rename from user/py3-ruamel-yaml/APKBUILD
rename to testing/py3-ruamel-yaml/APKBUILD
index 6b61366..07493d1 100644
--- a/user/py3-ruamel-yaml/APKBUILD
+++ b/testing/py3-ruamel-yaml/APKBUILD
@@ -3,25 +3,37 @@
 
 pkgname=py3-ruamel-yaml
 _pyname="ruamel.yaml"
-pkgver=0.17.21
+pkgver=0.17.32
 pkgrel=0
 arch="noarch"
 pkgdesc="AML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order"
 url="https://pypi.python.org/project/$_pyname"
 license="MIT"
-depends="python3 py3-ruamel-yaml-clib"
-makedepends="py3-setuptools"
+depends="
+	py3-ruamel-yaml-clib
+	"
+makedepends="
+	py3-setuptools
+	py3-wheel
+	py3-gpep517
+	py3-wheel
+	"
 options="!check" # No testsuite
 source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
 builddir="$srcdir"/$_pyname-$pkgver
+subpackages="$pkgname-pyc"
 
 build() {
-	python3 setup.py build
+	gpep517 build-wheel \
+		--wheel-dir dist \
+		--output-fd 3 3>&1 >&2
 }
 
 package() {
-	RUAMEL_NO_PIP_INSTALL_CHECK=1 python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
+	python3 -m installer -d "$pkgdir" \
+		dist/*.whl
 }
+
 sha512sums="
-1ecda5ecacf913a499e40b4df8d5d6112b8c2facf5ce42c36eedad1ea4745884f98919b70a9d51ba8b095463e27371f6b84e314fe8f512c318963ab32f2cbf17  py3-ruamel-yaml-0.17.21.tar.gz
+9734b7bda9a333a4271d584470622177d112b3084c5efa730345228828863e2f5aa4de9ee0a30d4127336ef3604488a9b739535dfc9b3e760b396a0e269643d7  py3-ruamel-yaml-0.17.32.tar.gz
 "