[arch-commits] Commit in python-aiohttp-openmetrics/trunk (PKGBUILD)

Daniel M. Capella polyzen at gemini.archlinux.org
Sat Sep 3 11:14:44 UTC 2022


    Date: Saturday, September 3, 2022 @ 11:14:43
  Author: polyzen
Revision: 1291659

upgpkg: python-aiohttp-openmetrics 0.0.7-2: Use PEP 517

Modified:
  python-aiohttp-openmetrics/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-03 11:14:36 UTC (rev 1291658)
+++ PKGBUILD	2022-09-03 11:14:43 UTC (rev 1291659)
@@ -3,13 +3,14 @@
 _name=aiohttp-openmetrics
 pkgname=python-aiohttp-openmetrics
 pkgver=0.0.7
-pkgrel=1
+pkgrel=2
 pkgdesc='OpenMetrics provider for aiohttp'
 arch=('any')
 url=https://github.com/jelmer/aiohttp-openmetrics
 license=('Apache')
 depends=('python-aiohttp' 'python-prometheus_client')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+             'python-wheel')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
 sha256sums=('91ce41e6d95c951eaf43f313452821d3607b044870070f4d802f74961c9f2526')
 b2sums=('cb6f5a432847cb6b054237970eee379df3a7a9898b97aa00ffab45de855fa0ecfd906dfe804992e3ccfe7f420daf86f0c4065b7fd24a5f150be808b656e635fd')
@@ -16,10 +17,10 @@
 
 build() {
   cd $_name-$pkgver
-  python setup.py build
+  python -m build --wheel --skip-dependency-check --no-isolation
 }
 
 package() {
   cd $_name-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
 }



More information about the arch-commits mailing list