Skip to contentSkip to conversation

python-jsonpointer: add a python3 version of the recipe

PATCH New Derek Straka 1 participant 3 messages Jan 3, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 python-jsonpointer: add a python3 version of the recipe

---
 meta-python/recipes-devtools/python/python-jsonpointer.inc | 14 ++++++++++++++
 .../recipes-devtools/python/python-jsonpointer_1.14.bb     | 13 ++-----------
 .../recipes-devtools/python/python3-jsonpointer_1.14.bb    |  2 ++
 3 files changed, 18 insertions(+), 11 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-jsonpointer.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-jsonpointer_1.14.bb
meta-python/recipes-devtools/python/python-jsonpointer.inc new file +14 -0
new file mode 100644
index 0000000..e678198
@@ -0,0 +1,14 @@
+SUMMARY = "Resolve JSON Pointers in Python"
+HOMEPAGE = "https://github.com/stefankoegl/python-json-pointer"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=32b15c843b7a329130f4e266a281ebb3"
+
+inherit pypi
+
+SRC_URI[md5sum] = "190aeb8afcb0efddfe831a4e533e163b"
+SRC_URI[sha256sum] = "c681af823545c731b7b38aedd5d4eee4c5eff87bc0f25e0ff25444a4189eac4d"
+
+RDEPENDS_${PN} += " \
+    ${PYTHON_PN}-json \
+    ${PYTHON_PN}-re \
+"
meta-python/recipes-devtools/python/python-jsonpointer_1.14.bb +2 -11
index 96b71e3..064bd6c 100644
@@ -1,11 +1,2 @@
-SUMMARY = "Resolve JSON Pointers in Python"
-HOMEPAGE = "https://github.com/stefankoegl/python-json-pointer"
-LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=32b15c843b7a329130f4e266a281ebb3"
-
-inherit pypi setuptools
-
-SRC_URI[md5sum] = "190aeb8afcb0efddfe831a4e533e163b"
-SRC_URI[sha256sum] = "c681af823545c731b7b38aedd5d4eee4c5eff87bc0f25e0ff25444a4189eac4d"
-
-RDEPENDS_${PN} += "python-re python-json"
+inherit setuptools
+require python-jsonpointer.inc
meta-python/recipes-devtools/python/python3-jsonpointer_1.14.bb new file +2 -0
new file mode 100644
index 0000000..8d0a09b
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-jsonpointer.inc
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/3 python-jsonpatch: add a python3 version of the recipe

---
 meta-python/recipes-devtools/python/python-jsonpatch.inc   | 12 ++++++++++++
 .../recipes-devtools/python/python-jsonpatch_1.20.bb       | 14 ++------------
 .../recipes-devtools/python/python3-jsonpatch_1.20.bb      |  6 ++++++
 3 files changed, 20 insertions(+), 12 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-jsonpatch.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-jsonpatch_1.20.bb
meta-python/recipes-devtools/python/python-jsonpatch.inc new file +12 -0
new file mode 100644
index 0000000..8653de9
@@ -0,0 +1,12 @@
+SUMMARY  = "Appling JSON patches in Python 2.6+ and 3.x"
+HOMEPAGE = "https://github.com/stefankoegl/python-json-patch"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=32b15c843b7a329130f4e266a281ebb3"
+
+inherit pypi
+
+SRC_URI[md5sum] = "b82b9ecad4cdef86bf0b88cbdbf7a8b9"
+SRC_URI[sha256sum] = "b12594a0cfe634bdd2a5c027250af2dd84932d493568e88ae722871edc3eb02d"
+
+RDEPENDS_${PN} += "${PYTHON_PN}-json ${PYTHON_PN}-jsonpointer ${PYTHON_PN}-netclient ${PYTHON_PN}-re ${PYTHON_PN}-stringold"
+
meta-python/recipes-devtools/python/python-jsonpatch_1.20.bb +2 -12
index a28294a..e45699a 100644
@@ -1,12 +1,2 @@
-SUMMARY  = "Appling JSON patches in Python 2.6+ and 3.x"
-HOMEPAGE = "https://github.com/stefankoegl/python-json-patch"
-LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://COPYING;md5=32b15c843b7a329130f4e266a281ebb3"
-
-inherit pypi setuptools
-
-SRC_URI[md5sum] = "b82b9ecad4cdef86bf0b88cbdbf7a8b9"
-SRC_URI[sha256sum] = "b12594a0cfe634bdd2a5c027250af2dd84932d493568e88ae722871edc3eb02d"
-
-RDEPENDS_${PN} += "${PYTHON_PN}-json ${PYTHON_PN}-jsonpointer ${PYTHON_PN}-netclient ${PYTHON_PN}-re ${PYTHON_PN}-stringold"
-
+inherit setuptools
+require python-jsonpatch.inc
meta-python/recipes-devtools/python/python3-jsonpatch_1.20.bb new file +6 -0
new file mode 100644
index 0000000..eb55934
@@ -0,0 +1,6 @@
+inherit setuptools3
+require python-jsonpatch.inc
+
+RDEPENDS_${PN} += " \
+    ${PYTHON_PN}-enum \
+"
Signature · 1 line
2.7.4
#2 lore raw

PATCH 3/3 python-jsonpatch: update to version 1.21

In reply to Derek Straka
---
 meta-python/recipes-devtools/python/python-jsonpatch.inc              | 4 ++--
 .../python/{python-jsonpatch_1.20.bb => python-jsonpatch_1.21.bb}     | 0
 .../python/{python3-jsonpatch_1.20.bb => python3-jsonpatch_1.21.bb}   | 0
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python-jsonpatch_1.20.bb => python-jsonpatch_1.21.bb} (100%)
 rename meta-python/recipes-devtools/python/{python3-jsonpatch_1.20.bb => python3-jsonpatch_1.21.bb} (100%)
meta-python/recipes-devtools/python/python-jsonpatch.inc +2 -2
index 8653de9..838dbe3 100644
@@ -5,8 +5,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=32b15c843b7a329130f4e266a281ebb3"
 
 inherit pypi
 
-SRC_URI[md5sum] = "b82b9ecad4cdef86bf0b88cbdbf7a8b9"
-SRC_URI[sha256sum] = "b12594a0cfe634bdd2a5c027250af2dd84932d493568e88ae722871edc3eb02d"
+SRC_URI[md5sum] = "0b20d819daf120ed3fef3be608f2ce18"
+SRC_URI[sha256sum] = "11f5ffdf543a83047a2f54ac28f8caad7f34724cb1ea26b27547fd974f1a2153"
 
 RDEPENDS_${PN} += "${PYTHON_PN}-json ${PYTHON_PN}-jsonpointer ${PYTHON_PN}-netclient ${PYTHON_PN}-re ${PYTHON_PN}-stringold"
 
meta-python/recipes-devtools/python/python-jsonpatch_1.21.bb renamed from meta-python/recipes-devtools/python/python-jsonpatch_1.20.bb +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python-jsonpatch_1.20.bb
rename to meta-python/recipes-devtools/python/python-jsonpatch_1.21.bb
meta-python/recipes-devtools/python/python3-jsonpatch_1.21.bb renamed from meta-python/recipes-devtools/python/python3-jsonpatch_1.20.bb +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-jsonpatch_1.20.bb
rename to meta-python/recipes-devtools/python/python3-jsonpatch_1.21.bb
Signature · 1 line
2.7.4