[oe-commits] [meta-openembedded] 10/11: python-simplejson: relocate to meta-python and add a python3 version

git at git.openembedded.org git at git.openembedded.org
Thu Mar 2 17:00:25 UTC 2017


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

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

commit 37da783c2fa977aafcab2f80e196027c37712322
Author: Derek Straka <derek at asterius.io>
AuthorDate: Thu Mar 2 11:24:24 2017 -0500

    python-simplejson: relocate to meta-python and add a python3 version
    
    Signed-off-by: Derek Straka <derek at asterius.io>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 .../recipes-devtools/python/python-simplejson.inc   | 21 ++++++---------------
 .../python/python-simplejson_3.10.0.bb              |  2 ++
 .../python/python3-simplejson_3.10.0.bb             |  7 +++++++
 3 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/meta-oe/recipes-devtools/python/python-simplejson_3.10.0.bb b/meta-python/recipes-devtools/python/python-simplejson.inc
similarity index 53%
rename from meta-oe/recipes-devtools/python/python-simplejson_3.10.0.bb
rename to meta-python/recipes-devtools/python/python-simplejson.inc
index 75ec2dc..2eed199 100644
--- a/meta-oe/recipes-devtools/python/python-simplejson_3.10.0.bb
+++ b/meta-python/recipes-devtools/python/python-simplejson.inc
@@ -1,26 +1,17 @@
 SUMMARY = "Simple, fast, extensible JSON encoder/decoder for Python"
 HOMEPAGE = "http://cheeseshop.python.org/pypi/simplejson"
-SECTION = "devel/python"
 
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=c6338d7abd321c0b50a2a547e441c52e"
 
-SRCNAME = "simplejson"
-
-SRC_URI = "https://files.pythonhosted.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
 SRC_URI[md5sum] = "426a9631d22851a7a970b1a677368b15"
 SRC_URI[sha256sum] = "953be622e88323c6f43fad61ffd05bebe73b9fd9863a46d68b052d2aa7d71ce2"
 
-S = "${WORKDIR}/${SRCNAME}-${PV}"
-
-inherit setuptools
+inherit pypi
 
-RDEPENDS_${PN} = "\
-    python-core \
-    python-re \
-    python-io \
-    python-netserver \
-    python-numbers \
+RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-re \
+    ${PYTHON_PN}-io \
+    ${PYTHON_PN}-netserver \
+    ${PYTHON_PN}-numbers \
 "
-
-
diff --git a/meta-python/recipes-devtools/python/python-simplejson_3.10.0.bb b/meta-python/recipes-devtools/python/python-simplejson_3.10.0.bb
new file mode 100644
index 0000000..e33edfe
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-simplejson_3.10.0.bb
@@ -0,0 +1,2 @@
+inherit setuptools
+require python-simplejson.inc
diff --git a/meta-python/recipes-devtools/python/python3-simplejson_3.10.0.bb b/meta-python/recipes-devtools/python/python3-simplejson_3.10.0.bb
new file mode 100644
index 0000000..d44bc15
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-simplejson_3.10.0.bb
@@ -0,0 +1,7 @@
+inherit setuptools3
+require python-simplejson.inc
+
+# Requires _pydecimal which is in misc
+RDEPENDS_${PN} += " \
+    ${PYTHON_PN}-misc \
+"

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


More information about the Openembedded-commits mailing list