python-jsonpatch: fix do_install
PATCH 1/1 python-jsonpatch: fix do_install
The following error is seen when do_install is run
| UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in | position 16: ordinal not in range(128) ERROR: python setup.py | install execution failed.
This is reported in the upstream project as part of pull request #81
https://github.com/stefankoegl/python-json-patch/pull/81
Since a release is not yet available with the required fix we must apply the fix as a patch.
--- .../recipes-devtools/python/python-jsonpatch.inc | 4 +++ .../Drop-support-for-EOL-Python-3.3.patch | 35 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python-jsonpatch/Drop-support-for-EOL-Python-3.3.patch
meta-python/recipes-devtools/python/python-jsonpatch.inc +4 -0
@@ -8,5 +8,9 @@ inherit pypi SRC_URI[md5sum] = "0b20d819daf120ed3fef3be608f2ce18" SRC_URI[sha256sum] = "11f5ffdf543a83047a2f54ac28f8caad7f34724cb1ea26b27547fd974f1a2153" +SRC_URI += " \ + file://Drop-support-for-EOL-Python-3.3.patch \ +" + RDEPENDS_${PN} += "${PYTHON_PN}-json ${PYTHON_PN}-jsonpointer ${PYTHON_PN}-netclient ${PYTHON_PN}-stringold"
meta-python/recipes-devtools/python/python-jsonpatch/Drop-support-for-EOL-Python-3.3.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 71bdeed8b49390ff14fe8f0434fc8a1038d89128 Mon Sep 17 00:00:00 2001 +From: Hugo <[email protected]> +Date: Tue, 16 Jan 2018 14:22:33 +0200 +Subject: [PATCH 1/4] Drop support for EOL Python 3.3 + +Upstream-Status: Backport + +[MA: remove dev only files from patch] +Signed-off-by: Mark Asselstine <[email protected]> + +--- + setup.py | 2 +- + +diff --git a/setup.py b/setup.py +index 0776c41..471c433 100644 +--- a/setup.py ++++ b/setup.py +@@ -58,7 +58,6 @@ CLASSIFIERS = [ + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', +- 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', +@@ -81,5 +80,6 @@ setup(name=PACKAGE, + package_data={'': ['requirements.txt']}, + scripts=['bin/jsondiff', 'bin/jsonpatch'], + classifiers=CLASSIFIERS, ++ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', + **OPTIONS + ) +-- +2.7.4 +
Signature · 1 line
2.7.4
This seems to break python3-jsonpatch which won't find this .patch file, because it's in different directory.
Quoted 91 lines · Mark Asselstine
The following error is seen when
do_installis run| UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in | position 16: ordinal not in range(128) ERROR: python setup.py | install execution failed.This is reported in the upstream project as part of pull request #81
https://github.com/stefankoegl/python-json-patch/pull/81Since a release is not yet available with the required fix we must apply the fix as a patch.
Signed-off-by Mark Asselstine <[email protected]>--- .../recipes-devtools/python/python-jsonpatch.inc | 4 +++ .../Drop-support-for-EOL-Python-3.3.patch | 35 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 meta-python/recipes-devtools/
python/python-jsonpatch/Drop-support-for-EOL-Python-3.3.patchmeta-python/recipes-devtools/python/python-jsonpatch.inc +0
-0@@ -8,5 +8,9 @@ inherit pypi SRC_URI[md5sum] = "0b20d819daf120ed3fef3be608f2ce18" SRC_URI[sha256sum] = "11f5ffdf543a83047a2f54ac28f8ca
ad7f34724cb1ea26b27547fd974f1a2153"meta-python/recipes-devtools/python/python-jsonpatch.inc +4
-0+SRC_URI += " \ + file://Drop-support-for-EOL-Python-3.3.patch \ +" + RDEPENDS_${PN} += "${PYTHON_PN}-json ${PYTHON_PN}-jsonpointer${PYTHON_PN}-netclient ${PYTHON_PN}-stringold"
(quoted diff) +0
-0
jsonpatch/Drop-support-for-EOL-Python-3.3.patchb/meta-python/recipes-devtools/python/python-jsonpatch/Drop-support-for-EOL-Python-3.3.patchnew file mode 100644
index 0000000..ccd8e12meta-python/recipes-devtools/python/python- new file +0
-0
jsonpatch/Drop-support-for-EOL-Python-3.3.patchmeta-python/recipes-devtools/python/python- new file +35
-1@@ -0,0 +1,35 @@ +From 71bdeed8b49390ff14fe8f0434fc8a1038d89128 Mon Sep 17 00:00:00 2001 +From: Hugo <[email protected]> +Date: Tue, 16 Jan 2018 14:22:33 +0200 +Subject: [PATCH 1/4] Drop support for EOL Python 3.3 + +Upstream-Status: Backport + +[MA: remove dev only files from patch] +Signed-off-by: Mark Asselstine <[email protected]> + +--- + setup.py | 2 +- + +diff --git a/setup.py b/setup.py +index 0776c41..471c433 100644 +--- a/setup.py ++++ b/setup.py +@@ -58,7 +58,6 @@ CLASSIFIERS = [ + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', +- 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', +@@ -81,5 +80,6 @@ setup(name=PACKAGE, + package_data={'': ['requirements.txt']}, + scripts=['bin/jsondiff', 'bin/jsonpatch'], + classifiers=CLASSIFIERS, ++ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', + **OPTIONS + ) +-- +2.7.4 + --2.7.4
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Something like:FILESEXTRAPATHS_prepend := "${THISDIR}/python-jsonpatch:"
Will fix this. It can be in python-jsonpatch.inc (harmless for python2-, required for python3-). DRY and KISS.
Quoted 103 lines · Martin Jansa
This seems to break python3-jsonpatch which won't find this .patch file, because it's in different directory.
Quoted 85 lines · Mark Asselstine
The following error is seen when
do_installis run| UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in | position 16: ordinal not in range(128) ERROR: python setup.py | install execution failed.This is reported in the upstream project as part of pull request #81
https://github.com/stefankoegl/python-json-patch/pull/81Since a release is not yet available with the required fix we must apply the fix as a patch.
Signed-off-by Mark Asselstine <[email protected]>--- .../recipes-devtools/python/python-jsonpatch.inc | 4 +++ .../Drop-support-for-EOL-Python-3.3.patch | 35 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 meta-python/recipes-devtools/
python/python-jsonpatch/Drop-support-for-EOL-Python-3.3.patchmeta-python/recipes-devtools/python/python-jsonpatch.inc +0
-0@@ -8,5 +8,9 @@ inherit pypi SRC_URI[md5sum] = "0b20d819daf120ed3fef3be608f2ce18" SRC_URI[sha256sum] = "11f5ffdf543a83047a2f54ac28f8ca
ad7f34724cb1ea26b27547fd974f1a2153"meta-python/recipes-devtools/python/python-jsonpatch.inc +4
-0+SRC_URI += " \ + file://Drop-support-for-EOL-Python-3.3.patch \ +" + RDEPENDS_${PN} += "${PYTHON_PN}-json ${PYTHON_PN}-jsonpointer${PYTHON_PN}-netclient ${PYTHON_PN}-stringold"
(quoted diff) +0
-0
jsonpatch/Drop-support-for-EOL-Python-3.3.patchb/meta-python/recipes-devtools/python/python-jsonpatch/Drop-support-for-EOL-Python-3.3.patchnew file mode 100644
index 0000000..ccd8e12meta-python/recipes-devtools/python/python- new file +0
-0
jsonpatch/Drop-support-for-EOL-Python-3.3.patchmeta-python/recipes-devtools/python/python- new file +35
-1@@ -0,0 +1,35 @@ +From 71bdeed8b49390ff14fe8f0434fc8a1038d89128 Mon Sep 17 00:00:00 2001 +From: Hugo <[email protected]> +Date: Tue, 16 Jan 2018 14:22:33 +0200 +Subject: [PATCH 1/4] Drop support for EOL Python 3.3 + +Upstream-Status: Backport + +[MA: remove dev only files from patch] +Signed-off-by: Mark Asselstine <[email protected]> + +--- + setup.py | 2 +- + +diff --git a/setup.py b/setup.py +index 0776c41..471c433 100644 +--- a/setup.py ++++ b/setup.py +@@ -58,7 +58,6 @@ CLASSIFIERS = [ + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', +- 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', +@@ -81,5 +80,6 @@ setup(name=PACKAGE, + package_data={'': ['requirements.txt']}, + scripts=['bin/jsondiff', 'bin/jsonpatch'], + classifiers=CLASSIFIERS, ++ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', + **OPTIONS + ) +-- +2.7.4 + --2.7.4
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Or it doesn't need to be applied for python3-jsonpatch at all and the SRC_URI change should be moved to python-jsonpatch_1.21.bb.
At least in my world builds I haven't seen this issue with python3-jsonpatch, only with python-jsonpatch.
Quoted 114 lines · Tim Orling
Something like:
FILESEXTRAPATHS_prepend:= "${THISDIR}/python-jsonpatch:"Will fix this. It can be in python-jsonpatch.inc (harmless for python2-, required for python3-). DRY and KISS.
Quoted 103 lines · Martin Jansa
This seems to break python3-jsonpatch which won't find this .patch file, because it's in different directory.
Quoted 85 lines · Mark Asselstine
The following error is seen when
do_installis run| UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in | position 16: ordinal not in range(128) ERROR: python setup.py | install execution failed.This is reported in the upstream project as part of pull request #81
https://github.com/stefankoegl/python-json-patch/pull/81Since a release is not yet available with the required fix we must apply the fix as a patch.
Signed-off-by Mark Asselstine <[email protected]>--- .../recipes-devtools/python/python-jsonpatch.inc | 4 +++ .../Drop-support-for-EOL-Python-3.3.patch | 35 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 meta-python/recipes-devtools/
python/python-jsonpatch/Drop-support-for-EOL-Python-3.3.patchmeta-python/recipes-devtools/python/python-jsonpatch.inc +0
-0@@ -8,5 +8,9 @@ inherit pypi SRC_URI[md5sum] = "0b20d819daf120ed3fef3be608f2ce18" SRC_URI[sha256sum] = "11f5ffdf543a83047a2f54ac28f8ca
ad7f34724cb1ea26b27547fd974f1a2153"meta-python/recipes-devtools/python/python-jsonpatch.inc +4
-0+SRC_URI += " \ + file://Drop-support-for-EOL-Python-3.3.patch \ +" + RDEPENDS_${PN} += "${PYTHON_PN}-json ${PYTHON_PN}-jsonpointer${PYTHON_PN}-netclient ${PYTHON_PN}-stringold"
(quoted diff) +0
-0
jsonpatch/Drop-support-for-EOL-Python-3.3.patchb/meta-python/recipes-devtools/python/python-jsonpatch/Drop-support-for-EOL-Python-3.3.patchnew file mode 100644
index 0000000..ccd8e12meta-python/recipes-devtools/python/python- new file +0
-0
jsonpatch/Drop-support-for-EOL-Python-3.3.patchmeta-python/recipes-devtools/python/python- new file +35
-1@@ -0,0 +1,35 @@ +From 71bdeed8b49390ff14fe8f0434fc8a1038d89128 Mon Sep 17 00:00:00 2001 +From: Hugo <[email protected]> +Date: Tue, 16 Jan 2018 14:22:33 +0200 +Subject: [PATCH 1/4] Drop support for EOL Python 3.3 + +Upstream-Status: Backport + +[MA: remove dev only files from patch] +Signed-off-by: Mark Asselstine <[email protected]> + +--- + setup.py | 2 +- + +diff --git a/setup.py b/setup.py +index 0776c41..471c433 100644 +--- a/setup.py ++++ b/setup.py +@@ -58,7 +58,6 @@ CLASSIFIERS = [ + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', +- 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', +@@ -81,5 +80,6 @@ setup(name=PACKAGE, + package_data={'': ['requirements.txt']}, + scripts=['bin/jsondiff', 'bin/jsonpatch'], + classifiers=CLASSIFIERS, ++ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', + **OPTIONS + ) +-- +2.7.4 + --2.7.4
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 5 lines · EDT Martin Jansa
Or it doesn't need to be applied for python3-jsonpatch at all and the
SRC_URIchange should be moved to python-jsonpatch_1.21.bb.At least in my world builds I haven't seen this issue with python3-jsonpatch, only with python-jsonpatch.
I'll have a look at this and send out a V2. I am 50/50 on which way to go as both are viable solutions but in the end this issue is nothing to lose sleep over so I will just pick one and run with it. Sorry for the churn,
Mark
Quoted 122 lines · Tim Orling
Quoted 120 lines
Something like:
FILESEXTRAPATHS_prepend:= "${THISDIR}/python-jsonpatch:"Will fix this. It can be in python-jsonpatch.inc (harmless for python2-, required for python3-). DRY and KISS.
On Thu, Mar 29, 2018 at 3:03 PM Martin Jansa <[email protected]>
Quoted 110 lines · wrote:
This seems to break python3-jsonpatch which won't find this .patch file, because it's in different directory.
On Wed, Mar 28, 2018 at 10:10 PM, Mark Asselstine <
Quoted 93 lines · [email protected]> wrote:
The following error is seen when
do_installis run| UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in | position 16: ordinal not in range(128) ERROR: python setup.py | install execution failed.This is reported in the upstream project as part of pull request #81
https://github.com/stefankoegl/python-json-patch/pull/81Since a release is not yet available with the required fix we must apply the fix as a patch.
Signed-off-by Mark Asselstine <[email protected]>---
.../recipes-devtools/python/python-jsonpatch.inc | 4 +++ .../Drop-support-for-EOL-Python-3.3.patch | 35++++++++++++++++++++++
2 files changed, 39 insertions(+) create mode 100644 meta-python/recipes-devtools/
python/python-jsonpatch/Drop-support-for-EOL-Python-3.3.patchmeta-python/recipes-devtools/python/python-jsonpatch.inc +0
-0@@ -8,5 +8,9 @@ inherit pypi SRC_URI[md5sum] = "0b20d819daf120ed3fef3be608f2ce18" SRC_URI[sha256sum] = "11f5ffdf543a83047a2f54ac28f8ca
ad7f34724cb1ea26b27547fd974f1a2153"meta-python/recipes-devtools/python/python-jsonpatch.inc +4
-0+SRC_URI += " \ + file://Drop-support-for-EOL-Python-3.3.patch \ +" + RDEPENDS_${PN} += "${PYTHON_PN}-json ${PYTHON_PN}-jsonpointer${PYTHON_PN}-netclient ${PYTHON_PN}-stringold"
(quoted diff) +0
-0
jsonpatch/Drop-support-for-EOL-Python-3.3.patchb/meta-python/recipes-devtools/python/python-jsonpatch/Drop-support-for-EOL-Python-3.3.patchnew file mode 100644
index 0000000..ccd8e12meta-python/recipes-devtools/python/python- new file +0
-0
jsonpatch/Drop-support-for-EOL-Python-3.3.patchmeta-python/recipes-devtools/python/python- new file +35
-1@@ -0,0 +1,35 @@ +From 71bdeed8b49390ff14fe8f0434fc8a1038d89128 Mon Sep 17 00:00:00 2001 +From: Hugo <[email protected]> +Date: Tue, 16 Jan 2018 14:22:33 +0200 +Subject: [PATCH 1/4] Drop support for EOL Python 3.3 + +Upstream-Status: Backport + +[MA: remove dev only files from patch] +Signed-off-by: Mark Asselstine <[email protected]> + +--- + setup.py | 2 +- + +diff --git a/setup.py b/setup.py +index 0776c41..471c433 100644 +--- a/setup.py ++++ b/setup.py +@@ -58,7 +58,6 @@ CLASSIFIERS = [ + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', +- 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', +@@ -81,5 +80,6 @@ setup(name=PACKAGE, + package_data={'': ['requirements.txt']}, + scripts=['bin/jsondiff', 'bin/jsonpatch'], + classifiers=CLASSIFIERS, ++ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', + **OPTIONS + ) +-- +2.7.4 + --2.7.4
Quoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel