[arch-commits] Commit in python-auditwheel/repos/community-any (PKGBUILD PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Sun Jan 24 19:19:50 UTC 2021
Date: Sunday, January 24, 2021 @ 19:19:49
Author: ffy00
Revision: 828950
archrelease: copy trunk to community-any
Added:
python-auditwheel/repos/community-any/PKGBUILD
(from rev 828949, python-auditwheel/trunk/PKGBUILD)
Deleted:
python-auditwheel/repos/community-any/PKGBUILD
----------+
PKGBUILD | 96 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 52 insertions(+), 44 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-01-24 19:19:39 UTC (rev 828949)
+++ PKGBUILD 2021-01-24 19:19:49 UTC (rev 828950)
@@ -1,44 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-_pkgname=auditwheel
-pkgname=python-$_pkgname
-pkgver=3.1.1
-pkgrel=2
-pkgdesc='Auditing and relabeling cross-distribution Linux wheels'
-arch=('any')
-url='https://github.com/pypa/auditwheel'
-license=('MIT' 'BSD')
-depends=('python' 'python-wheel' 'python-pyelftools' 'unzip' 'patchelf')
-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')
-
-export PBR_VERSION=$pkgver
-
-#prepare() {
-# find $_pkgname-$pkgver/tests -type f -exec sed -i 's|subprocess.run(\["auditwheel"|subprocess.run(\["python", "-m", "auditwheel"|' '{}' \+
-#}
-
-build() {
- cd $_pkgname-$pkgver
-
- python setup.py build
-}
-
-#check() {
-# cd $_pkgname-$pkgver
-#
-# tox -e py39 --current-env
-#}
-
-package() {
- cd $_pkgname-$pkgver
-
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm 644 auditwheel/policy/policy.json "$pkgdir"/usr/lib/python3.9/site-packages/auditwheel/policy/policy.json
-
- install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-auditwheel/repos/community-any/PKGBUILD (from rev 828949, python-auditwheel/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-01-24 19:19:49 UTC (rev 828950)
@@ -0,0 +1,52 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=auditwheel
+pkgname=python-$_pkgname
+pkgver=3.3.1
+pkgrel=1
+pkgdesc='Auditing and relabeling cross-distribution Linux wheels'
+arch=('any')
+url='https://github.com/pypa/auditwheel'
+license=('MIT' 'BSD')
+depends=('python' 'python-wheel' 'python-pyelftools' 'unzip' 'patchelf')
+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=('213063e3fa846b53f802499e71f30a53410e18a8e6a787019f07f79a9fd9687f436110c5765407f6a2ac40e4532f292c8c334264436a22322e90939f77e5231a')
+
+export PBR_VERSION=$pkgver
+
+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
+
+ python setup.py build
+}
+
+#check() {
+# cd $_pkgname-$pkgver
+#
+# tox -e py39 --current-env
+#}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm 644 auditwheel/policy/policy.json "$pkgdir"/usr/lib/python3.9/site-packages/auditwheel/policy/policy.json
+
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list