Date: Saturday, June 18, 2022 @ 15:22:22
  Author: dvzrv
Revision: 1238422

archrelease: copy trunk to community-any

Added:
  python-django-filter/repos/community-any/PKGBUILD
    (from rev 1238421, python-django-filter/trunk/PKGBUILD)
Deleted:
  python-django-filter/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   74 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 34 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-06-18 15:22:04 UTC (rev 1238421)
+++ PKGBUILD    2022-06-18 15:22:22 UTC (rev 1238422)
@@ -1,40 +0,0 @@
-# Maintainer: David Runge <dv...@archlinux.org>
-
-_name=django-filter
-pkgname=python-django-filter
-pkgver=21.1
-pkgrel=2
-pkgdesc="A generic system for filtering Django QuerySets based on user 
selections"
-arch=('any')
-url="https://github.com/carltongibson/django-filter";
-license=('BSD')
-depends=('python-django')
-makedepends=('python-setuptools')
-checkdepends=('python-django-crispy-forms' 'python-django-rest-framework'
-'python-mock' 'python-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz";)
-sha512sums=('df2b02bfa93874d9684a26394778203b827c6459ab8cc8c581677e6ccfeedf1323085f53fb52cfc3e0e0a3d27f86de655366bcd4be361502ce86e65b4a4e84d0')
-b2sums=('f0ae3119a1dfa466e6630f7da44db1531172991b137fe9420ed533a7b3d4177f689f07fed115566854bd40e5e23f4e9f2f73be32188af2c067a81a95fbccc5a3')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  python runtests.py
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --optimize=1 --root="${pkgdir}"
-  install -vDm 644 {AUTHORS,{CHANGES,README}.rst} \
-    -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}

Copied: python-django-filter/repos/community-any/PKGBUILD (from rev 1238421, 
python-django-filter/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-06-18 15:22:22 UTC (rev 1238422)
@@ -0,0 +1,34 @@
+# Maintainer: David Runge <dv...@archlinux.org>
+
+_name=django-filter
+pkgname=python-django-filter
+pkgver=22.1
+pkgrel=1
+pkgdesc="A generic system for filtering Django QuerySets based on user 
selections"
+arch=(any)
+url="https://github.com/carltongibson/django-filter";
+license=(BSD)
+depends=(python-django)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-django-crispy-forms python-django-rest-framework
+python-mock python-pytest)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('0b92186cc6831351b22a7d0d8c447ec3fbd25db03402b47cdae650c8e4f9a80f384c49540bcacf1f15bfe07f27b77e0950d9ec69fab4b839f23a89486d611be9')
+b2sums=('3dba7579d527ee742cc89698a8c0812f12b82c807a02060d7acd7b280dc748f5bf4eada60ace1ebac2153bc6058ef3f73cce99de173e4e356b7ff19c84c4e421')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  python runtests.py
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 {AUTHORS,{CHANGES,README}.rst} -t 
"$pkgdir/usr/share/doc/$pkgname/"
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+}

Reply via email to