From c4259dee256ed901bf7c4e9cd69ad09cd9726c8e Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 30 Aug 2023 13:54:56 -0400 Subject: [PATCH] testing/py3-django-prometheus: move from user --- testing/py3-django-prometheus/APKBUILD | 50 ++++++++++++++++++++++++++ user/py3-django-prometheus/APKBUILD | 32 ----------------- 2 files changed, 50 insertions(+), 32 deletions(-) create mode 100644 testing/py3-django-prometheus/APKBUILD delete mode 100644 user/py3-django-prometheus/APKBUILD diff --git a/testing/py3-django-prometheus/APKBUILD b/testing/py3-django-prometheus/APKBUILD new file mode 100644 index 0000000..9f7ccd0 --- /dev/null +++ b/testing/py3-django-prometheus/APKBUILD @@ -0,0 +1,50 @@ +# Maintainer: Antoine Martin (ayakael) +# Contributor: Antoine Martin (ayakael) + +_pyname=django-prometheus +pkgname="py3-$_pyname" +pkgver=2.3.1 +pkgrel=0 +arch="noarch" +pkgdesc="Django middlewares to monitor your application with Prometheus.io." +url="https://pypi.python.org/project/$_pyname" +license="MIT" +depends=" + py3-django + py3-prometheus-client + py3-psycopg2 + py3-mysqlclient + py3-memcached + py3-django-redis + " +makedepends=" + py3-setuptools + py3-gpep517 + py3-installer + py3-wheel + " +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 +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=" +523cfa7023e1e8921c687bd010a4c6384e1e4142fb702887d1d0bd60194b5111e92e53fec07df89eaea07cd7aa806edef79ab303a67d866d18eacde257db3c03 py3-django-prometheus-2.3.1.tar.gz +" diff --git a/user/py3-django-prometheus/APKBUILD b/user/py3-django-prometheus/APKBUILD deleted file mode 100644 index a191221..0000000 --- a/user/py3-django-prometheus/APKBUILD +++ /dev/null @@ -1,32 +0,0 @@ -# Maintainer: Antoine Martin (ayakael) -# Contributor: Antoine Martin (ayakael) - -_pyname=django-prometheus -pkgname="py3-$_pyname" -pkgver=2.2.0 -pkgrel=1 -arch="noarch" -pkgdesc="Django middlewares to monitor your application with Prometheus.io." -url="https://pypi.python.org/project/$_pyname" -license="MIT" -depends="py3-django py3-prometheus-client py3-psycopg2 py3-mysqlclient py3-memcached py3-django-redis" -makedepends="py3-setuptools py3-pip py3-wheel" -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 - -build() { - python3 setup.py build -} - -check() { - PYTHONPATH="$PWD/src" pytest || true -} - -package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ -} -sha512sums=" -a72c8345f220799ad0709e0e73912229267b5e01fc67ae7f647e53ccf7c7e170ad2456c81070a002dc411e840b1129d55719a7aa891b4dabe262837c8c7b3db5 py3-django-prometheus-2.2.0.tar.gz -"