From 306237b553b48aca6cd0b5b9206b322758954b0b Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 30 Aug 2023 13:54:30 -0400 Subject: [PATCH] testing/py3-concurrent-log-handler: move from user --- testing/py3-concurrent-log-handler/APKBUILD | 47 +++++++++++++++++++++ user/py3-concurrent-log-handler/APKBUILD | 27 ------------ 2 files changed, 47 insertions(+), 27 deletions(-) create mode 100644 testing/py3-concurrent-log-handler/APKBUILD delete mode 100644 user/py3-concurrent-log-handler/APKBUILD diff --git a/testing/py3-concurrent-log-handler/APKBUILD b/testing/py3-concurrent-log-handler/APKBUILD new file mode 100644 index 0000000..d917372 --- /dev/null +++ b/testing/py3-concurrent-log-handler/APKBUILD @@ -0,0 +1,47 @@ +# Maintainer: Antoine Martin (ayakael) +# Contributor: Antoine Martin (ayakael) + +_pyname=concurrent-log-handler +pkgname="py3-$_pyname" +pkgver=0.9.24 +pkgrel=0 +arch="noarch" +pkgdesc="The lightning-fast ASGI server" +url="https://pypi.python.org/project/$_pyname" +license="Apache-2.0" +depends=" + py3-portalocker + " +makedepends=" + py3-setuptools + py3-installer + py3-gpep517 + py3-wheel + " +checkdepends=" + py3-pytest + py3-stresstest + " +options="!check" # Missing depend stresstest +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() { + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 3 3>&1 >&2 +} + +check() { + PYTHONPATH="$builddir" pytest +} + +package() { + python3 -m installer -d "$pkgdir" \ + dist/*.whl +} + +sha512sums=" +370003f3c3778f99ba85f8d1fa8331eeee39f76f7ecc6f30ce2cb809790a80cc288005098bbb1b4e737957f08e29b7dbec055bcd685ae50611f909b6c74f8d78 py3-concurrent-log-handler-0.9.24.tar.gz +" diff --git a/user/py3-concurrent-log-handler/APKBUILD b/user/py3-concurrent-log-handler/APKBUILD deleted file mode 100644 index 6c55eed..0000000 --- a/user/py3-concurrent-log-handler/APKBUILD +++ /dev/null @@ -1,27 +0,0 @@ -# Maintainer: Antoine Martin (ayakael) -# Contributor: Antoine Martin (ayakael) - -_pyname=concurrent-log-handler -pkgname="py3-$_pyname" -pkgver=0.9.20 -pkgrel=0 -arch="noarch" -pkgdesc="The lightning-fast ASGI server" -url="https://pypi.python.org/project/$_pyname" -license="Apache-2.0" -depends="python3 py3-portalocker" -makedepends="py3-setuptools" -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 - -build() { - python3 setup.py build -} - -package() { - python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build --prefix=/usr -} -sha512sums=" -fd9e66c713f6be675fd8aa8001254641ba354ba04b95fade4b101ce9cdddc66444de60c87832bd3270d004ef97c52a266a3345e9f9df8f5dea13d6ce80f05e57 py3-concurrent-log-handler-0.9.20.tar.gz -"