[arch-commits] Commit in python-rcssmin/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Sun Nov 21 20:46:47 UTC 2021
Date: Sunday, November 21, 2021 @ 20:46:47
Author: dvzrv
Revision: 1053950
upgpkg: python-rcssmin 1.1.0-1: Upgrade to 1.1.0.
Simplify quoting in file.
Switch to running tests using pytest.
Modified:
python-rcssmin/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++++----------------
1 file changed, 15 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-21 20:46:22 UTC (rev 1053949)
+++ PKGBUILD 2021-11-21 20:46:47 UTC (rev 1053950)
@@ -2,17 +2,18 @@
_name=rcssmin
pkgname=python-rcssmin
-pkgver=1.0.6
-pkgrel=4
+pkgver=1.1.0
+pkgrel=1
pkgdesc="Fast CSS minifier for Python"
-arch=('x86_64')
+arch=(x86_64)
url="https://github.com/ndparker/rcssmin"
-license=('Apache')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
+license=(Apache)
+depends=(python)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('5129a6007755a5b1949256bba7ad3616a08034d7bfcf06a1f9d8143897dddc5d2f6b8a0ebde7abb2e8b12e5b1aee2e46260e59101a78f35026e15f9f6503db77')
+sha512sums=('9dc7fac0fef73c389baf8fc132e58599471517a2b77b13fe6bfabd30246b46bf859f7307ff1606d6634bdcdc472bdde0882fe7282018a34fba7b8fc80f6e9279')
+b2sums=('162ec087b791a4ee0c23994cea431e01f76c199c1d2118a75c9e49ebfc0d4f46fc4088126032851446acf2bd7b76b8f17095896100338636f4df8de75612f55d')
prepare() {
mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
@@ -24,17 +25,15 @@
}
check() {
+ local _python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+
cd "$pkgname-$pkgver"
- export PYTHONPATH="build:${PYTHONPATH}"
- # in the next release hopefully plain pytest -v
- python run_tests.py -q tests
+ export PYTHONPATH="build/lib.linux-${CARCH}-${_python_version}:${PYTHONPATH}"
+ pytest -v
}
package() {
cd "$pkgname-$pkgver"
- python setup.py install --skip-build \
- --optimize=1 \
- --prefix=/usr \
- --root="${pkgdir}"
- mv -v "${pkgdir}/usr/share/doc/"{${_name},${pkgname}}
+ python setup.py install --optimize=1 --root="${pkgdir}"
+ install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
}
More information about the arch-commits
mailing list