[arch-commits] Commit in python-pilkit/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Wed Jan 26 09:43:08 UTC 2022
Date: Wednesday, January 26, 2022 @ 09:43:07
Author: dvzrv
Revision: 1115645
upgpkg: python-pilkit 2.0-10: Rebuild to remove python-nose-progressive.
It is possible to rely on pyton-nose and python-pytest for tests, so we can
remove python-nose-progressive which is dead upstream:
https://github.com/erikrose/nose-progressive/issues/91
Simplify quoting in file.
Simplify installation in package() to adhere to python package guidelines.
Update maintainer info.
Modified:
python-pilkit/trunk/PKGBUILD
----------+
PKGBUILD | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-26 09:28:18 UTC (rev 1115644)
+++ PKGBUILD 2022-01-26 09:43:07 UTC (rev 1115645)
@@ -1,17 +1,19 @@
-# Maintainer: David Runge <dave at sleepmap.de>
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
_name=pilkit
pkgname=python-pilkit
pkgver=2.0
-pkgrel=9
+pkgrel=10
pkgdesc="A collection of utilities for working with PIL (the Python Imaging Library)"
-arch=('any')
+arch=(any)
url="https://github.com/matthewwithanm/pilkit"
-license=('BSD')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-mock' 'python-nose' 'python-nose-progressive' 'python-pillow')
+license=(BSD)
+depends=(python)
+makedepends=(python-setuptools)
+checkdepends=(python-mock python-nose python-pillow python-pytest)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha512sums=('7618d7de125f2813b25d707b02b70ca9cb4e19105ed0eb3be3ff6b926a812ed2a609e54f8e86535641fc4baef265fae58d70290c14011eeea744e90066b7bdae')
+b2sums=('e612b1f438d17c068dcad5d5150b3593374e7c5b2d08439eb64754cfa3a8c54d298adffa6d57d884bd1b2338b01afb159c238d90d4144608d47d51cc77c14a1c')
prepare() {
mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
@@ -24,15 +26,13 @@
check() {
cd "$pkgname-$pkgver"
- python setup.py test
+ PYTHONPATH="build:$PYTHONPATH"
+ pytest -vv
}
package() {
cd "$pkgname-$pkgver"
- python setup.py install --skip-build \
- --optimize=1 \
- --prefix=/usr \
- --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