testing/py3-concurrent-log-handler: move from user

This commit is contained in:
Antoine Martin 2023-08-30 13:54:30 -04:00
parent e6ef8a392b
commit 306237b553
2 changed files with 47 additions and 27 deletions

View file

@ -0,0 +1,47 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_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
"

View file

@ -1,27 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_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
"