David Runge pushed to branch main at Arch Linux / Packaging / Packages / pyprof2calltree
Commits: 3e3ddf64 by David Runge at 2024-04-04T09:04:28+02:00 Add nvchecker integration Signed-off-by: David Runge <[email protected]> - - - - - ffecf109 by David Runge at 2024-04-04T09:10:06+02:00 Build from upstream provided auto-generated source tarballs Set url to upstream repository and reuse url in source. Signed-off-by: David Runge <[email protected]> - - - - - a3d3fdc5 by David Runge at 2024-04-04T09:10:59+02:00 Install LICENSE file from sources As we are not using broken sdists anymore, just install the LICENSE file. Signed-off-by: David Runge <[email protected]> - - - - - 23741241 by David Runge at 2024-04-04T09:12:35+02:00 Reuse the pkgname instead of hardcoding names Signed-off-by: David Runge <[email protected]> - - - - - 5707e809 by David Runge at 2024-04-04T09:14:25+02:00 Run tests in check() Signed-off-by: David Runge <[email protected]> - - - - - 5f555501 by David Runge at 2024-04-04T09:15:23+02:00 upgpkg: 1.4.5-10 Rebuild to apply various fixes and cleanups - - - - - 3 changed files: - .SRCINFO - + .nvchecker.toml - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,8 +1,8 @@ pkgbase = pyprof2calltree pkgdesc = Help visualize profiling data from cProfile with kcachegrind pkgver = 1.4.5 - pkgrel = 9 - url = https://pypi.python.org/pypi/pyprof2calltree/ + pkgrel = 10 + url = https://github.com/pwaller/pyprof2calltree arch = any license = MIT makedepends = python-setuptools @@ -10,7 +10,7 @@ pkgbase = pyprof2calltree makedepends = python-installer makedepends = python-wheel depends = python - source = https://pypi.io/packages/source/p/pyprof2calltree/pyprof2calltree-1.4.5.tar.gz - sha512sums = 9ad50a5c00881cbd8c361726b16fcb407c899c8dfe201769eddf10c3541531491f49cd5a08658b70d1e85e4c00d9a89801d600ab4f7d9906d357a0de82784f9e + source = pyprof2calltree-1.4.5.tar.gz::https://github.com/pwaller/pyprof2calltree/archive/refs/tags/v1.4.5.tar.gz + sha512sums = 2fcda74ae67dc3a8abb5dc153864ef59f96cc62b1c9359d02be12e83966c17738f5aa4a3d1c6e2ff81614dc963fc4b2faf375bbbb1ad15650a6817e493cdde39 pkgname = pyprof2calltree ===================================== .nvchecker.toml ===================================== @@ -0,0 +1,3 @@ +[pyprof2calltree] +source = "pypi" +pypi = "pyprof2calltree" ===================================== PKGBUILD ===================================== @@ -4,27 +4,28 @@ pkgname=pyprof2calltree pkgver=1.4.5 -pkgrel=9 +pkgrel=10 pkgdesc="Help visualize profiling data from cProfile with kcachegrind" -url="https://pypi.python.org/pypi/pyprof2calltree/" +url="https://github.com/pwaller/pyprof2calltree" arch=('any') license=('MIT') depends=('python') makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') -source=("https://pypi.io/packages/source/p/pyprof2calltree/pyprof2calltree-$pkgver.tar.gz") -sha512sums=('9ad50a5c00881cbd8c361726b16fcb407c899c8dfe201769eddf10c3541531491f49cd5a08658b70d1e85e4c00d9a89801d600ab4f7d9906d357a0de82784f9e') - -prepare() { - sed -n '/# Copyright/,/# THE SOFTWARE\./p' pyprof2calltree-$pkgver/pyprof2calltree.py > LICENSE -} +source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") +sha512sums=('2fcda74ae67dc3a8abb5dc153864ef59f96cc62b1c9359d02be12e83966c17738f5aa4a3d1c6e2ff81614dc963fc4b2faf375bbbb1ad15650a6817e493cdde39') build() { - cd "$srcdir"/pyprof2calltree-$pkgver + cd $pkgname-$pkgver python -m build --wheel --no-isolation } +check() { + cd $pkgname-$pkgver + python -m unittest discover +} + package() { - cd pyprof2calltree-$pkgver + cd $pkgname-$pkgver python -m installer --destdir="$pkgdir" dist/*.whl - install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/pyprof2calltree/-/compare/5b2fd4fd22f3572d331589d63ec05b96cf971441...5f5555015750050a6bfe1f9163b46097b4f62b7d -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/pyprof2calltree/-/compare/5b2fd4fd22f3572d331589d63ec05b96cf971441...5f5555015750050a6bfe1f9163b46097b4f62b7d You're receiving this email because of your account on gitlab.archlinux.org.
