From ca7e37aef2302d1852ab1efb11e6c1cb26dc039b Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 30 Aug 2023 13:55:50 -0400 Subject: [PATCH] testing/py3-twilio: move from user --- testing/py3-twilio/APKBUILD | 46 +++++++++++++++++++++++++++++++++++++ user/py3-twilio/APKBUILD | 28 ---------------------- 2 files changed, 46 insertions(+), 28 deletions(-) create mode 100644 testing/py3-twilio/APKBUILD delete mode 100644 user/py3-twilio/APKBUILD diff --git a/testing/py3-twilio/APKBUILD b/testing/py3-twilio/APKBUILD new file mode 100644 index 0000000..f98c8d1 --- /dev/null +++ b/testing/py3-twilio/APKBUILD @@ -0,0 +1,46 @@ +# Maintainer: Antoine Martin (ayakael) +# Contributor: Antoine Martin (ayakael) + +_pyname=twilio +pkgname="py3-$_pyname" +pkgver=8.5.0 +pkgrel=0 +arch="noarch" +pkgdesc="Twilio API client and TwiML generator" +url="https://pypi.python.org/project/$_pyname" +license="MIT" +depends=" + py3-requests + py3-mock + py3-flake8 + py3-six + py3-nose + py3-python-jwt + py3-twine + py3-tz + " +makedepends=" + py3-setuptools + py3-gpep517 + py3-wheel + py3-installer + " +options="!check" # No testsuite +source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz" +builddir="$srcdir"/$_pyname-$pkgver +subpackages="$pkgname-pyc" + +build() { + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 3 3>&1 >&2 +} + +package() { + python3 -m installer -d "$pkgdir" \ + dist/*.whl +} + +sha512sums=" +d82d6f1d9c7e589d42416d6d045b57a9c181bcdbc51b7e7d7ecb42d79d49160227790cb202a351a36f80ddfb6998d66b63ca46e998e03fe1fefdc64b2f67f0a1 py3-twilio-8.5.0.tar.gz +" diff --git a/user/py3-twilio/APKBUILD b/user/py3-twilio/APKBUILD deleted file mode 100644 index 4ecfeac..0000000 --- a/user/py3-twilio/APKBUILD +++ /dev/null @@ -1,28 +0,0 @@ -# Maintainer: Antoine Martin (ayakael) -# Contributor: Antoine Martin (ayakael) - -_pyname=twilio -pkgname="py3-$_pyname" -pkgver=7.17.0 -pkgrel=0 -arch="noarch" -pkgdesc="Twilio API client and TwiML generator" -url="https://pypi.python.org/project/$_pyname" -license="MIT" -depends="py3-requests py3-mock py3-flake8 py3-six py3-nose py3-python-jwt py3-twine py3-tz" -makedepends="py3-setuptools" -checkdepends="py3-pytest" -source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz" -builddir="$srcdir"/$_pyname-$pkgver - -check() { - PYTHONPATH="$srcdir" pytest || true -} - -package() { - python3 setup.py install --root="$pkgdir/" --optimize=1 - install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ -} -sha512sums=" -73f286d9c8571942e8f4ce2c03e87d5ec5ba075daa189e7e60014aece7b80bcc2da3ffcaea7b0f2a1e95ed2c193d389d7f3e7be02450a5c5bbc532dd928edcb7 py3-twilio-7.17.0.tar.gz -"