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

Caleb Maclennan alerque at gemini.archlinux.org
Mon Feb 28 08:31:25 UTC 2022


    Date: Monday, February 28, 2022 @ 08:31:25
  Author: alerque
Revision: 1138235

upgpkg: python-astroid 2.10.0-2; switch to pep517 build/installer

Modified:
  python-astroid/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-28 08:30:47 UTC (rev 1138234)
+++ PKGBUILD	2022-02-28 08:31:25 UTC (rev 1138235)
@@ -6,7 +6,7 @@
 _pyname=astroid
 pkgname=python-$_pyname
 pkgver=2.10.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A common base representation of python source code'
 arch=(any)
 url="https://github.com/PyCQA/$_pyname"
@@ -16,7 +16,9 @@
          wrapt)
 depends=(python
          "${_pydeps[@]/#/python-}")
-makedepends=(python-setuptools)
+makedepends=(python-{build,installer}
+             python-setuptools
+             python-wheel)
 checkdepends=(python-pytest)
 replaces=(python-logilab-astng)
 conflicts=(python-logilab-astng)
@@ -26,7 +28,7 @@
 
 build() {
 	cd "$_archive"
-	python setup.py build
+	python -m build -wn
 }
 
 check() {
@@ -36,5 +38,5 @@
 
 package() {
 	cd "$_archive"
-	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+	python -m installer -d "$pkgdir" dist/*.whl
 }



More information about the arch-commits mailing list