[oe-commits] [meta-openembedded] 05/30: python-flask-wtf: move core of recipe to a .inc file

git at git.openembedded.org git at git.openembedded.org
Sat Dec 23 04:08:43 UTC 2017


This is an automated email from the git hooks/post-receive script.

armin_kuster pushed a commit to branch master
in repository meta-openembedded.

commit 6c917a37811e09ee74a3b730b31739609b0c9cb7
Author: Bill Randle <bill.randle at gmail.com>
AuthorDate: Thu Dec 7 21:45:43 2017 -0800

    python-flask-wtf: move core of recipe to a .inc file
    
    V2: add FILESEXTRAPATH_prepend to pick up common patch directory.
    
    Signed-off-by: Bill Randle <bill.randle at gmail.com>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 .../{python-flask-wtf_0.12.bb => python-flask-wtf.inc}  |  7 +++----
 .../recipes-devtools/python/python-flask-wtf_0.12.bb    | 17 +----------------
 2 files changed, 4 insertions(+), 20 deletions(-)

diff --git a/meta-python/recipes-devtools/python/python-flask-wtf_0.12.bb b/meta-python/recipes-devtools/python/python-flask-wtf.inc
similarity index 77%
copy from meta-python/recipes-devtools/python/python-flask-wtf_0.12.bb
copy to meta-python/recipes-devtools/python/python-flask-wtf.inc
index 79afaf6..3a959ae 100644
--- a/meta-python/recipes-devtools/python/python-flask-wtf_0.12.bb
+++ b/meta-python/recipes-devtools/python/python-flask-wtf.inc
@@ -5,13 +5,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=507e8635f25a06dc4f041a3a1b3359b3"
 SRC_URI[md5sum] = "c53a74e8ba481bf53405fd5efdf0339e"
 SRC_URI[sha256sum] = "bd99316c97ed1d1cb90b8f0c242c86420a891a6a2058f20717e424bf5b0bb80e"
 
+FILESEXTRAPATHS_prepend := "${THISDIR}/python-flask-wtf:"
 SRC_URI += " file://import-simplejson-as-json.patch"
 
 PYPI_PACKAGE = "Flask-WTF"
 
-inherit pypi setuptools
-
 RDEPENDS_${PN} = "\
-    python-wtforms \
-    python-simplejson \
+    ${PYTHON_PN}-wtforms \
+    ${PYTHON_PN}-simplejson \
 "
diff --git a/meta-python/recipes-devtools/python/python-flask-wtf_0.12.bb b/meta-python/recipes-devtools/python/python-flask-wtf_0.12.bb
index 79afaf6..dbf091b 100644
--- a/meta-python/recipes-devtools/python/python-flask-wtf_0.12.bb
+++ b/meta-python/recipes-devtools/python/python-flask-wtf_0.12.bb
@@ -1,17 +1,2 @@
-DESCRIPTION = "Simple integration of Flask and WTForms."
-LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=507e8635f25a06dc4f041a3a1b3359b3"
-
-SRC_URI[md5sum] = "c53a74e8ba481bf53405fd5efdf0339e"
-SRC_URI[sha256sum] = "bd99316c97ed1d1cb90b8f0c242c86420a891a6a2058f20717e424bf5b0bb80e"
-
-SRC_URI += " file://import-simplejson-as-json.patch"
-
-PYPI_PACKAGE = "Flask-WTF"
-
 inherit pypi setuptools
-
-RDEPENDS_${PN} = "\
-    python-wtforms \
-    python-simplejson \
-"
+require python-flask-wtf.inc

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list