ilot/py3-opentelemetry-sdk: new aport
This commit is contained in:
parent
c29ac3817b
commit
400631811a
1 changed files with 75 additions and 0 deletions
75
ilot/py3-opentelemetry-sdk/APKBUILD
Normal file
75
ilot/py3-opentelemetry-sdk/APKBUILD
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
|
pkgname=py3-opentelemetry-sdk
|
||||||
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||||
|
_pkgreal=opentelemetry-sdk
|
||||||
|
pkgver=1.27.0
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="OpenTelemetry Python SDK"
|
||||||
|
url="https://github.com/open-telemetry/opentelemetry-python/tree/main"
|
||||||
|
arch="noarch"
|
||||||
|
license="Apache-2.0"
|
||||||
|
depends="py3-opentelemetry-semantic-conventions py3-typing-extensions"
|
||||||
|
checkdepends="py3-pytest"
|
||||||
|
makedepends="py3-setuptools py3-gpep517 py3-wheel py3-hatchling"
|
||||||
|
source="$pkgname-$pkgver.tar.gz::https://github.com/open-telemetry/opentelemetry-python/archive/refs/tags/v$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir/opentelemetry-python-$pkgver"
|
||||||
|
options="!check" # TODO
|
||||||
|
# need to figure out -pyc
|
||||||
|
subpackages="
|
||||||
|
$pkgname-pyc
|
||||||
|
py3-opentelemetry-api
|
||||||
|
py3-opentelemetry-semantic-conventions
|
||||||
|
py3-opentelemetry-proto
|
||||||
|
"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
for i in api semantic-conventions sdk proto; do
|
||||||
|
cd "$builddir"/opentelemetry-$i
|
||||||
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
for i in api semantic-conventions sdk proto; do
|
||||||
|
python3 -m venv --clear --without-pip --system-site-packages "$builddir"/.testenv
|
||||||
|
"$builddir"/.testenv/bin/python3 -m installer .dist/*.whl
|
||||||
|
"$builddir"/.testenv/bin/python3 -m pytest -v
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$builddir"/opentelemetry-sdk
|
||||||
|
python3 -m installer -d "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
|
}
|
||||||
|
|
||||||
|
api() {
|
||||||
|
depends="py3-deprecated"
|
||||||
|
pkgdesc="OpenTelemetry Python API"
|
||||||
|
cd "$builddir"/opentelemetry-api
|
||||||
|
python3 -m installer -d "$subpkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
|
}
|
||||||
|
|
||||||
|
conventions() {
|
||||||
|
pkgdesc="OpenTelemetry Semantic Conventions"
|
||||||
|
depends="py3-opentelemetry-api py3-deprecated"
|
||||||
|
cd "$builddir"/opentelemetry-semantic-conventions
|
||||||
|
python3 -m installer -d "$subpkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
|
}
|
||||||
|
|
||||||
|
proto() {
|
||||||
|
pkgdesc="OpenTelemetry Python Proto"
|
||||||
|
depends="py3-protobuf"
|
||||||
|
cd "$builddir"/opentelemetry-proto
|
||||||
|
python3 -m installer -d "$subpkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
d8b5a617c7e804b4e6e1b508395e87481a3dcc3b375573110750830a1cf6037cfeb5c09dba3e7cfa472e385dbf619afedd79b1c31c5bfe4e87d44ea65f4d2f0b py3-opentelemetry-sdk-1.27.0.tar.gz
|
||||||
|
"
|
Loading…
Add table
Reference in a new issue