Date: Thursday, April 6, 2023 @ 19:13:02 Author: dvzrv Revision: 1440314
upgpkg: git-filter-repo 2.38.0-1: Upgrade to 2.38.0. Rebuild against python 3.11. Switch to PEP517. Remove duplicate scripts entry from setup.cfg (already defined in setup.py), else installation explodes on that. Modified: git-filter-repo/trunk/PKGBUILD ----------+ PKGBUILD | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-04-06 18:53:04 UTC (rev 1440313) +++ PKGBUILD 2023-04-06 19:13:02 UTC (rev 1440314) @@ -1,7 +1,7 @@ # Maintainer: Jerome Leclanche <[email protected]> pkgname=git-filter-repo -pkgver=2.34.0 +pkgver=2.38.0 pkgrel=1 pkgdesc="Quickly rewrite git repository history (filter-branch replacement)" arch=("any") @@ -8,15 +8,29 @@ url="https://github.com/newren/git-filter-repo" license=("MIT") depends=("git" "python") -makedepends=("python-setuptools-scm") +makedepends=( + python-build + python-installer + python-setuptools-scm + python-wheel +) checkdepends=('rsync') source=( "$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz" ) -sha256sums=('b1bf46af1e6a91a54056d0254e480803db8e40f631336c559a1a94d2a08389c4') +sha256sums=('db954f4cae9e47c6be3bd3161bc80540d44f5379cb9cf9df498f4e019f0a41a9') -export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver +prepare() { + # if it is defined both in setup.cfg and setup.py, installation will explode... + sed '/scripts/d' -i $pkgname-$pkgver/release/setup.cfg +} +build() { + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + cd "$pkgname-$pkgver/release" + python -m build --wheel --no-isolation +} + check() { cd "$pkgname-$pkgver" ./t/run_tests @@ -24,9 +38,9 @@ package() { cd "$pkgname-$pkgver/release" - python setup.py install --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl cd .. - install -Dm644 Documentation/man1/git-filter-repo.1 "$pkgdir/usr/share/man/man1/git-filter-repo.1" + install -Dm644 Documentation/man1/$pkgname.1 -t "$pkgdir/usr/share/man/man1/" install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING COPYING.mit }
