From ab424f26ff0a812c508a5752e62b14f6a5eac4e6 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 30 Aug 2023 13:55:07 -0400 Subject: [PATCH] testing/py3-duo-client: move from user --- testing/py3-duo-client/APKBUILD | 50 +++++++++++++++++++++++++++++++++ user/py3-duo-client/APKBUILD | 32 --------------------- 2 files changed, 50 insertions(+), 32 deletions(-) create mode 100644 testing/py3-duo-client/APKBUILD delete mode 100644 user/py3-duo-client/APKBUILD diff --git a/testing/py3-duo-client/APKBUILD b/testing/py3-duo-client/APKBUILD new file mode 100644 index 0000000..fa71eab --- /dev/null +++ b/testing/py3-duo-client/APKBUILD @@ -0,0 +1,50 @@ +# Maintainer: Antoine Martin (ayakael) +# Contributor: Antoine Martin (ayakael) + +_pyname=duo_client +pkgname=py3-duo-client +pkgver=5.0.1 +pkgrel=0 +arch="noarch" +pkgdesc="Reference client for Duo Security APIs" +url="https://pypi.python.org/project/$_pyname" +license="BSD-3-Clause" +depends=" + py3-six + " +makedepends=" + py3-setuptools + py3-wheel + py3-gpep517 + py3-installer + " +checkdepends=" + py3-pytest + py3-nose2 + py3-flake8 + py3-mock + py3-tz + py3-freezegun + " +source="$pkgname-$pkgver.tar.gz::https://github.com/duosecurity/duo_client_python/archive/refs/tags/$pkgver.tar.gz" +builddir="$srcdir"/${_pyname}_python-$pkgver +subpackages="$pkgname-pyc" + +build() { + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 3 3>&1 >&2 +} + +check() { + pytest -v +} + +package() { + python3 -m installer -d "$pkgdir" \ + dist/*.whl +} + +sha512sums=" +0eeb4f5ce4b079b545235fe5175efab9256dc46252c24546b0beb1152849af797a6a8c3cbaa08103a5f21c4084916eaa74ac1ca2c0f7643a3b14ed921b39ac35 py3-duo-client-5.0.1.tar.gz +" diff --git a/user/py3-duo-client/APKBUILD b/user/py3-duo-client/APKBUILD deleted file mode 100644 index 858a451..0000000 --- a/user/py3-duo-client/APKBUILD +++ /dev/null @@ -1,32 +0,0 @@ -# Maintainer: Antoine Martin (ayakael) -# Contributor: Antoine Martin (ayakael) - -_pyname=duo_client -pkgname=py3-duo-client -pkgver=4.7.0 -pkgrel=0 -arch="noarch" -pkgdesc="Reference client for Duo Security APIs" -url="https://pypi.python.org/project/$_pyname" -license="BSD-3-CLAUSE" -depends="py3-six" -makedepends="py3-setuptools" -checkdepends="py3-pytest py3-nose2 py3-flake8 py3-mock py3-tz py3-freezegun" -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 -} - -check() { - PYTHONPATH="$srcdir" pytest || true -} - -package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ -} -sha512sums=" -6d73bff172b8d39a6a65ccfce59c1e287fa75bf11acdc03900e29867ae72d62565607686a5a6215e8bc6ab3ec845579538e2e1c8edeb3319d105176c0bc0db3c py3-duo-client-4.7.0.tar.gz -"