[arch-commits] Commit in python-setproctitle/trunk (PKGBUILD)
Massimiliano Torromeo
mtorromeo at archlinux.org
Tue Dec 1 10:11:27 UTC 2020
Date: Tuesday, December 1, 2020 @ 10:11:26
Author: mtorromeo
Revision: 767152
implemented check function
Modified:
python-setproctitle/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-01 10:06:05 UTC (rev 767151)
+++ PKGBUILD 2020-12-01 10:11:26 UTC (rev 767152)
@@ -2,11 +2,12 @@
pkgname=python-setproctitle
pkgver=1.2
-pkgrel=8
+pkgrel=9
pkgdesc="Allows a python process to change its process title"
license=("BSD")
url="https://github.com/dvarrazzo/py-setproctitle"
depends=('python')
+checkdepends=('python-pytest' 'procps-ng')
arch=('x86_64')
source=(https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-$pkgver.tar.gz)
sha256sums=('9b4e48722dd96cbd66d5bf2eab930fff8546cd551dd8d774c8a319448bd381a6')
@@ -16,6 +17,12 @@
python setup.py build
}
+check() {
+ local _pyver=$(python -c "import sys; print('{0}.{1}'.format(*sys.version_info[:2]))")
+ cd "$srcdir"/setproctitle-$pkgver/build/lib.linux-$CARCH-$_pyver
+ python -m pytest ../../tests
+}
+
package_python-setproctitle() {
cd "$srcdir"/setproctitle-$pkgver
python setup.py install --skip-build -O1 --root="$pkgdir"
More information about the arch-commits
mailing list