[arch-commits] Commit in python-django-crispy-forms/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Tue Jan 25 20:18:18 UTC 2022


    Date: Tuesday, January 25, 2022 @ 20:18:18
  Author: dvzrv
Revision: 1115561

upgpkg: python-django-crispy-forms 1.14.0-1: Upgrade to 1.14.0.

Simplify quoting in file.
Remove unnecessary prepare().
Do not break long lines.

Modified:
  python-django-crispy-forms/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++------------------
 1 file changed, 13 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-25 20:05:24 UTC (rev 1115560)
+++ PKGBUILD	2022-01-25 20:18:18 UTC (rev 1115561)
@@ -2,38 +2,33 @@
 
 _name=django-crispy-forms
 pkgname=python-django-crispy-forms
-pkgver=1.13.0
-pkgrel=3
+pkgver=1.14.0
+pkgrel=1
 pkgdesc="The best way to have DRY Django forms"
-arch=('any')
+arch=(any)
 url="https://github.com/django-crispy-forms/django-crispy-forms"
-license=('MIT')
-depends=('python-django')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest' 'python-pytest-django')
+license=(MIT)
+depends=(python-django)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest python-pytest-django)
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('a52709470df3e4f32671cfa488135cea8947f726f6874bc2943f4c4f132c08d01fb6bc18a1b78e2756e381815d80c140c5e99c4db8ea1dffe7943b0ed1c03ecf')
-b2sums=('6efe657d897a4178683e79c1548cc598d59e95bddf4092bf3c3790e28d67e5f0c2d860574f14fd41104e737751197adc0f100fcf93f18d8129e2768ccb4c08df')
+sha512sums=('02c5f7e6241b57a844fa8b4a5afbc1b77d3c1fd2eae4209763fb826a3da90db4ed0e66de4b7b1c04d5caf52bc101c7979c27b9109288d0ac84706d2124ae179d')
+b2sums=('baa605c12bb40291ff4f36b4af63f07f7492a88dfb31da29b7500b19bdec0943adec76ace50ac8b29cbf5c6570619eba3eed596c7d3296922ef592acbc6a2efc')
 
-prepare() {
-  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
 build() {
-  cd "$pkgname-$pkgver"
+  cd "${_name}-${pkgver}"
   python setup.py build
 }
 
 check() {
-  cd "$pkgname-$pkgver"
+  cd "${_name}-${pkgver}"
   export PYTHONPATH="build:${PYTHONPATH}"
   DJANGO_SETTINGS_MODULE=crispy_forms.tests.test_settings pytest -v crispy_forms/tests
 }
 
 package() {
-  cd "$pkgname-$pkgver"
+  cd "${_name}-${pkgver}"
   python setup.py install --optimize=1 --root="${pkgdir}"
-  install -vDm 644 {CONTRIBUTORS.txt,README.rst} \
-    -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 {CONTRIBUTORS.txt,README.rst} -t "${pkgdir}/usr/share/doc/${pkgname}"
   install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }



More information about the arch-commits mailing list