* update python-profilestats to 2.0-14

This commit is contained in:
Alexander Baldeck 2024-05-10 08:24:16 +02:00
parent f18ac109c2
commit db7a909e83
2 changed files with 49 additions and 7 deletions

View File

@ -2,22 +2,42 @@
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=python-profilestats
_name="${pkgname#python-}"
pkgver=2.0
pkgrel=12
pkgrel=14
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/"
}

View File

@ -0,0 +1,22 @@
From 42d61ee8d26ba09096a5acb759f6ec3df5912524 Mon Sep 17 00:00:00 2001
From: Felix Yan <felixonmars@archlinux.org>
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'],