Compare commits

...

2 commits

Author SHA1 Message Date
c254ec5975
abstractions
Some checks failed
/ lint (pull_request) Successful in 30s
/ deploy-x86_64 (pull_request) Has been skipped
/ build-x86_64 (pull_request) Failing after 2m52s
/ deploy-aarch64 (pull_request) Has been skipped
/ build-aarch64 (pull_request) Failing after 8m54s
2024-09-18 21:11:06 -04:00
925c7106f0
ilot/py3-std-uritemplate: new aport 2024-09-18 21:10:58 -04:00
2 changed files with 42 additions and 1 deletions

View file

@ -10,7 +10,7 @@ url="https://pypi.python.org/project/microsoft-kiota-abstractions"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends=" depends="
py3-uritemplate py3-std-uritemplate
py3-opentelemetry-sdk py3-opentelemetry-sdk
" "
checkdepends="py3-pytest" checkdepends="py3-pytest"

View file

@ -0,0 +1,41 @@
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-std-uritemplate
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=std-uritemplate
pkgver=1.0.6
pkgrel=0
pkgdesc="A complete and maintained cross-language implementation of the Uri Template specification RFC 6570 Level 4"
url="https://pypi.python.org/project/std-uritemplate"
arch="noarch"
license="Apache-2.0"
depends="python3"
checkdepends="py3-pytest"
makedepends="py3-setuptools py3-gpep517 py3-wheel poetry"
source="$pkgname-$pkgver.tar.gz::https://github.com/std-uritemplate/std-uritemplate/archive/refs/tags/$pkgver.tar.gz"
options="!check" # TODO
builddir="$srcdir"/$_pkgreal-$pkgver/python
subpackages="$pkgname-pyc"
prepare() {
default_prepare
ln -s ../Readme.md Readme.md
}
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
poetry run python test.py
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
4873ce356170aea1b45479d5ded0b596265782c097d3fd9d1bb4cc8ad902067bab654057173a2e2b1da37e5ac36ebee024feca43b0e4298b103dc979f97e7c1c py3-std-uritemplate-1.0.6.tar.gz
"