[arch-commits] Commit in python-pathspec/trunk (PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Thu Sep 1 04:18:07 UTC 2022
Date: Thursday, September 1, 2022 @ 04:18:06
Author: polyzen
Revision: 1289752
upgpkg: python-pathspec 0.10.0-1
Modified:
python-pathspec/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++++++++++++++--------
1 file changed, 25 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-01 00:52:33 UTC (rev 1289751)
+++ PKGBUILD 2022-09-01 04:18:06 UTC (rev 1289752)
@@ -3,21 +3,22 @@
_name=pathspec
pkgname=python-pathspec
-pkgver=0.9.0
-pkgrel=3
+pkgver=0.10.0
+pkgrel=1
pkgdesc='Utility library for gitignore style pattern matching of file paths'
arch=('any')
-url=https://github.com/cpburnz/python-path-specification
+url=https://github.com/cpburnz/python-pathspec
license=('MPL2')
depends=('python')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+ 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1')
-b2sums=('00b48f6987a074e23ac6f344a44ac8f265463bdd87907cb8a602c690a739d1a9a673182fc4d61a6e2ffc02acb6632591b873e435f9fc3893e1cc48015e120a16')
+sha256sums=('01eecd304ba0e6eeed188ae5fa568e99ef10265af7fd9ab737d6412b4ee0ab85')
+b2sums=('28f53bc760f2ad474223f80c46f8be473e3723898b7ea923fe86f25a46c71d9f69687fdb4a7962b1922e2e35595d0b6134c97d29c60b08fd7e0b6cb2ca75ec14')
build() {
cd $_name-$pkgver
- python setup.py build
+ python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
@@ -30,4 +31,20 @@
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
-# vim:set ts=2 sw=2 et:
+check() {
+ cd $_name-$pkgver
+ python -m venv --system-site-packages test-env
+ test-env/bin/python -m installer dist/*.whl
+ test-env/bin/python -m unittest discover tests
+}
+
+package() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # Symlink license file
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s "$site_packages"/$_name-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list