[arch-commits] Commit in python-django-compressor/repos/community-staging-any (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Nov 14 19:49:56 UTC 2020
Date: Saturday, November 14, 2020 @ 19:49:56
Author: felixonmars
Revision: 754150
archrelease: copy trunk to community-staging-any
Added:
python-django-compressor/repos/community-staging-any/PKGBUILD
(from rev 754149, python-django-compressor/trunk/PKGBUILD)
Deleted:
python-django-compressor/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 88 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 45 insertions(+), 43 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-14 19:49:40 UTC (rev 754149)
+++ PKGBUILD 2020-11-14 19:49:56 UTC (rev 754150)
@@ -1,43 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=django_compressor
-pkgname=python-django-compressor
-pkgver=2.4
-pkgrel=2
-pkgdesc="Compresses linked and inline javascript or CSS into a single cached file"
-arch=('any')
-url="https://github.com/django-compressor/django-compressor"
-license=('Apache' 'BSD' 'MIT')
-depends=('python-django-appconf' 'python-rcssmin' 'python-rjsmin')
-makedepends=('python-setuptools')
-checkdepends=('python-beautifulsoup4' 'python-brotli' 'python-calmjs'
-'python-coverage' 'python-csscompressor' 'python-django-classy-tags'
-'python-django-sekizai' 'python-html5lib' 'python-jinja' 'python-lxml'
-'python-mock' 'slimit')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('b4dd43ab4ad13872138c9b9be3012e2675db2131b384350c5aa13ac7859b1aa93760cc3b9c91393f51bac404eb66ae04f35b187e0b0ebacf5f0da457dd42e727')
-
-prepare() {
- mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
-build() {
- cd "$pkgname-$pkgver"
- python setup.py build
-}
-
-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}"
- install -vDm 644 {AUTHORS,README.rst} -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}
Copied: python-django-compressor/repos/community-staging-any/PKGBUILD (from rev 754149, python-django-compressor/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-14 19:49:56 UTC (rev 754150)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=django_compressor
+pkgname=python-django-compressor
+pkgver=2.4
+pkgrel=3
+pkgdesc="Compresses linked and inline javascript or CSS into a single cached file"
+arch=('any')
+url="https://github.com/django-compressor/django-compressor"
+license=('Apache' 'BSD' 'MIT')
+depends=('python-django-appconf' 'python-rcssmin' 'python-rjsmin')
+makedepends=('python-setuptools')
+checkdepends=('python-beautifulsoup4' 'python-brotli' 'python-calmjs'
+'python-coverage' 'python-csscompressor' 'python-django-classy-tags'
+'python-django-sekizai' 'python-html5lib' 'python-jinja' 'python-lxml'
+'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"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+# 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 \
+ --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