[arch-commits] Commit in sigal/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Fri Apr 8 18:39:18 UTC 2022


    Date: Friday, April 8, 2022 @ 18:39:17
  Author: dvzrv
Revision: 1183033

upgpkg: sigal 2.3-1: Upgrade to 2.3.

Remove unneeded quotes and curly braces.
Switch to PEP517.

Modified:
  sigal/trunk/PKGBUILD

----------+
 PKGBUILD |   56 +++++++++++++++++++++++++++-----------------------------
 1 file changed, 27 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-08 18:38:22 UTC (rev 1183032)
+++ PKGBUILD	2022-04-08 18:39:17 UTC (rev 1183033)
@@ -1,43 +1,41 @@
 # Maintainer: David Runge <dvzrv at archlinux.org>
 
 pkgname=sigal
-pkgver=2.2
-pkgrel=2
+pkgver=2.3
+pkgrel=1
 pkgdesc="Yet another simple static gallery generator"
-arch=('any')
+arch=(any)
 url="http://sigal.saimon.org/en/latest/"
-license=('MIT')
-depends=('ffmpeg' 'python-blinker' 'python-click' 'python-jinja'
-'python-markdown' 'python-natsort' 'python-pillow' 'python-pilkit')
-makedepends=('python-setuptools-scm' 'python-toml')
-checkdepends=('python-boto' 'python-brotli' 'python-cryptography'
-'python-feedgenerator' 'python-pytest' 'python-zopfli')
-optdepends=('python-boto: upload to S3 plugin'
-            'python-brotli: compress assets plugin'
-            'python-cryptography: encrypt plugin'
-            'python-feedgenerator: feed plugin'
-            'python-zopfli: compress assets plugin')
-source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('8354132baaed62d968e672b804abdeafbca16890852fb75db04d7f529af6f411ef8a7284e5f56533a7243c8ad588d375d8e727fbdb1a18c449fa49529b6b6bd1')
-b2sums=('01d824e03518179456177a9cbddec00859890ef238b5f4ae34cb9da20a6f3c009699e9f7c3e41915114895db68c9ccf297d35ec0fe62392af182c852d50fb87e')
+license=(MIT)
+depends=(ffmpeg python-blinker python-click python-jinja python-markdown
+python-natsort python-pillow python-pilkit)
+makedepends=(python-build python-installer python-setuptools-scm python-toml python-wheel)
+checkdepends=(python-boto python-brotli python-cryptography
+python-feedgenerator python-pytest python-zopfli)
+optdepends=(
+  'python-boto: upload to S3 plugin'
+  'python-brotli: compress assets plugin'
+  'python-cryptography: encrypt plugin'
+  'python-feedgenerator: feed plugin'
+  'python-zopfli: compress assets plugin'
+)
+source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz)
+sha512sums=('e7eafc3c624497f19fdc9eb96fce67789db027b3c34c28eadcc162dd176a2462e101f16ffd54e08ee85baf1a9d264c5657e6cd264c40e155def4eee539242597')
+b2sums=('869665335c57e06b23b7daecc8d32aa1441ce9498ac480f0edebb705020fd16232c0d5e1f88b94d4ae92fc4f126ea43eec6f4cf61cbaeb3e86a470b6fdbcdae0')
 
 build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
+  cd $pkgname-$pkgver
+  python -m build --wheel --no-isolation
 }
 
 check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  pytest -v
+  cd $pkgname-$pkgver
+  pytest -vv
 }
 
 package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --root="${pkgdir}"
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -vDm 644 {AUTHORS,{CONTRIBUTING,README}.rst} \
-    -t "${pkgdir}/usr/share/doc/${pkgname}"
+  cd $pkgname-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+  install -vDm 644 {AUTHORS,{CONTRIBUTING,README}.rst} -t "$pkgdir/usr/share/doc/$pkgname/"
 }



More information about the arch-commits mailing list