Date: Sunday, April 23, 2023 @ 08:35:49
  Author: polyzen
Revision: 1448371

upgpkg: python-aiohttp-apispec 2.2.3-3: Use PEP 517

Modified:
  python-aiohttp-apispec/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-23 07:37:20 UTC (rev 1448370)
+++ PKGBUILD    2023-04-23 08:35:49 UTC (rev 1448371)
@@ -3,13 +3,14 @@
 _pkgname=aiohttp-apispec
 pkgname=python-$_pkgname
 pkgver=2.2.3
-pkgrel=2
+pkgrel=3
 pkgdesc='Build and document REST APIs with aiohttp and apispec'
 arch=('any')
 url='https://github.com/maximdanilchenko/aiohttp-apispec'
 license=('MIT')
 depends=('python-aiohttp' 'python-apispec' 'python-webargs' 'python-jinja')
-makedepends=('python-setuptools' 'python-pip')
+makedepends=('python-build' 'python-installer' 'python-pip' 'python-setuptools'
+             'python-wheel')
 checkdepends=('python-pytest-runner' 'python-pytest-aiohttp' 
'python-pytest-asyncio')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
          3b4d08ea.patch)
@@ -23,7 +24,7 @@
 build() {
   cd $_pkgname-$pkgver
 
-  python setup.py build
+  python -m build --wheel --skip-dependency-check --no-isolation
 }
 
 check() {
@@ -35,7 +36,7 @@
 package() {
   cd $_pkgname-$pkgver
 
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
 
   install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }

Reply via email to