George Rawlinson pushed to branch main at Arch Linux / Packaging / Packages / python-platformdirs
Commits: 447d3e13 by George Rawlinson at 2024-07-02T11:42:39+12:00 upgpkg: 4.2.2-1 * New upstream release. * Switch source from github tarball to git repository. * Remove setuptools_scm install method. * Switch license from symlink to file. - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,19 +1,21 @@ pkgbase = python-platformdirs pkgdesc = A library to determine platform-specific system directories - pkgver = 4.2.0 - pkgrel = 3 + pkgver = 4.2.2 + pkgrel = 1 url = https://github.com/platformdirs/platformdirs arch = any license = MIT checkdepends = python-pytest checkdepends = python-pytest-mock checkdepends = python-appdirs + makedepends = git makedepends = python-build makedepends = python-installer makedepends = python-hatchling makedepends = python-hatch-vcs depends = python - source = platformdirs-4.2.0.tar.gz::https://github.com/platformdirs/platformdirs/archive/refs/tags/4.2.0.tar.gz - b2sums = efd79a88b7d1ea3c94be21ce01443d6429596c8e621e9589f6980877aef8d8e5c2e916b4421e9993df1f4d0184c136afcac96800af9f4283c8876d7c00a6e8d3 + source = python-platformdirs::git+https://github.com/platformdirs/platformdirs#tag=4.2.2 + sha512sums = 522b24897f31d43353429a101e29723b3ab22f0b7d801fc77ea125868cf1edfa695122350a432ce442c372361892a4f9d57dd6f31562fc14ebca30c4d4d03e4b + b2sums = 55a18ec0b5d679c3c7b6cdb2856048b9af051e8ac4a1d839806321dff165d09a1a610fa8d3e3bb152ae69f39e5a0480723c4eaf6f269056c1bd88ac198e0af94 pkgname = python-platformdirs ===================================== PKGBUILD ===================================== @@ -4,14 +4,15 @@ pkgname=python-platformdirs _name="${pkgname#python-}" -pkgver=4.2.0 -pkgrel=3 +pkgver=4.2.2 +pkgrel=1 pkgdesc='A library to determine platform-specific system directories' arch=('any') url='https://github.com/platformdirs/platformdirs' license=('MIT') depends=('python') makedepends=( + 'git' 'python-build' 'python-installer' 'python-hatchling' @@ -22,30 +23,27 @@ checkdepends=( 'python-pytest-mock' 'python-appdirs' ) -source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz") -b2sums=('efd79a88b7d1ea3c94be21ce01443d6429596c8e621e9589f6980877aef8d8e5c2e916b4421e9993df1f4d0184c136afcac96800af9f4283c8876d7c00a6e8d3') +source=("$pkgname::git+$url#tag=$pkgver") +sha512sums=('522b24897f31d43353429a101e29723b3ab22f0b7d801fc77ea125868cf1edfa695122350a432ce442c372361892a4f9d57dd6f31562fc14ebca30c4d4d03e4b') +b2sums=('55a18ec0b5d679c3c7b6cdb2856048b9af051e8ac4a1d839806321dff165d09a1a610fa8d3e3bb152ae69f39e5a0480723c4eaf6f269056c1bd88ac198e0af94') build() { - cd "$_name-$pkgver" + cd "$pkgname" - SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python -m build --wheel --no-isolation + python -m build --wheel --no-isolation } check() { - cd "$_name-$pkgver" + cd "$pkgname" PYTHONPATH="$(pwd)/src" pytest -v } 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/licenses/LICENSE" \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE } -# vim:set ts=2 sw=2 et: View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-platformdirs/-/commit/447d3e135d45f4e2951f4ee6084947ac54869d66 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-platformdirs/-/commit/447d3e135d45f4e2951f4ee6084947ac54869d66 You're receiving this email because of your account on gitlab.archlinux.org.