From b3eae54fedbcf6fa86f7ed658bd23820c184e79e Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 18 Sep 2024 21:43:06 -0400 Subject: [PATCH] ilot/py3-azure-core: new aport --- ilot/py3-azure-core/APKBUILD | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 ilot/py3-azure-core/APKBUILD diff --git a/ilot/py3-azure-core/APKBUILD b/ilot/py3-azure-core/APKBUILD new file mode 100644 index 0000000..8befd33 --- /dev/null +++ b/ilot/py3-azure-core/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=py3-azure-core +#_pkgreal is used by apkbuild-pypi to find modules at PyPI +_pkgreal=azure-core +pkgver=1.31.0 +pkgrel=0 +pkgdesc="Microsoft Azure Core Library for Python" +url="https://pypi.python.org/project/microsoft-kiota-authentication-azure" +arch="noarch" +license="MIT" +depends="py3-aiohttp py3-requests" +checkdepends="py3-pytest-asyncio py3-trio" +makedepends="py3-setuptools py3-gpep517 py3-wheel py3-flit" +options="!check" #todo +source="$pkgname-$pkgver.tar.gz::https://github.com/Azure/azure-sdk-for-python/archive/refs/tags/azure-core_$pkgver.tar.gz" +builddir="$srcdir"/azure-sdk-for-python-azure-core_$pkgver/sdk/core/azure-core +subpackages="$pkgname-pyc" + +build() { + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +check() { + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest -v +} + +package() { + python3 -m installer -d "$pkgdir" \ + .dist/*.whl +} + +sha512sums=" +be2fc27610034ee5c345ed11f59233ec81d8ad628c4b732531a24e0d54720b81f22d855e5a4d9214c6a8234e479da059b37a40c7ad15e738e2dd46fb4755dad6 py3-azure-core-1.31.0.tar.gz +"