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

David Runge dvzrv at gemini.archlinux.org
Fri Sep 24 16:05:15 UTC 2021


    Date: Friday, September 24, 2021 @ 16:05:15
  Author: dvzrv
Revision: 1023829

upgpkg: python-django-appconf 1.0.5-1: Upgrade to 1.0.5.

Remove now unnecessary __pycache__ removal.
Do not rely on python-coverage to run tests in check().
Simplify installation in check() to adhere to python package guidelines.

Modified:
  python-django-appconf/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-24 16:00:25 UTC (rev 1023828)
+++ PKGBUILD	2021-09-24 16:05:15 UTC (rev 1023829)
@@ -2,8 +2,8 @@
 
 _name=django-appconf
 pkgname=python-django-appconf
-pkgver=1.0.4
-pkgrel=4
+pkgver=1.0.5
+pkgrel=1
 pkgdesc="An app to handle configuration defaults of packaged Django apps gracefully"
 arch=('any')
 url="https://github.com/django-compressor/django-appconf"
@@ -10,17 +10,13 @@
 license=('BSD')
 depends=('python-django' 'python-six')
 makedepends=('python-setuptools')
-checkdepends=('python-coverage' 'python-pytest')
+checkdepends=('python-pytest')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('0d0a206d43d4c6d7f3dbe5fb6423f5f012dae42bae7459f3ee06501f9c126e73f69a30da5c34c84014e582a7b42f253ebd37ece8b8477963cb5d2357ca095639')
-b2sums=('21af3c3913aafe6a7670256bb10e80d0ac286fdeea646f91e8696470be3c1dcfb0b6d04e626f80784de02693583bf0b7a16da658175f8a1d81200a5c837831ee')
+sha512sums=('9d1b01e3f8dac5a9a7f6f4f5c0e9fcf4a2a0177e7702e5f932f238379bd2bb065a698c86d27c2dbab7ba6480abdc25595c8a4f7c6f0524517aeb1c0e34f09864')
+b2sums=('4d031a229ab11d55d85887346cf208cbe1136e48b78a4c096ba6d67017d80031d634cbeef82783713e4e005fe8a19f1f8e12193450b04e968b8ea5a94290f2bc')
 
 prepare() {
   mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-  cd "$pkgname-$pkgver"
-  # removing pre-populated __pycache__ directory
-  # https://github.com/django-compressor/django-appconf/issues/72
-  rm -rf tests/__pycache__
 }
 
 build() {
@@ -31,15 +27,13 @@
 check() {
   cd "$pkgname-$pkgver"
   export PYTHONPATH="${PWD}:build:${PYTHONPATH}"
-  DJANGO_SETTINGS_MODULE=tests.test_settings coverage run /usr/bin/django-admin.py test -v2 tests
+  DJANGO_SETTINGS_MODULE=tests.test_settings django-admin test -v2 tests
   rm -rf tests/__pycache__
 }
 
 package() {
   cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}"
+  python setup.py install --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