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

Filipe Laíns ffy00 at archlinux.org
Sun Jan 24 19:19:39 UTC 2021


    Date: Sunday, January 24, 2021 @ 19:19:39
  Author: ffy00
Revision: 828949

upgpkg: python-auditwheel 3.3.1-1

Modified:
  python-auditwheel/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-24 19:19:36 UTC (rev 828948)
+++ PKGBUILD	2021-01-24 19:19:39 UTC (rev 828949)
@@ -2,8 +2,8 @@
 
 _pkgname=auditwheel
 pkgname=python-$_pkgname
-pkgver=3.1.1
-pkgrel=2
+pkgver=3.3.1
+pkgrel=1
 pkgdesc='Auditing and relabeling cross-distribution Linux wheels'
 arch=('any')
 url='https://github.com/pypa/auditwheel'
@@ -12,14 +12,22 @@
 makedepends=('python-setuptools' 'python-pbr')
 #checkdepends=('python-tox-current-env' 'python-pip' 'python-pytest' 'python-jsonschema' 'python-pretend' 'python-docker')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('441ecc496573693fe798d2a14f1b3b810e8cac89d450e5631b4f780a1fcbedca16f383d765cfb61ee9d1f96e7238aca736fa04366a9aaaf0d0a792c2a643175c')
+sha512sums=('213063e3fa846b53f802499e71f30a53410e18a8e6a787019f07f79a9fd9687f436110c5765407f6a2ac40e4532f292c8c334264436a22322e90939f77e5231a')
 
 export PBR_VERSION=$pkgver
 
-#prepare() {
+prepare() {
+  cd $_pkgname-$pkgver
 #  find $_pkgname-$pkgver/tests -type f -exec sed -i 's|subprocess.run(\["auditwheel"|subprocess.run(\["python", "-m", "auditwheel"|' '{}' \+
-#}
 
+  # replace the vendored wheel module with the one on the system
+  find -type f -name '*.py' -exec \
+      sed -i 's|\._vendor\.wheel|wheel|' '{}' \+
+
+  # remove vendored wheel module
+  rm -rf auditwheel/_vendor
+}
+
 build() {
   cd $_pkgname-$pkgver
 



More information about the arch-commits mailing list