Date: Tuesday, January 3, 2023 @ 13:46:05 Author: felixonmars Revision: 1374926
upgpkg: python-whitenoise 6.3.0-1 Modified: python-whitenoise/trunk/PKGBUILD ----------+ PKGBUILD | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-03 13:21:48 UTC (rev 1374925) +++ PKGBUILD 2023-01-03 13:46:05 UTC (rev 1374926) @@ -1,7 +1,7 @@ # Maintainer: Felix Yan <[email protected]> pkgname=python-whitenoise -pkgver=6.2.0 +pkgver=6.3.0 pkgrel=1 pkgdesc='Radically simplified static file serving for WSGI applications' arch=('any') @@ -8,23 +8,23 @@ license=('MIT') url='https://github.com/evansd/whitenoise' depends=('python') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') checkdepends=('python-brotli' 'python-django' 'python-pytest' 'python-requests') source=("https://github.com/evansd/whitenoise/archive/$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('64d594708568ddecc8aba575504999651c730ddbc870859ee110700080f680af71d10a9ea3077a09ab2e89c398ab7d0798735b01db3dff96a48dcc74d7f292e3') +sha512sums=('c293e003167cb7c7aa63564bc373719f066f5e1b5cceaf0c9ceb19bd95284c321d557b988599f848d097b6c3bec3e692f7d026a835060b2fea803abf38ff924f') build() { cd whitenoise-$pkgver - python setup.py build + python -m build -nw } check() { cd whitenoise-$pkgver - DJANGO_SETTINGS_MODULE=tests.django_settings PYTHONPATH="$PWD"/build/lib pytest + DJANGO_SETTINGS_MODULE=tests.django_settings PYTHONPATH="$PWD"/src pytest } package() { cd whitenoise-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ }
