[arch-commits] Commit in python-manhole/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Nov 10 05:07:50 UTC 2020
Date: Tuesday, November 10, 2020 @ 05:07:49
Author: felixonmars
Revision: 749311
archrelease: copy trunk to community-staging-any
Added:
python-manhole/repos/community-staging-any/
python-manhole/repos/community-staging-any/PKGBUILD
(from rev 749308, python-manhole/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-manhole/repos/community-staging-any/PKGBUILD (from rev 749308, python-manhole/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 05:07:49 UTC (rev 749311)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-manhole
+pkgver=1.6.0
+pkgrel=4
+arch=('any')
+pkgdesc='Debugging manhole for python applications'
+license=('BSD')
+url='https://github.com/ionelmc/python-manhole'
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-virtualenv' 'python-pytest-runner' 'python-process-tests' 'python-requests' 'uwsgi')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ionelmc/python-manhole/archive/v$pkgver.tar.gz")
+sha512sums=('179a87529e371c4480b6ab0ad6cc6cc9e3942f4be339cacaf1f1b100e447b8b1f2903a03879e9df3376c86ced4421aa5a16d934c9b250f91715b28d03dca000a')
+
+build() {
+ cd "$srcdir"/python-manhole-$pkgver
+ python setup.py build
+}
+
+check() {
+ # Hack to process .pth files properly
+
+ cd "$srcdir"/python-manhole-$pkgver
+ virtualenv "$srcdir/pyvenv" --system-site-packages
+ (
+ . "$srcdir/pyvenv/bin/activate"
+ python setup.py develop
+ python setup.py pytest
+ ) || echo "Tests failed"
+}
+
+package() {
+ cd python-manhole-$pkgver
+ python setup.py install --root "$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list