Date: Saturday, September 3, 2022 @ 17:33:55 Author: ffy00 Revision: 1292649
archrelease: copy trunk to community-any Added: python-auditwheel/repos/community-any/PKGBUILD (from rev 1292648, python-auditwheel/trunk/PKGBUILD) Deleted: python-auditwheel/repos/community-any/PKGBUILD ----------+ PKGBUILD | 104 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-09-03 17:33:51 UTC (rev 1292648) +++ PKGBUILD 2022-09-03 17:33:55 UTC (rev 1292649) @@ -1,52 +0,0 @@ -# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org> - -_pkgname=auditwheel -pkgname=python-$_pkgname -pkgver=3.3.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=('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 py310 --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.10/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 1292648, python-auditwheel/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-09-03 17:33:55 UTC (rev 1292649) @@ -0,0 +1,52 @@ +# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org> + +_pkgname=auditwheel +pkgname=python-$_pkgname +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-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=('6536b2fd9ce568a2079abbe83469fe3e25ce28a947b37f63302b440d86db94d8d5baa168a5ccdecf95f8109f501da945c5f093545b0f4e3bbca4542cbe90bb0f') + +prepare() { + cd $_pkgname-$pkgver + + # 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 + + SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python -m build -nw +} + +#check() { +# cd $_pkgname-$pkgver +# +# 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 -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 +} + +# vim:set ts=2 sw=2 et: