David Runge pushed to branch main at Arch Linux / Packaging / Packages / python-profilestats
Commits: bf6a768c by David Runge at 2024-04-04T09:24:50+02:00 Switch to PEP517 Signed-off-by: David Runge <[email protected]> - - - - - 1f57ee9d by David Runge at 2024-04-04T09:33:40+02:00 Add patch to remove runtime requirement on python-setuptools Signed-off-by: David Runge <[email protected]> - - - - - 4c7d9c5b by David Runge at 2024-04-04T09:41:24+02:00 Use SPDX license identifier more appropriate to situation Upstream provides no license file and doesn't properly state the exact license: https://github.com/hannosch/profilestats/issues/5 Signed-off-by: David Runge <[email protected]> - - - - - 2 changed files: - PKGBUILD - + python-profilestats-2.0-remove_setuptools.patch Changes: ===================================== PKGBUILD ===================================== @@ -1,22 +1,42 @@ # Maintainer: Felix Yan <[email protected]> pkgname=python-profilestats +_name="${pkgname#python-}" pkgver=2.0 pkgrel=12 pkgdesc="Decorator for profiling individual functions and converting profiling data to the kcachegrind/qcachegrind format." arch=('any') -license=('BSD') +license=(LicenseRef-Unknown-BSD) url="https://github.com/hannosch/profilestats" -depends=('python-setuptools' 'pyprof2calltree') -source=("https://github.com/hannosch/profilestats/archive/$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('918d23df8f076dc6b0be0dc70e8899f638d6a911472193624e6a7594a1b1c82975f0090dddbcdadcb0c6a0c11b2bb6f22fad11561322cdf962c719854663b23a') +depends=( + python + pyprof2calltree +) +makedepends=( + python-build + python-installer + python-setuptools + python-wheel +) +source=( + "https://github.com/hannosch/profilestats/archive/$pkgver/$pkgname-$pkgver.tar.gz" + $pkgname-2.0-remove_setuptools.patch +) +sha512sums=('918d23df8f076dc6b0be0dc70e8899f638d6a911472193624e6a7594a1b1c82975f0090dddbcdadcb0c6a0c11b2bb6f22fad11561322cdf962c719854663b23a' + '5622b357f8a1efb506de29816396b8d24e054e40c2b7cc264d8452a98dee0171bad5c56c6e7212342abff2ce6df387635a2fca7b0611636da439c134f54f9970') + +prepare() { + patch -Np1 -d $_name-$pkgver -i ../$pkgname-2.0-remove_setuptools.patch + echo "Project claims BSD, but actually no license: https://github.com/hannosch/profilestats/issues/5" > LICENSE +} build() { cd profilestats-$pkgver - python setup.py build + python -m build --wheel --no-isolation } package() { cd profilestats-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl + install -vDm 644 ../LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" } ===================================== python-profilestats-2.0-remove_setuptools.patch ===================================== @@ -0,0 +1,22 @@ +From 42d61ee8d26ba09096a5acb759f6ec3df5912524 Mon Sep 17 00:00:00 2001 +From: Felix Yan <[email protected]> +Date: Wed, 14 Sep 2022 23:44:33 +0300 +Subject: [PATCH] Remove unused setuptools dependency + +`setuptools` or `pkg_resources` are not runtime dependency for `profilestats`, let's remove it. +--- + setup.py | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/setup.py b/setup.py +index b7be6f1..e13e5b7 100755 +--- a/setup.py ++++ b/setup.py +@@ -34,7 +34,6 @@ + ], + license='BSD', + install_requires=[ +- 'setuptools', + 'pyprof2calltree', + ], + py_modules=['profilestats'], View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-profilestats/-/compare/d33cc9d850414a25798a5a421b78fe0a6572282f...4c7d9c5b309cade4ac87546a274676009aad09c6 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-profilestats/-/compare/d33cc9d850414a25798a5a421b78fe0a6572282f...4c7d9c5b309cade4ac87546a274676009aad09c6 You're receiving this email because of your account on gitlab.archlinux.org.
