From 43b62423d6e21a893ad7fd00993e2a7f8aaad8a6 Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Thu, 5 Jan 2017 18:12:29 +0100 Subject: python-chardet: provide both python2 and python3 packages Signed-off-by: Pascal Bach Signed-off-by: Martin Jansa --- meta-python/recipes-devtools/python/python-chardet.inc | 8 ++++++++ meta-python/recipes-devtools/python/python-chardet_2.3.0.bb | 10 ++-------- meta-python/recipes-devtools/python/python3-chardet_2.3.0.bb | 2 ++ 3 files changed, 12 insertions(+), 8 deletions(-) create mode 100755 meta-python/recipes-devtools/python/python-chardet.inc mode change 100644 => 100755 meta-python/recipes-devtools/python/python-chardet_2.3.0.bb create mode 100755 meta-python/recipes-devtools/python/python3-chardet_2.3.0.bb diff --git a/meta-python/recipes-devtools/python/python-chardet.inc b/meta-python/recipes-devtools/python/python-chardet.inc new file mode 100755 index 0000000000..60305e8d8e --- /dev/null +++ b/meta-python/recipes-devtools/python/python-chardet.inc @@ -0,0 +1,8 @@ +SUMMARY = "Universal encoding detector for Python 2 and 3" +LICENSE = "LGPL-2.1" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a6f89e2100d9b6cdffcea4f398e37343" + +inherit pypi + +SRC_URI[md5sum] = "25274d664ccb5130adae08047416e1a8" +SRC_URI[sha256sum] = "e53e38b3a4afe6d1132de62b7400a4ac363452dc5dfcf8d88e8e0cce663c68aa" diff --git a/meta-python/recipes-devtools/python/python-chardet_2.3.0.bb b/meta-python/recipes-devtools/python/python-chardet_2.3.0.bb old mode 100644 new mode 100755 index dfc979b335..b7a46e9d7b --- a/meta-python/recipes-devtools/python/python-chardet_2.3.0.bb +++ b/meta-python/recipes-devtools/python/python-chardet_2.3.0.bb @@ -1,8 +1,2 @@ -SUMMARY = "Universal encoding detector for Python 2 and 3" -LICENSE = "LGPLv2.1" -LIC_FILES_CHKSUM = "file://LICENSE;md5=a6f89e2100d9b6cdffcea4f398e37343" - -SRC_URI[md5sum] = "25274d664ccb5130adae08047416e1a8" -SRC_URI[sha256sum] = "e53e38b3a4afe6d1132de62b7400a4ac363452dc5dfcf8d88e8e0cce663c68aa" - -inherit pypi setuptools +inherit setuptools +require python-chardet.inc diff --git a/meta-python/recipes-devtools/python/python3-chardet_2.3.0.bb b/meta-python/recipes-devtools/python/python3-chardet_2.3.0.bb new file mode 100755 index 0000000000..038043c568 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-chardet_2.3.0.bb @@ -0,0 +1,2 @@ +inherit setuptools3 +require python-chardet.inc -- cgit 1.2.3-korg