Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id D99A4745B8 for ; Mon, 2 Apr 2018 15:03:44 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id w32F3jhH002884 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Mon, 2 Apr 2018 08:03:45 -0700 (PDT) Received: from yow-dellw-ma.wrs.com (128.224.56.18) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.361.1; Mon, 2 Apr 2018 08:03:44 -0700 From: Mark Asselstine To: Date: Mon, 2 Apr 2018 11:03:43 -0400 Message-ID: <1522681423-28813-1-git-send-email-mark.asselstine@windriver.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Subject: [V2][meta-python][PATCH] python-jsonpatch: fix do_install failure with py2 build X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2018 15:03:45 -0000 Content-Type: text/plain 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. Signed-off-by: Mark Asselstine --- *** V2 *** * V1 broke py3 builds and the change isn't needed for py3 so adjust to only apply fix for py2. .../Drop-support-for-EOL-Python-3.3.patch | 35 ++++++++++++++++++++++ .../python/python-jsonpatch_1.21.bb | 4 +++ 2 files changed, 39 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python-jsonpatch/Drop-support-for-EOL-Python-3.3.patch diff --git a/meta-python/recipes-devtools/python/python-jsonpatch/Drop-support-for-EOL-Python-3.3.patch b/meta-python/recipes-devtools/python/python-jsonpatch/Drop-support-for-EOL-Python-3.3.patch new file mode 100644 index 0000000..ccd8e12 --- /dev/null +++ b/meta-python/recipes-devtools/python/python-jsonpatch/Drop-support-for-EOL-Python-3.3.patch @@ -0,0 +1,35 @@ +From 71bdeed8b49390ff14fe8f0434fc8a1038d89128 Mon Sep 17 00:00:00 2001 +From: Hugo +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 + +--- + 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 + diff --git a/meta-python/recipes-devtools/python/python-jsonpatch_1.21.bb b/meta-python/recipes-devtools/python/python-jsonpatch_1.21.bb index 90cd318..2b253b5 100644 --- a/meta-python/recipes-devtools/python/python-jsonpatch_1.21.bb +++ b/meta-python/recipes-devtools/python/python-jsonpatch_1.21.bb @@ -2,3 +2,7 @@ inherit setuptools require python-jsonpatch.inc RDEPENDS_${PN} += "${PYTHON_PN}-re" + +SRC_URI += " \ + file://Drop-support-for-EOL-Python-3.3.patch \ +" -- 2.7.4