Date: Friday, November 18, 2022 @ 04:07:43 Author: felixonmars Revision: 1349429
archrelease: copy trunk to community-any Added: python-wheel/repos/community-any/PKGBUILD (from rev 1349428, python-wheel/trunk/PKGBUILD) Deleted: python-wheel/repos/community-any/PKGBUILD ----------+ PKGBUILD | 100 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 50 insertions(+), 50 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-11-18 04:07:35 UTC (rev 1349428) +++ PKGBUILD 2022-11-18 04:07:43 UTC (rev 1349429) @@ -1,50 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Maintainer: Morten Linderud <foxbo...@archlinux.org> -# Contributor: Lance Chen <cyen0...@gmail.com> - -_pypiname=wheel -pkgname=python-wheel -pkgver=0.38.3 -pkgrel=1 -pkgdesc="A built-package format for Python" -arch=(any) -url="https://pypi.python.org/pypi/wheel" -license=('MIT') -depends=('python-packaging') -optdepends=('python-keyring: for wheel.signatures' - 'python-xdg: for wheel.signatures') -makedepends=('python-setuptools') -checkdepends=('python-jsonschema' 'python-pytest' 'python-keyring' 'python-keyrings-alt' - 'python-xdg' 'python-pytest-cov') -source=("$pkgname-$pkgver.tar.gz::https://github.com/pypa/wheel/archive/$pkgver.tar.gz") -sha512sums=('e7a9b922fad3552b60d86123b002762e6a672253fdad8580c93ccea8c57619d450345c948b5e36857b264b7214860ee7f77650f7a269f455c2aa952116023798') - -prepare() { - cd wheel-$pkgver - # don't depend on python-coverage for tests - sed -i 's/--cov=wheel//' setup.cfg - - # https://github.com/pypa/wheel/pull/365 but why? - rm -r src/wheel/vendored - sed -i 's/from .vendored.packaging import tags/from packaging import tags/' src/wheel/bdist_wheel.py - sed -i 's/from wheel.vendored.packaging import tags/from packaging import tags/' tests/test_bdist_wheel.py -} - -build() { - cd wheel-$pkgver - python setup.py build -} - -check() { - # Hack entry points by installing it - - cd wheel-$pkgver - python setup.py install --root="$PWD/tmp_install" --optimize=1 - PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages" pytest -} - -package() { - cd wheel-$pkgver - python setup.py install --root="$pkgdir/" --optimize=1 --skip-build - install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ -} Copied: python-wheel/repos/community-any/PKGBUILD (from rev 1349428, python-wheel/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-11-18 04:07:43 UTC (rev 1349429) @@ -0,0 +1,50 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Maintainer: Morten Linderud <foxbo...@archlinux.org> +# Contributor: Lance Chen <cyen0...@gmail.com> + +_pypiname=wheel +pkgname=python-wheel +pkgver=0.38.4 +pkgrel=1 +pkgdesc="A built-package format for Python" +arch=(any) +url="https://pypi.python.org/pypi/wheel" +license=('MIT') +depends=('python-packaging') +optdepends=('python-keyring: for wheel.signatures' + 'python-xdg: for wheel.signatures') +makedepends=('python-setuptools') +checkdepends=('python-jsonschema' 'python-pytest' 'python-keyring' 'python-keyrings-alt' + 'python-xdg' 'python-pytest-cov') +source=("$pkgname-$pkgver.tar.gz::https://github.com/pypa/wheel/archive/$pkgver.tar.gz") +sha512sums=('2ff7c6175201f8145f2c1f9937c6955a1dd22eeedab1e456f65c4edae9186610d9e7702c35773b49026c56c9cc201672025e7d42fcc7f782153c65c28e6b90d0') + +prepare() { + cd wheel-$pkgver + # don't depend on python-coverage for tests + sed -i 's/--cov=wheel//' setup.cfg + + # https://github.com/pypa/wheel/pull/365 but why? + rm -r src/wheel/vendored + sed -i 's/from .vendored.packaging import tags/from packaging import tags/' src/wheel/bdist_wheel.py + sed -i 's/from wheel.vendored.packaging import tags/from packaging import tags/' tests/test_bdist_wheel.py +} + +build() { + cd wheel-$pkgver + python setup.py build +} + +check() { + # Hack entry points by installing it + + cd wheel-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages" pytest +} + +package() { + cd wheel-$pkgver + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ +}