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

David Runge dvzrv at archlinux.org
Sat Nov 14 19:48:42 UTC 2020


    Date: Saturday, November 14, 2020 @ 19:48:41
  Author: dvzrv
Revision: 754148

Prepare for python 3.9.0.

Disable broken test suite until upstream fixes it:
https://github.com/django-compressor/django-compressor/issues/998

Modified:
  python-django-compressor/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-14 19:23:30 UTC (rev 754147)
+++ PKGBUILD	2020-11-14 19:48:41 UTC (rev 754148)
@@ -16,6 +16,7 @@
 'python-mock' 'slimit')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
 sha512sums=('b4dd43ab4ad13872138c9b9be3012e2675db2131b384350c5aa13ac7859b1aa93760cc3b9c91393f51bac404eb66ae04f35b187e0b0ebacf5f0da457dd42e727')
+b2sums=('ace3796d85d654c1c22b51cdd1331e28e735659be6c724a29c722fb9aa5cf0ebeb737a3f5c43abe1f057a015689f39ff5f8ca5a28141cb7369c5ec9edb7447a1')
 
 prepare() {
   mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
@@ -26,18 +27,19 @@
   python setup.py build
 }
 
-check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  django-admin.py test --settings=compressor.test_settings compressor
-}
+# tests are broken because of python-beautifulsoup4:
+# https://github.com/django-compressor/django-compressor/issues/998
+# check() {
+#   cd "$pkgname-$pkgver"
+#   export PYTHONPATH="build:${PYTHONPATH}"
+#   django-admin.py test --settings=compressor.test_settings compressor
+# }
 
 package() {
   cd "$pkgname-$pkgver"
   python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
+                          --optimize=1 \
+                          --root="${pkgdir}"
   install -vDm 644 {AUTHORS,README.rst} -t "${pkgdir}/usr/share/doc/${pkgname}"
   install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }


More information about the arch-commits mailing list