[arch-commits] Commit in python-paho-mqtt/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Sun Dec 30 16:16:06 UTC 2018
Date: Sunday, December 30, 2018 @ 16:16:06
Author: jelle
Revision: 419347
python-paho-mqtt: run unit tests
Modified:
python-paho-mqtt/trunk/PKGBUILD
----------+
PKGBUILD | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-12-30 16:15:06 UTC (rev 419346)
+++ PKGBUILD 2018-12-30 16:16:06 UTC (rev 419347)
@@ -15,6 +15,11 @@
source=(https://github.com/eclipse/paho.mqtt.python/archive/v${pkgver}.tar.gz)
sha256sums=('fce9a3d8477a4d0c9bfb632c66ad64d9fd0440b5dc7815d5727b49acf710d799')
+prepare() {
+ cd paho.mqtt.python-${pkgver}
+ sed -i '/addopts/d' setup.cfg
+}
+
build() {
cd paho.mqtt.python-${pkgver}
python setup.py build
@@ -22,7 +27,7 @@
check() {
cd paho.mqtt.python-${pkgver}
-# pytest tests
+ PYTHONPATH=$PWD/src pytest tests
}
package_python-paho-mqtt() {
More information about the arch-commits
mailing list