From 328156b2b070b411e4ce7ad45a3e9c43b54dfc28 Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Wed, 4 Oct 2017 14:02:34 +0200 Subject: python3-protobuf: add python3 version Signed-off-by: Pascal Bach Signed-off-by: Martin Jansa --- .../recipes-devtools/python/python-protobuf.inc | 16 ++++++++++++++++ .../recipes-devtools/python/python-protobuf_3.4.0.bb | 18 ++---------------- .../recipes-devtools/python/python3-protobuf_3.4.0.bb | 2 ++ 3 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-protobuf.inc create mode 100644 meta-python/recipes-devtools/python/python3-protobuf_3.4.0.bb diff --git a/meta-python/recipes-devtools/python/python-protobuf.inc b/meta-python/recipes-devtools/python/python-protobuf.inc new file mode 100644 index 0000000000..2f59ef98b6 --- /dev/null +++ b/meta-python/recipes-devtools/python/python-protobuf.inc @@ -0,0 +1,16 @@ +DESCRIPTION = "Protocol Buffers" +HOMEPAGE = "https://developers.google.com/protocol-buffers/" +SECTION = "devel/python" + +RDEPENDS_${PN} = "python-six" + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9" + +inherit pypi + +SRC_URI[md5sum] = "bfc0c61c156a995e909521697e755780" +SRC_URI[sha256sum] = "ef02609ef445987976a3a26bff77119c518e0915c96661c3a3b17856d0ef6374" + +# For usage in other recipies when compiling protobuf files (e.g. by grpcio-tools) +BBCLASSEXTEND = "native" diff --git a/meta-python/recipes-devtools/python/python-protobuf_3.4.0.bb b/meta-python/recipes-devtools/python/python-protobuf_3.4.0.bb index cde62b74a4..f04fc489f0 100644 --- a/meta-python/recipes-devtools/python/python-protobuf_3.4.0.bb +++ b/meta-python/recipes-devtools/python/python-protobuf_3.4.0.bb @@ -1,16 +1,2 @@ -DESCRIPTION = "Protocol Buffers" -HOMEPAGE = "https://developers.google.com/protocol-buffers/" -SECTION = "devel/python" - -RDEPENDS_${PN} = "python-six" - -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9" - -inherit pypi setuptools - -SRC_URI[md5sum] = "bfc0c61c156a995e909521697e755780" -SRC_URI[sha256sum] = "ef02609ef445987976a3a26bff77119c518e0915c96661c3a3b17856d0ef6374" - -# For usage in other recipies when compiling protobuf files (e.g. by grpcio-tools) -BBCLASSEXTEND = "native" +inherit setuptools +require python-protobuf.inc diff --git a/meta-python/recipes-devtools/python/python3-protobuf_3.4.0.bb b/meta-python/recipes-devtools/python/python3-protobuf_3.4.0.bb new file mode 100644 index 0000000000..781d1dc4da --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-protobuf_3.4.0.bb @@ -0,0 +1,2 @@ +inherit setuptools3 +require python-protobuf.inc -- cgit v1.2.3-54-g00ecf