Date: Tuesday, January 3, 2023 @ 13:46:17
  Author: felixonmars
Revision: 1374927

archrelease: copy trunk to community-any

Added:
  python-whitenoise/repos/community-any/PKGBUILD
    (from rev 1374926, python-whitenoise/trunk/PKGBUILD)
Deleted:
  python-whitenoise/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   60 ++++++++++++++++++++++++++++++------------------------------
 1 file changed, 30 insertions(+), 30 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-03 13:46:05 UTC (rev 1374926)
+++ PKGBUILD    2023-01-03 13:46:17 UTC (rev 1374927)
@@ -1,30 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-whitenoise
-pkgver=6.2.0
-pkgrel=1
-pkgdesc='Radically simplified static file serving for WSGI applications'
-arch=('any')
-license=('MIT')
-url='https://github.com/evansd/whitenoise'
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-brotli' 'python-django' 'python-pytest' 
'python-requests')
-source=("https://github.com/evansd/whitenoise/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('64d594708568ddecc8aba575504999651c730ddbc870859ee110700080f680af71d10a9ea3077a09ab2e89c398ab7d0798735b01db3dff96a48dcc74d7f292e3')
-
-build() {
-  cd whitenoise-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd whitenoise-$pkgver
-  DJANGO_SETTINGS_MODULE=tests.django_settings PYTHONPATH="$PWD"/build/lib 
pytest
-}
-
-package() {
-  cd whitenoise-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-whitenoise/repos/community-any/PKGBUILD (from rev 1374926, 
python-whitenoise/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-01-03 13:46:17 UTC (rev 1374927)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-whitenoise
+pkgver=6.3.0
+pkgrel=1
+pkgdesc='Radically simplified static file serving for WSGI applications'
+arch=('any')
+license=('MIT')
+url='https://github.com/evansd/whitenoise'
+depends=('python')
+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=('c293e003167cb7c7aa63564bc373719f066f5e1b5cceaf0c9ceb19bd95284c321d557b988599f848d097b6c3bec3e692f7d026a835060b2fea803abf38ff924f')
+
+build() {
+  cd whitenoise-$pkgver
+  python -m build -nw
+}
+
+check() {
+  cd whitenoise-$pkgver
+  DJANGO_SETTINGS_MODULE=tests.django_settings PYTHONPATH="$PWD"/src pytest
+}
+
+package() {
+  cd whitenoise-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to