mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
python-pygpgme: add ptest support
* add ptest support * runtime depends on gnupg Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
2a233e1b07
commit
2463e39c44
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
GPG_AGENT_INFO= python test_all.py -v
|
||||||
@@ -7,12 +7,21 @@ SECTION = "devel/python"
|
|||||||
LICENSE = "LGPL-2.1"
|
LICENSE = "LGPL-2.1"
|
||||||
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=6517bdc8f2416f27ab725d4702f7aac3"
|
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=6517bdc8f2416f27ab725d4702f7aac3"
|
||||||
|
|
||||||
SRC_URI = "https://pypi.python.org/packages/source/p/pygpgme/pygpgme-${PV}.tar.gz"
|
SRC_URI = "https://pypi.python.org/packages/source/p/pygpgme/pygpgme-${PV}.tar.gz \
|
||||||
|
file://run-ptest \
|
||||||
|
"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "d38355af73f0352cde3d410b25f34fd0"
|
SRC_URI[md5sum] = "d38355af73f0352cde3d410b25f34fd0"
|
||||||
SRC_URI[sha256sum] = "5fd887c407015296a8fd3f4b867fe0fcca3179de97ccde90449853a3dfb802e1"
|
SRC_URI[sha256sum] = "5fd887c407015296a8fd3f4b867fe0fcca3179de97ccde90449853a3dfb802e1"
|
||||||
|
|
||||||
S = "${WORKDIR}/pygpgme-${PV}"
|
S = "${WORKDIR}/pygpgme-${PV}"
|
||||||
|
|
||||||
DEPENDS += "gpgme"
|
DEPENDS += "gpgme"
|
||||||
|
RDEPENDS_${PN} += "gnupg"
|
||||||
|
|
||||||
inherit setuptools
|
inherit setuptools ptest
|
||||||
|
|
||||||
|
do_install_ptest(){
|
||||||
|
install ${S}/test_all.py ${D}${PTEST_PATH}
|
||||||
|
cp -r ${S}/tests ${D}${PTEST_PATH}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user