Date: Saturday, September 3, 2022 @ 17:33:51
  Author: ffy00
Revision: 1292648

upgpkg: python-auditwheel 5.1.2-1

Modified:
  python-auditwheel/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-09-03 17:18:27 UTC (rev 1292647)
+++ PKGBUILD    2022-09-03 17:33:51 UTC (rev 1292648)
@@ -2,23 +2,20 @@
 
 _pkgname=auditwheel
 pkgname=python-$_pkgname
-pkgver=3.3.1
-pkgrel=2
+pkgver=5.1.2
+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')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-setuptools-scm' 'python-wheel')
+#checkdepends=('python-pytest' 'python-jsonschema' 'python-pretend' 
'python-docker')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('213063e3fa846b53f802499e71f30a53410e18a8e6a787019f07f79a9fd9687f436110c5765407f6a2ac40e4532f292c8c334264436a22322e90939f77e5231a')
+sha512sums=('6536b2fd9ce568a2079abbe83469fe3e25ce28a947b37f63302b440d86db94d8d5baa168a5ccdecf95f8109f501da945c5f093545b0f4e3bbca4542cbe90bb0f')
 
-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 \
@@ -31,20 +28,23 @@
 build() {
   cd $_pkgname-$pkgver
 
-  python setup.py build
+  SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python -m build -nw
 }
 
 #check() {
 #  cd $_pkgname-$pkgver
 #
-#  tox -e py310 --current-env
+#  python -m venv --system-site-packages test
+#  test/bin/python -m installer dist/*.whl
+#
+#  PATH="test/bin:$PATH" python -m pytest
 #}
 
 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.10/site-packages/auditwheel/policy/policy.json
+  python -m installer -d "$pkgdir" dist/*.whl
+  #install -Dm 644 auditwheel/policy/policy.json 
"$pkgdir"/usr/lib/python3.10/site-packages/auditwheel/policy/policy.json
 
   install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }

Reply via email to