mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
testing/py3-python-logstash: build with gpep517
This commit is contained in:
parent
fcee2b37c5
commit
24003acd76
@ -3,24 +3,28 @@
|
|||||||
pkgname=py3-python-logstash
|
pkgname=py3-python-logstash
|
||||||
_pkgname=python-logstash
|
_pkgname=python-logstash
|
||||||
pkgver=0.4.8
|
pkgver=0.4.8
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="Python logging handler for Logstash"
|
pkgdesc="Python logging handler for Logstash"
|
||||||
options="!check" # no test suite
|
options="!check" # no test suite
|
||||||
url="https://github.com/vklochan/python-logstash"
|
url="https://github.com/vklochan/python-logstash"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
depends="python3"
|
depends="python3"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
subpackages="$pkgname-doc $pkgname-pyc"
|
subpackages="$pkgname-doc $pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||||
builddir="$srcdir/$_pkgname-$pkgver"
|
builddir="$srcdir/$_pkgname-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
|
|
||||||
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user