Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / python-dateutil
Commits: 4d82cfb8 by Jelle van der Waa at 2024-03-06T17:17:37+01:00 Re-add missing zoneinfo tarball This was added by PEP517's wheel but now not anymore, this needs to be figured out but for now unbreak the package. - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,7 +1,7 @@ pkgbase = python-dateutil pkgdesc = Provides powerful extensions to the standard datetime module pkgver = 2.9.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/dateutil/dateutil arch = any license = BSD-3-Clause ===================================== PKGBUILD ===================================== @@ -10,7 +10,7 @@ pkgname=python-dateutil pkgver=2.9.0 # _sha=db9d018944c41ddc740015cf5f64717c2ba64a5c -pkgrel=1 +pkgrel=2 pkgdesc="Provides powerful extensions to the standard datetime module" arch=(any) license=(BSD-3-Clause Apache-2.0) @@ -48,4 +48,10 @@ package() { cd dateutil python -m installer -d "$pkgdir" dist/*.whl install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE + + # HACK: package_date is not installed via PEP517 while it should + # https://github.com/dateutil/dateutil/blob/1ae807774053c071acc9e7d3d27778fba0a7773e/setup.cfg#L52 + local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))') + install -Dm0644 -t "$pkgdir/usr/lib/python${python_version}/site-packages/dateutil/zoneinfo/" \ + "${srcdir}/dateutil/src/dateutil/zoneinfo/dateutil-zoneinfo.tar.gz" } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-dateutil/-/commit/4d82cfb8858fa55fa202fdfe20709029872204ea -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-dateutil/-/commit/4d82cfb8858fa55fa202fdfe20709029872204ea You're receiving this email because of your account on gitlab.archlinux.org.