[arch-commits] Commit in python-rcssmin/repos/community-x86_64 (PKGBUILD PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Mon Aug 1 23:06:45 UTC 2022
Date: Monday, August 1, 2022 @ 23:06:45
Author: dvzrv
Revision: 1259720
archrelease: copy trunk to community-x86_64
Added:
python-rcssmin/repos/community-x86_64/PKGBUILD
(from rev 1259719, python-rcssmin/trunk/PKGBUILD)
Deleted:
python-rcssmin/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 75 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 36 insertions(+), 39 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-01 23:06:36 UTC (rev 1259719)
+++ PKGBUILD 2022-08-01 23:06:45 UTC (rev 1259720)
@@ -1,39 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=rcssmin
-pkgname=python-rcssmin
-pkgver=1.1.0
-pkgrel=3
-pkgdesc="Fast CSS minifier for Python"
-arch=(x86_64)
-url="https://github.com/ndparker/rcssmin"
-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=('9dc7fac0fef73c389baf8fc132e58599471517a2b77b13fe6bfabd30246b46bf859f7307ff1606d6634bdcdc472bdde0882fe7282018a34fba7b8fc80f6e9279')
-b2sums=('162ec087b791a4ee0c23994cea431e01f76c199c1d2118a75c9e49ebfc0d4f46fc4088126032851446acf2bd7b76b8f17095896100338636f4df8de75612f55d')
-
-prepare() {
- mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
-build() {
- cd "$pkgname-$pkgver"
- python setup.py build
-}
-
-check() {
- local _python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
-
- cd "$pkgname-$pkgver"
- export PYTHONPATH="build/lib.linux-${CARCH}-${_python_version}:${PYTHONPATH}"
- pytest -v
-}
-
-package() {
- cd "$pkgname-$pkgver"
- python setup.py install --optimize=1 --root="${pkgdir}"
- install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
-}
Copied: python-rcssmin/repos/community-x86_64/PKGBUILD (from rev 1259719, python-rcssmin/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-08-01 23:06:45 UTC (rev 1259720)
@@ -0,0 +1,36 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=rcssmin
+pkgname=python-rcssmin
+pkgver=1.1.1
+pkgrel=1
+pkgdesc="Fast CSS minifier for Python"
+arch=(x86_64)
+url="https://github.com/ndparker/rcssmin"
+license=(Apache)
+depends=(python)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('3439808f0e9165cac33756a2664fb4e3a314107422a952ebd42b28653519d91ba9e8f775cd499078c6d3faf103415c7c66eec05258f2dcfe85fee4f253399dfd')
+b2sums=('20a67546400f8fa86250a814f0a4b71e7f30df8ed8f9d0426d2ad097706174b082ad9645ca293c7477f0786ea42aca3c2a85b1fb1f32e30d44e816c10985a896')
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+
+ cd $_name-$pkgver
+ python -m installer --destdir=test_dir dist/*.whl
+ export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
+ pytest -vv
+}
+
+package() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+}
More information about the arch-commits
mailing list