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

David Runge dvzrv at gemini.archlinux.org
Sun Jan 23 15:19:29 UTC 2022


    Date: Sunday, January 23, 2022 @ 15:19:29
  Author: dvzrv
Revision: 1113609

upgpkg: python-django-classy-tags 3.0.0-1: Upgrade to 3.0.0.

Remove unneeded prepare().
Simplify quoting in file.
Add new upstream ticket to track missing tests in sdist tarball:
https://github.com/django-cms/django-classy-tags/issues/69
Simplify installation in package() to adhere to Python package guidelines.
Remove unneeded tests dir removal (upstream fixed this).

Modified:
  python-django-classy-tags/trunk/PKGBUILD

----------+
 PKGBUILD |   46 ++++++++++++++++++----------------------------
 1 file changed, 18 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-23 14:58:59 UTC (rev 1113608)
+++ PKGBUILD	2022-01-23 15:19:29 UTC (rev 1113609)
@@ -2,46 +2,36 @@
 
 _name=django-classy-tags
 pkgname=python-django-classy-tags
-pkgver=2.0.0
-pkgrel=6
+pkgver=3.0.0
+pkgrel=1
 pkgdesc="Class based template tags for django"
-arch=('any')
-url="https://github.com/divio/django-classy-tags"
-license=('BSD')
-depends=('python-django' 'python-six')
-makedepends=('python-setuptools')
-checkdepends=('python-coverage' 'python-pytest')
-# LICENSE and tests not in pypi tarball in python-django-classy-tags <= 0.9.0
-# https://github.com/divio/django-classy-tags/issues/52
+arch=(any)
+url="https://github.com/django-cms/django-classy-tags"
+license=(BSD)
+depends=(python-django python-six)
+makedepends=(python-setuptools)
+checkdepends=(python-coverage python-pytest)
+# tests not in pypi.org sdist tarball
+# https://github.com/django-cms/django-classy-tags/issues/69
 # 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=('839186b48b91c02d325b93df61731382e35741009932c52c497c3f0fbaa2ff309b8a69842094ea1e7d0299ab0f320e1a246c6111255807dd452b0c8e589c83bd')
-b2sums=('1f038ed48468e12fa7dce3b7dd2582f36954c15947420da9337c98b0633225f681f2df0339d13615002be9c6d603843006d6617ef4f3f35f9e469a4991380d87')
+source=("${_name}-${pkgver}.tar.gz::https://github.com/divio/${_name}/archive/${pkgver}.tar.gz")
+sha512sums=('9273322b36668b41706457ff29a471b647bcafa843cd0dfc2e4f9a94c931f5b7e85e508a93a9a97386a3aebb4a7064e6ea2132347986704e3f8a1d21ab4d53cf')
+b2sums=('066b2c8a1cf8b3d5cd40a1a8df7736e5cbd7b83b557d283b9861b1d14437b2c72ac4ffa0f71ed7818c1e9fb33be8c39e06e088561dd134190639696a825297f6')
 
-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}"
   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-classy-tags/issues/58
-  rm -rvf "${pkgdir}/${site_packages}/tests"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }



More information about the arch-commits mailing list