Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / python-pathspec
Commits: ed5bdc92 by Daniel M. Capella at 2023-12-09T20:47:49-05:00 upgpkg: 0.12.0-1 - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,17 @@ +pkgbase = python-pathspec + pkgdesc = Utility library for gitignore style pattern matching of file paths + pkgver = 0.12.0 + pkgrel = 1 + url = https://github.com/cpburnz/python-pathspec + arch = any + license = MPL2 + makedepends = git + makedepends = python-build + makedepends = python-flit-core + makedepends = python-installer + makedepends = python-wheel + depends = python + source = git+https://github.com/cpburnz/python-pathspec.git#tag=v0.12.0 + b2sums = SKIP + +pkgname = python-pathspec ===================================== PKGBUILD ===================================== @@ -1,9 +1,9 @@ # Maintainer: Daniel M. Capella <[email protected]> # Contributor: Chris Severance aur.severach aATt spamgourmet dott com -_name=pathspec pkgname=python-pathspec -pkgver=0.11.2 +_name=${pkgname#python-} +pkgver=0.12.0 pkgrel=1 pkgdesc='Utility library for gitignore style pattern matching of file paths' arch=('any') @@ -11,34 +11,32 @@ url=https://github.com/cpburnz/python-pathspec license=('MPL2') depends=('python') makedepends=( + 'git' 'python-build' 'python-flit-core' 'python-installer' 'python-wheel' ) -source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") -sha256sums=('e0d8d0ac2f12da61956eb2306b69f9469b42f4deb0f3cb6ed47b9cce9996ced3') -b2sums=('4a84b8d5850b226713abff743df4a7ffbef0155454337c20aad78f0fd2dd2ad802d3d0f1e557aaffbb550e85e2e051dc9829090b7a43426795dac802b8da3b7a') +source=("git+$url.git#tag=v$pkgver") +b2sums=('SKIP') build() { - cd $_name-$pkgver + cd $pkgname python -m build --wheel --skip-dependency-check --no-isolation } 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 + cd $pkgname + python -m unittest } package() { - cd $_name-$pkgver + cd $pkgname 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 \ + ln -s "$site_packages"/"$_name"-$pkgver.dist-info/LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pathspec/-/commit/ed5bdc921495230772b3e68872ef5cd12d59f6c7 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pathspec/-/commit/ed5bdc921495230772b3e68872ef5cd12d59f6c7 You're receiving this email because of your account on gitlab.archlinux.org.
