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

David Runge dvzrv at gemini.archlinux.org
Sun Jan 23 15:38:47 UTC 2022


    Date: Sunday, January 23, 2022 @ 15:38:47
  Author: dvzrv
Revision: 1113629

upgpkg: python-django-sekizai 3.0.0-1: Upgrade to 3.0.0.

Remove unneeded prepare().
Simplify quoting in file.
Open updated issue about missing tests in sdist tarball:
https://github.com/django-cms/django-sekizai/issues/115
Simplify installation in prepare() to adhere to python package guidelines.
Open issue about deprecated way of running tests.
Remove now unnecessary removal of tests directory (upstream fixed this).

Modified:
  python-django-sekizai/trunk/PKGBUILD

----------+
 PKGBUILD |   43 +++++++++++++++++--------------------------
 1 file changed, 17 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-23 15:38:25 UTC (rev 1113628)
+++ PKGBUILD	2022-01-23 15:38:47 UTC (rev 1113629)
@@ -2,45 +2,36 @@
 
 _name=django-sekizai
 pkgname=python-django-sekizai
-pkgver=2.0.0
-pkgrel=7
+pkgver=3.0.0
+pkgrel=1
 pkgdesc="Django Template Blocks with extra functionality"
-arch=('any')
-url="https://github.com/divio/django-sekizai"
-license=('BSD')
-depends=('python-django' 'python-django-classy-tags')
-makedepends=('python-setuptools')
+arch=(any)
+url="https://github.com/django-cms/django-sekizai"
+license=(BSD)
+depends=(python-django python-django-classy-tags)
+makedepends=(python-setuptools)
 # test files are missing in pypi sdist tarball
-# https://github.com/divio/django-sekizai/issues/87
+# https://github.com/django-cms/django-sekizai/issues/115
 # source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/divio/${_name}/archive/${pkgver}.tar.gz")
-sha512sums=('edac88decc17e98eb30e399cb6e3a2b21941c920163ef8c8d412fec28e5137e470401b65189a9f0cbb2adbce240a4c8c2cb03e0f9735d1de2d5445fcf32f6e03')
-b2sums=('a1760cdcb234400af4bc5c0bc69699439a9082cda49731992ad57cf162beba7d88e4e06d826a6fcf7e34af11f5ac42e6c7f83ce058cb0af0566c50a5cc3a9efc')
+source=("${_name}-${pkgver}.tar.gz::https://github.com/divio/${_name}/archive/${pkgver}.tar.gz")
+sha512sums=('1e307a5dc04b2f5492bb954146ab0a421b2342497ded5d3b5ce34d83afc17a82f306ad80c3c5e028b4f3f730d2b63f400c6a519d257b19f1e304ef092c531891')
+b2sums=('c8461a935177b6655e42d6ef043f728dbe025e625d1b70e6045b19972f0217acf1fa0605a33c3ddfa5a0644cdfbbeb6f676aeb456ea0907ac14489e1c19bdd7b')
 
-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}"
+  # project uses deprecated way of running tests: https://github.com/django-cms/django-sekizai/issues/116
   python setup.py test
 }
 
 package() {
-  local site_packages="$(python -c "import site; print(site.getsitepackages()[0])")"
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}"
+  cd "${_name}-${pkgver}"
+  python setup.py install --optimize=1 --root="${pkgdir}"
   install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  # remove conflicting test files
-  # https://github.com/divio/django-sekizai/issues/97
-  rm -rvf "${pkgdir}/${site_packages}/tests"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }



More information about the arch-commits mailing list